Do you mean High greater than the HHV of the first 19 bars of the day,
or of the most-recent 19 bars?

For the former, something like this:

dn = DateNum();
newDay = dn != Ref(dn,-1);
bsnday = BarsSince(newDay);
Buy = bsnday>19 && H > ValueWhen(bsnday==19, HHV(H,19));

For the latter, maybe like this:

dn = DateNum();
newDay = dn != Ref(dn,-1);
Buy = BarsSince(newDay)>19 && H > Ref(HHV(H,19),-1));

Regards,
GP


--- In [email protected], asit mistry <[EMAIL PROTECTED]> wrote:
>
> 
> ok . i understand it. but can u help me to code it. i want to buy if
the high of bar after 19 bars in intraday is higher than 19 bar range.
> http://ss1.richmedia.in/recurl.asp?pid=186
>


Reply via email to