This is the code that I use to create the
McClellan Summation Index. This indicator can be plotted on any chart.
A1:=Max(Security("C:\MetaStock Data\BM DATA\X.NYSE-A",O),1);
D1:=Max(Security("C:\MetaStock Data\BM DATA\X.NYSE-D",O),1);
A2:= ((A1-D1)/(Max(1,A1+D1)))*1000;
M5:=Mov(A2,39,E);
M10:=Mov(A2,19,E);
Cum(M10-M5)
Cheers,
Cameron
To: equismetastock@xxxxxxxxxxxxxxx
From: lissen@xxxxxxxxxxxxx
Date: Mon, 8 Sep 2008 18:11:25 -0500
Subject: RE: [EquisMetaStock Group] Re: McClellan
Preston:
Thanks for
this information. I am amazed at how rapidly you replied.
I am trying
to set up a composite security for (advances-declines), should be easy enough.
When I try to set up the composite and enter a name for it, the program
automatically assigns the ticker symbol for advances to the composite and
simply plots the advances. I tried to change the symbol and got a message that
this can’t be done with a composite.
In the past,
when using earlier versions of Metastock, I had no trouble creating and using
composites.
Lionel
From: equismetastock@xxxxxxxxxxxxxxx [mailto:equismetastock@xxxxxxxxxxxxxxx]
On Behalf Of pumrysh
Sent: Sunday, September 07, 2008 10:07 PM
To: equismetastock@xxxxxxxxxxxxxxx
Subject: [EquisMetaStock Group] Re: McClellan
Lionel,
Check messages 15048, 15049, 19275, and 27356. Also check the May
2005 issue if MSTT.
Preston
--- In equismetastock@xxxxxxxxxxxxxxx,
"Lionel Issen" <lissen@xxx>
wrote:
>
> V 9 only allows two items to be linked: the ratio adjusted McClellan
> oscillator and summation index each require 3 items to be linked.
The basic
> formulation is (advances -declines)/(advances +declines).
>
>
>
> (advances - declines) form one composite
>
> (advances + declines) form a second composite
>
> (advances -declines)/ (advances + declines) form a third composite
> This is the ratio adjusted McClellan oscillator.
>
>
>
> Is there a way of writing a code in Metastock to calculate the ratio
> adjusted McClellan oscillator?
>
>
>
> Lionel Issen
>
Stay up to date on your PC, the Web, and your mobile phone
with Windows Live. See Now