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 #

ZigZag Symmetry
* To: "MetaStock List" <metastock@xxxxxxxxxxxxx>
* Subject: ZigZag Symmetry
* From: "Corey Saxe" <csaxe@xxxxxxx>
* Date: Mon, 17 Dec 2001 14:19:44 -0800
* Reply-To: metastock@xxxxxxxxxxxxx
* Sender: owner-metastock@xxxxxxxxxxxxx

Ever notice when using ZigZag, how the number of bars from a peak to a trough on uptrends is shorter than the number of bars from a trough to a peak? No? Guess I have too much time on my hands.


ZigZag Symmetry

V1:=Input("% Change",.1,50,2);
P1:=PeakBars(1,C,V1);
T1:=TroughBars(1,C,V1);
ValueWhen(1,P1=0,T1)/ValueWhen(1,T1=0,P1);1

 

Will give the ratio of: (Bars of up run)/(Bars of down run)
Don't worry about that last undefined ZigZag leg which is subject to move.
This calculates from anchored points only.
This isn't any super-duper indicator, it just gives a different look at the
length of uptrends vs. downtrends.

Your comrade in the struggle,
Corey Saxe

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!