| 
 PureBytes Links 
Trading Reference Links 
 | 
I have this little piece of code that I use on my charts:
////////////////////////////////// timer
thisbar = TimeNum();
nextbar = thisbar+(Interval()/60*100);
systime = Now(4)+30000; //pt time zone
systime = IIf(systime>=240000,systime-240000,systime);
anewbar = nextbar-systime-40;
nnewbar = LastValue(anewbar);
if (nnewbar > 20) timercode = anewbar;
else timercode = EncodeColor(colorBrightGreen)+anewbar;
////////////////////////////////// timer
title = title + "   " + timercode;
this adds the countdown timer to Title, watch it turns green when 20 
seconds or less are left in current bar (woodies CCI people like 
this). If you are auto trading, use (nnewbar <= 5) to trigger the 
trade when 5 seconds or less are left.
You can get fancier with timer display, you can also write something 
to add the data feed lagging time, etc. but simplicity and speed are 
more important to me.
Don't forget to synchronize your clock if your os doesn't do it for 
you.
Good luck.
HL
--- In amibroker@xxxxxxxxxxxxxxx, "coba702002" <coba702002@xxxx> 
wrote:
> Anyone willing to share their code for a countdown timer that i can 
put 
> in an indicator for various time frames from one to 30 minutes???
> 
> thanks
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 other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
 |