PureBytes Links
Trading Reference Links
|
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@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of ymtrader1
Sent: Wednesday, December 20, 2006 08:31
To: amibroker@xxxxxxxxxxxxxxx
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:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
amibroker-unsubscribe@xxxxxxxxxxxxxxx
http://docs.yahoo.com/info/terms/
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.26/594 - Release Date: 12/20/2006 3:54 PM
|