PureBytes Links
Trading Reference Links
|
>> if time = Sess1StartTime then begin
>> currenthigh = H;
>> currentlow = L;
>> end;
>
>That won't work. The condition is never true unless you muck with the
>session settings. Sess1StartTime is the open of the first bar. The
>indicator will calculate on the close of the bar so the time is a bar
>interval later.
Ah, right. Should be time > Sess1StartTime and time[1] <= Sess1StartTime.
>Better to use
> if date > date[1]
>or the built-in functions Lazy mentioned.
I don't recall seeing those built-in functions in TS2ki, but I could be
wrong. I'll have to check when I get home.
-Alex
|