Hello Ara,
Assuming you are using 1 minute bars, I
just use the computer clock!!
Or perhaps a better solution is a stand
alone clock from Woodies !
I use volume based bars and have a simple
count down timer in the title.
Regards,
Jerry Gress
Stockton, Ca.
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Ara Kaloustian
Sent: Monday, June 16, 2008 12:57
PM
To: AB-Main
Subject: [amibroker] Bar Time Left
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?