[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yesterday's high & low on intraday data



PureBytes Links

Trading Reference Links

Adam Hefner offfered:


> Try somthing like this:
>  
>    {New Day Count}
> DW:= If(DayOfWeek<>ref(DayOfWeek(),-1),{then}1,{else}0);
>    {Daily High}
> DH:=If(DW=1,{then}ref(HighestSince(1,DW=1,H),-1),{else}0);

(etc.)

Thanks, Adam.  I'd completely forgotten the "Since" functions.

Owen