- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
----- 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 Re: Lag In Moving Avg To: <metastock@xxxxxxxxxxxxx> Subject: Re: Lag In Moving Avg From: "x" <xtr61832901@xxxxxxxxxx> Date: Sun, 11 Feb 2001 09:43:46 +1300 References: <000801c09382$85e9d6a0$d892fea9@xxxxxx> Reply-To: metastock@xxxxxxxxxxxxx Sender: owner-metastock@xxxxxxxxxxxxx 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. |
|
Moving Average - 10 Day/Zero Lag 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 [590] | |
| |
Source / From: |