Just use numbers. Also, check intraday preferences on the right side and set bar time to start of bar, or some other choice if you prefer.just match the times to that point. End of bar will be 155959 or similar.
///////////////////////////////////////////////////////// Open/Close Info barOpen = DateNum() != Ref(DateNum(),-1); //First bar of new day. Could be the midnight bar if you're on 24 hour view. weekOpen = DayOfWeek() < Ref(DayOfWeek(),-1); //Sunday = 0, Saturday = 6 so when today < previous day it must be a new week. Tooearly = TimeNum() < 094500; //Subject to change. Currently not used anywhere closingTime = 160000; //154500 if closing at 160000 and using 15 minute bars barClose = (Ref(TimeNum(),-1) < closingTime AND TimeNum() >= closingTime) OR DateNum() > Ref(DateNum(),-1); -- Terry -----Original Message----- From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ymtrader1 Sent: Wednesday, December 20, 2006 08:31 To: amibroker@yahoogroups.com Subject: [amibroker] current intra-day bar time? I would like to determine the current 15min bar's time so that I can convert it into a number and compare it with another number to provide conditional coding. Something like: closetrades = Time_To_Num(HHMMSS); if(closetrades>=151500) { ...conditional code here... } My question is how to get the current intra-day bar time into the HHMMSS string format? Thanks, Joe 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 Yahoo! Groups Links http://groups.yahoo.com/group/amibroker/ Individual Email | Traditional http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] http://docs.yahoo.com/info/terms/