Thanks Graham and Herman. I did look in Help, but was unable to find it :-( Now I'm happy again :-) -- Terry
-----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Graham Sent: Tuesday, January 23, 2007 13:13 To: [email protected] Subject: Re: [amibroker] GetTimeFrame SYNTAX interval( format = 0 ) RETURNS NUMBER 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" -- Cheers Graham AB-Write >< Professional AFL Writing Service Yes, I write AFL code to your requirements http://www.aflwriting.com On 24/01/07, Herman <[EMAIL PROTECTED]> wrote: > > > > TimeFrame = Interval(); > > > > > best regards, > herman > > > > > > Tuesday, January 23, 2007, 2:36:14 PM, you wrote: > > > > > > Anyone know how to "read" the current time frame? > > > > > > I tried this: > > > > > > _N(Title = "{{INTERVAL}}"); > > > tf = Title; > > > > > > Which shows the TimeFrame in the Chart title, but the value of TF is = > > > "{{INTERVAL}}" > > > > > > I'm wishing for a GetTimeFrame command. > > > -- > > > Terry > > > > > > > > > > > > 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/ > > > 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
