... or simply ...

Lookback = Your choice of period
Issue = Foreign("MSFT",C");
IssueROC = ROC(Issue, LookBack);

--- In [email protected], "Ara Kaloustian" <[EMAIL PROTECTED]> wrote:
>
> Lookback = Your choice of period
> Issue = Foreign("MSFT",C");
> IssueROC = (Issue - Ref(Issue,-Lookback)) / Ref(Issue,-Lookback)) 
*100;
> 
> ----- Original Message ----- 
> From: "Vinay Gakkhar." <[EMAIL PROTECTED]>
> To: "amibroker" <[email protected]>
> Sent: Sunday, August 05, 2007 8:55 PM
> Subject: [amibroker] ROC FOR FOREIGN
> 
> 
> > Like I use ROC( Close, 1 ) for getting percentage rate of change 
of a 
> > stock, how can I get percentage rate of change of a foreign 
stock or 
> > index, say MSFT or ^DJI ?
> >
> > Thanks,
> >
> > gakkhar
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>


Reply via email to