PureBytes Links
Trading Reference Links
|
Hello,
there is Interval() function that returns bar interval in seconds:
for example:
60 - 1 -minute chart
86400 - daily chart
symbol = WriteIf( Interval() < 86400, "$INDU", "!DJI" );
PlotForeign( symbol, "Price plot", colorRed, styleCandle );
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "akaloustian" <ara1@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, October 15, 2002 2:31 AM
Subject: [amibroker] Re: Status(data - or something like that?)
> Try using TimeNum() to calculate the time interval... hence you know
> if you have eSignal od EOD. Look up TimeNum() in AFL functions
>
> Ara
>
> --- In amibroker@xxxx, "Richard Alford" <richard.alford@xxxx> wrote:
> > I am running esignal during the day and qp2 for historical data
> (before 2-days ago it appears.) I would like to have an indicator
> which determines in psuedo code:
> >
> > if esignal
> > then sym = "dia"
> > else
> > then sym = "!dji"
> >
> > plot(foreign(sym), etc...
> >
> > Basically because I cannot get the systems to "merge" the symbols
> used, i.e. $SPX on esig and !SPY on qp2, or worse, $INDU in eSig and !
> DJI qp2, I am trying to switch to the tracking stock during the day.
> >
> > Any suggestions?
> >
> > Thanks,
> >
> > Richard
> >
> > p.s. best solution would have a mapping table (regular expression
> syntax?) for mapping data providers....
>
>
>
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
>
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|