PureBytes Links
Trading Reference Links
|
I would guess that you also need to adjust the formula, e.g. add more ((n-??)/??) * Ref(C, -??), where ?? needs to be adjusted to
reflect weightings and lookback periods. The formula as it stands is designed for N=10; simply changing N does not work.
I know this doesn't help too much, but may at least give you a direction.
Andreas
> -----Ursprüngliche Nachricht-----
> Von: owner-metastock@xxxxxxxxxxxxx
> [mailto:owner-metastock@xxxxxxxxxxxxx]Im Auftrag von Lionel Issen
> Gesendet am: Sonntag, 11. Februar 2001 18:15
> An: metastock@xxxxxxxxxxxxx
> Betreff: Re: Lag In Moving Avg
>
> X:
> If I change N to a number >10 the curve moves upwards away from the price
> plot.
> If I change N to a number <10 the curve moves downwards away from the price
> plot.
>
> What can be done to correct this?
> Lionel Issen
> lissen@xxxxxxxxx
> ----- Original Message -----
> From: "x" <xtr61832901@xxxxxxxxxx>
> To: <metastock@xxxxxxxxxxxxx>
> Sent: Saturday, February 10, 2001 2:43 PM
> Subject: Re: Lag In Moving Avg
>
>
> > Hi
> >
> > Below is the indicator code for a 10 day Moving Average. Just cut & paste
> > into Indicator section to use it.
> > This was taken from one of the TASC mags and I think is available on the
> > Metastock Formula pages.
> >
> >
> > N:=10;
> > TN:=Mov(CLOSE,N,S);
> >
> s1:=((n-1)/2)*C+((n-3)/2)*Ref(C,-1)+((n-5)/2)*Ref(C,-2)+((n-7)/2)*Ref(C,-3)+
> > ((n-9)/2)*Ref(C,-4)+((n-11)/2)*Ref(C,-5)+((n-13)/2)*Ref(C,-6)
> > +((n-15)/2)*Ref(C,-7)+((n-17)/2)*Ref(C,-8)+((n-19)/2)*Ref(C,-9);
> > y2:=TN+(6*S1)/((n+1)*n);
> > y2
> >
> > Regards & thanks to all the contributors from a long time lurker.
> >
> > Chris
> > New Zealand
> >
> >
> > ----- Original Message -----
> > From: wooglin.org@xxxxxxxxxxx
> > To: List MetaStock
> > Sent: Sunday, February 11, 2001 5:54 AM
> > Subject: Lag In Moving Avg
> >
> >
> > Aside from Jurik's proprietary method, does anyone know of a way to
> > formulate a way to get the lag out of a moving average.
> >
> > Thanks,
> >
> > Jim Barone
> >
>
|