Dear All,
KIndly help me create the Intraday NR3 breakout based Entry.
but the currently afl is generating based on the Yesterday NR3 Breakout . Kindly help to reslove this issue.
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
SetPositionSize(1,spsShares);
_SECTION_BEGIN("Master Candle Exploration");
Newday = Day()!= Ref(Day(), -1);
Endday = Day()!= Ref(Day(), 1);
Inbetween = Flip(Newday, Endday);
Buycondition = BarsSince(Newday) > 2 AND Ref(H,-1) > Ref(H,0) AND Ref(L,-1) < Ref(L,0) AND Ref(H,-2) > Ref(H,-1) AND Ref(L,-2) < Ref(L,-1) ;
Buycontinue = Flip(Buycondition,EndDay);
BuyRemove = ExRem(Buycontinue,EndDay);
ShortTrigger = ValueWhen(Buycondition,Ref(L,-2));
BuyTrigger = ValueWhen(Buycondition,Ref(H,-2));
Buy = Cross(H,BuyTrigger) AND TimeNum() < 150000 AND BarsSince(Newday) > 2 ;
Short = Cross(ShortTrigger,L) AND TimeNum() < 151500 AND BarsSince(Newday) > 2;
BuyPrice = BuyTrigger;
ShortPrice = ShortTrigger;
Sell = TimeNum() >= 150000 ;
Cover = TimeNum() >= 150000 ;
Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);
Short = ExRem(Short,Cover);
Cover = ExRem(Cover, Short);
