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 #

Blue Line - 13 day Smoothed Moving Average by Glen Wallace
----- Original Message -----
From: "Raminder Singh" <rs@xxxxxxxxxx>
To: <metastock@xxxxxxxxxxxxx>
Sent: Sunday, February 27, 2000 10:00 PM
Subject: Moving Averages, Profitunity, "New Trading Dimensions"

Bill William's in his 3rd chapter mentions the "Alligator", which he describes as, the Blue Line - 13 day smoothed moving average, offset 8 days into the future the Red Line - 8 day smoothed moving average, offset 5 days into the future the Green Line - 5 day smoothed moving average, offset 3 days into the future

I downloaded the demo from However, with the same stock, under MetaStock 6.5.2, I can't seem to get the same values as his software. I've tried, Simple, Exponential, Weighted, all the ones available in MetaStock. I even tried experimenting with the time periods values.

Comes close, but not the same. I'd be highly obliged if somebody would shed some light on this.

Re: Moving Averages, Profitunity, "New Trading Dimensions"

. To: "MetaStock listserver" <metastock@xxxxxxxxxxxxx>
. Subject: Re: Moving Averages, Profitunity, "New Trading Dimensions"
. From: "Glen Wallace" <gcwallace@xxxxxxxx>
. Date: Mon, 28 Feb 2000 09:53:19 -0800
. References: <000001bf81b1$14a16820$05900880@xxxxxxxx>
. Reply-To: metastock@xxxxxxxxxxxxx
. Sender: owner-metastock@xxxxxxxxxxxxx


The problem is in their "smoothing." Below is the code I wrote for the Red Line based on an explanation they gave me about a year ago. I can dig up that e-mail if you wish. Also, I recall Daryl Guppy's site (http://www.guppytraders.comgup59.htm) has all the code (written by our own Adam Hefner, I think) for Bill Williams' methods.

Be careful with Bill Williams' system, though, it's not the holy grail he describes in his books.

Hope this helps.

Blue Line - 13 day Smoothed Moving Average

{This code can be cleaned up using the Sum function.
It was written in this expanded form during debugging}
p8:= Ref((H+L)/2,-8);
p7:= Ref((H+L)/2,-7);
p6:= Ref((H+L)/2,-6);
p5:= Ref((H+L)/2,-5);
p4:= Ref((H+L)/2,-4);
p3:= Ref((H+L)/2,-3);
p2:= Ref((H+L)/2,-2);
p1:= Ref((H+L)/2,-1);
p0:= (H+L)/2;

PrevSum:= p8+p7+p6+p5+p4+p3+p2+p1;
PrevAve:= PrevSum/8;

Ref((PrevSum - PrevAve + p0)/8,-5)


Source / From: TOP

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!