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

RE: LastBarOnChart work-around?



PureBytes Links

Trading Reference Links

I usually use this:

if Date = LastCalcDate and Time = LastCalcTime then
    ...
end;



Ivo



> -----Original Message-----
> From: ztrader [mailto:ztrader@xxxxxxxxx]
> Sent: Saturday, October 13, 2001 4:18 PM
> To: omega-list
> Subject: LastBarOnChart work-around?
> 
> 
> LastBarOnChart seems to execute more than once on tick charts. If
> anyone has found a way to get it to work reliably, but just 
> once on the
> 'real' last bar, I'd appreciate knowing how.
> 
> Otherwise, would the following work-around eliminate the multiple
> executions in real time? I realize it would not execute on each 'last
> bar' - I'm trying to avoid multiple executions on the same bar.
> 
> if LastBarOnChart and time <> LastLBtime then begin
>    LastLBtime = time;
> end;
> 
> Any potential problems with this?
> 
> Thanks,
> 
> ztrader
> 
> 
>