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
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
__,_._,___
|