MyEma is really just EMA, so just change to EMA
--- In [email protected], "bistrader" <bistra...@...> wrote:
>
> Could do ...
>
> // McClellan Oscillator
> ad=Foreign("!ny-a","Close");
> decl=Foreign("!ny-d","Close");
> mcosc=( MyEma( ad - decl, 19 ) - MyEma( ad - decl, 39 ) );
> // McClellan Summation Index
> mcsum=Cum(mcosc);
>
> And then follow with Plot statement for mcsum
>
> ...
>
> --- In [email protected], "Michael Dawson" <miketmpb@> wrote:
> >
> > If this is the equation. And you have two symbols as !ny-a (for advance
> > issues) and !ny-d (for declining issues). How does that read both. I am
> > still learning and confused. It keeps giving me error code. I am doing
> > something wrong.
> >
> >
> >
> > /*
> >
> > McClellan Summation Index
> >
> >
> >
> > */
> >
> >
> >
> > Graph0 = Cum( Ema( AdvIssues()-DecIssues(), 19 ) - Ema(
> > AdvIssues()-DecIssues(), 39 ) );
> >
>