oliver afl

pkgmtnl

Well-Known Member
#11
Hello,
I am not able to explore the expected results.

I want to explore in first / two minutes of market for the scripts which has opened above / low of Yesterday Price.

Please suggest correction

TimeFrameSet(inDaily);
a11=H;
a12=L;
TimeFrameRestore();

DayH = TimeFrameGetPrice("H", inDaily, -1); DayHI = LastValue (DayH,1);// yesterdays high
DayL = TimeFrameGetPrice("L", inDaily, -1); DayLI = LastValue (DayL,1); // yesterdays low
DayHT= TimeFrameGetPrice("H", inDaily);
DayLT = TimeFrameGetPrice("L", inDaily);

a1 = O>a11;
b1 = O>a12;
Buy=a1;
Sell=b1;
Filter = Buy OR Sell;


AddColumn( C, "CMP", 1.2, textColor = colorBlack, bkgndColor = colorLightYellow,70 );

Please guide.
 

Similar threads