--- In [email protected], "Paul Ho" <[EMAIL PROTECTED]> 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);


Reply via email to