PureBytes Links
Trading Reference Links
|
Thank you so much. All of you are so helpful.
_____
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Anthony Faragasso
Sent: Wednesday, June 21, 2006 10:27 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] How to determine the current time frame?
FUNCTION
Interval() function returns bar interval.
Possible formats: format = 0 - returns bar interval in seconds format = 1 -
as above plus TICK bar intervals are returned with negative sign so
Interval() function applied to 10 tick chart will return -10 format = 2 -
returns STRING with name of interval such as
"weekly/monthly/daily/hourly/15-minute/5-tick"
Example time intervals in seconds:
tick bars = 0
5 sec bars = 5
1 min bars = 60 (inMinute constant)
hourly bars = 3600
daily bars = 86400 (inDaily constant)
weekly bars = 432001 (inWeekly constant)
monthly bars = 2160001 (inMonthly constant)
----- Original Message -----
From: Clement <mailto:yitman@xxxxxxxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, June 20, 2006 6:08 PM
Subject: [amibroker] How to determine the current time frame?
For example, I am using 15-minute bars now. I would like to have certain
codes to run if the current time frame is inHourly. How to determine the
current time frame?
Thank you in advance.
Clement
_____
avast! Antivirus <http://www.avast.com> : Inbound message clean.
Virus Database (VPS): 0625-3, 06/20/2006
Tested on: 6/20/2006 9:51:27 PM
avast! - copyright (c) 1988-2006 ALWIL Software.
|