I am trying to program a code in which it can detect a signal making intraday day's low, but my present signal considering its previous day's value too, so some signals are not being detected. Please help
_SECTION_BEGIN(" Line Calculations");
dn = DateNum();
newDay = dn != Ref( dn,-1);
count = BarsSince(newDay!= Ref(newDay,1))+1;
daych=Day()!=Ref(Day(),-1);
prl=Ref(LLV(Low,count)-1,-1);
llbr=IIf(Low<prl,1,0);
stkprice=IIf(L>150 AND L<1900,1,0);
tm=IIf(TimeNum()>=093500 AND TimeNum()<=103000,1,0);
cond=IIf( llbr AND stkprice AND tm ,1,0);
PlotShapes(IIf(cond, shapeDownArrow, shapeNone),colorYellow, 0,H, Offset=-30);
Filter=cond;
AddColumn( DateTime(), "Date /mmhhss Time", formatDateTime );
AddColumn(L,"ShortPrice",1.2,colorRed);
_SECTION_END();
_SECTION_BEGIN(" Price");
Plot(C, "", IIf(C>O,colorBrightGreen, colorRed), styleCandle,2);
Title =StrFormat("{{DATE}} Op %g, Hi %g, Lo %g, Cl %g (%.1f%%) ",O,H,llbr,V, SelectedValue( ROC(C,1)) )+EncodeColor(colorBlack);
_SECTION_END();