PureBytes Links
Trading Reference Links
|
At 08:43 PM 4/12/2004, brad yoneoka wrote:
>can anybody find the mistake(s)?
>vars:htoday(0);
>htoday=htoday[1];
>if date>date[1] and time>0519 then htoday=0;
>if h>htoday then htoday=h;
>IDhighcur=htoday;
The problem is that the bar when Date > Date[1] is not the same as the bar when Time > 0519 so the condition is never true on the same bar. Try this:
vars:htoday(0);
if date > date[1] then htoday = 0;
if time > 0519 and h > htoday then htoday = h;
IDhighcur = htoday;
Bob Fulks
|