PureBytes Links
Trading Reference Links
|
Hello,
You can do this via the following "trick":
interval = LastValue( TimeNum() - Ref( TimeNum(), -1 ) );
this will give you the interval formated like this:
HHMMSS.
So it will be 100 for 1-minute bars, 1500 for 15 minute bars,
3000 for 30 minute bars, 10000 for hourly bars.
isdaily = Lastvalue( DateNum() > Ref( DateNum(), -1 ) );
This is a workaround for now until I add a function to retrieve interval directly.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "nurudinkaba" <n.kaba@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, June 20, 2002 2:44 PM
Subject: [amibroker] Tomasz - obtaining intraday interval ...
> How can this be accomplished. I know the main chart displays it, but
> if I want to label other chart sheet with the intraday interval or
> use it through code?
>
> Thanks
>
>
> >Yes that's the way to see the intraday interval ...but if I'm on a
> >chartsheet that has for example stochastics and
> >MACD only. Is there a way, programmatically to get the interval and
> >display it via the title or writeif commands?
>
> >Thanks
> -----Original Message-----
> From: nkis22 [mailto:nkishor@x...]
> Sent: Wednesday, June 19, 2002 5:44 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Labelling Intraday time interval on chart...?
>
>
> I had the same interest so 2 ways I do this now:
>
> 1) see top line on the main price chart
> 2) right click-->intraday shows a balck dot for the
> chart interval.
>
>
> nand
>
>
>
> --- In amibroker@xxxx, "nurudinkaba" <n.kaba@xxxx> wrote:
> > I would like to ask perhaps a simple question for which I haven't
> > been able to find an answer. Here goes...for intraday data, 1, 2,
> 3,
> > 5, 10, 15 minutes etc....when I choose any of those time frames my
> > charts will redraw based on the time interval chosen.
> >
> > Where can I display or better yet how can I display the time
> interval
> > on the chart or on the AB mainscreen that - I've chosen 1 min or 5
> > min or whatever....
> >
> > If there isn't a way - maybe this can be added to the program,
> > Tomasz?
> >
> > Thanks all...
>
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|