I  am trying to compute the amount of time left in last bar using:

BarTimeLeft   = (TimeNum() -  LastValue(Now(4)));

The code ... sort of works ...

1. When chart is on 1 minute bars and an new bar is created, there are 26 
seconds left

2. When the calculate time left reached 0 (zero), the next displayed value is 
-41 seconds.

3. A new bar is created when display shows -75 seconds and then the cycle 
starts with 26 seconds as in step 1 above,


See a problem with above code to cause this problem?

TIA

Ara

Reply via email to