[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: ?? Re use of Foreign



PureBytes Links

Trading Reference Links

Count the brackets

BM = Foreign("XJO", "Close");
Ratio = C/BM;
Plot(Ratio, "Ratio", colorRed, styleline);

you could also just use this
Ratio =  *relstrength("XJO");*
Plot(Ratio, "Ratio", colorRed, styleline);


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com

On 15/02/07, Keith Osborne <kosborn3@xxxxxxxxxxxxxx> wrote:
>
>  Tom, changed that but still does not work.
>
> Keith
>
> trb0428 wrote:
>
> Keith,
>
> Don't know if this is the problem but  you have a typo in Colorred ---> *
> colored*
>
> regards,
>
> Tom
>
> --- In amibroker@xxxxxxxxxxxxxxx, Keith Osborne <kosborn3@xxx><kosborn3@xxx>wrote:
> >
> > Hi, I am attempting to to create a ratio of the current close of a stock
>
> > to that of an index (XJO on the ASX). When I plot the ratio as below I
> > get nothing. I am assuming I am doing something wrong with "Foreign".
> > Can someone point me in the direction as to how to correct.
> >
> > TIA....Keith
> >
> >
> > BM = Foreign("XJO", "Close");
> > Ratio = C/BM;
> > Plot((Ratio, "Ratio", colored, styleline);
> >
>
> 
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.39/687 - Release Date: 2/14/2007 4:17 PM