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

RE: [amibroker] Bar Time Left



PureBytes Links

Trading Reference Links

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?

 

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___