Dear Tomasz & seniors,
i done exploration using below code ,it's match with chart..but small issue..
mean once buy generated every minute the buy signal continue upto sell generate then vice versa..
i expect/need once buy generated it will stay in buy upto sell generate..
(pls see picture..i dont kow how to exactly explain the issue)
_SECTION_BEGIN("crossover e15 e60");
E15 = EMA(o, 15);
E60 = EMA(o, 60);
BTrig = Cross(e15, e60);
STrig = Cross(e60, e15);
BT = Flip(BTrig, STrig);
ST = Flip(STrig, BTrig);
B_High = ValueWhen(Btrig, H, 1);
S_Low = ValueWhen(STrig, L, 1);
Buy = BT AND H > B_High;
Short = ST AND L < S_Low;
ShortPrice =C ;
Cover =C;
CoverPrice =C;
BuyPrice=C;
Sell=C;
SellPrice=C;
SetPositionSize( 100, spsShares );
E=Equity(1);
Filter= 1 AND (Buy OR Short) ; //AND BARCOMPLETE ; //AND ( C > 200) ; ; // OR AAA);
AddColumn(IIf(Buy,BuyPrice,Null)," Buy Signal ", 6.2,1.2,colorGreen);
AddColumn(IIf(Short,ShortPrice,Null)," Sell Signal ",6.2,1.2,colorOrange);
AddColumn(C , "close");