--- In amibroker@xxxxxxxxxps.com,
"Paul Ho" <paultsho@xx.> wrote:
>
> try
highestssince(datenum() != ref(datenum(), -1) for high and
the
opposite
> for low
>
>
> _____
>
Thanks Paul,
I'll give it a try.
The following was my
attempt of coding, maybe someone will be able to
explain what was
wrong:
============================================================
FirstBarofDay
= DateNum() != Ref(DateNum(), -1);
HToday =0;
LToday
=0;
HToday = IIf(FirstBarofDay, H, Max(H, Ref(HToday, -1)));
LToday
= IIf(FirstBarofDay, L, Min(L, Ref(LToday, -1)));
Plot( HToday, "Ht",
colorRed );
Plot (LToday, "Lt", colorYellow);