MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Moving Average - 10 Day/Zero Lag
----- 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: TOP
http://purebytes.com/archives/metastock/

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!