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 - Normalized by Jose Silva

From: tan ming <reminiscenostalgia[at]hotmail.com>
To: equismetastock[at]yahoogroups.com <equismetastock[at]yahoogroups.com>
Date: Sunday, December 3, 2006, 10:34:06 AM
Subject: [EquisMetaStock Group] Zigzag Normalized

Can zigzag be normalized?

Eg all zigzag peaks at 1 and all zigzag tough at 0.

Claro

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: Jose Silva <josesilva22[at]yahoo.com>
To: equismetastock[at]yahoogroups.com <equismetastock[at]yahoogroups.com>
Date: Sunday, December 3, 2006, 2:35:05 PM
Subject: [EquisMetaStock Group] Re: Zigzag Normalized


ZigZag - Normalized

{ Custom normalized ZigZag indicator
for Claro/Dan/sKy/tan ming.

http://www.metastocktools.com }

{ User inputs }
ch:=Input("Minimum reversal amount",.001,100000,5);
method:=Input("Method: [1]$ points, [2]% percent",1,2,2);
x:=Input("[1]Open [2]High [3]Low [4]Close [5]WClose [6]Pvar",1,6,4);
plot:=Input("ZigZag: [1]Normalized, [2]Real",1,2,1);

{ Select price field }
pr:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=5,WC(),If(x=6,P,C)))));

{ Zig Zag }
zzPts:=Zig(pr,ch,$);
zzPer:=Zig(pr,ch,%);
zz:=If(method=1,zzPts,zzPer);

{ Peak/Trough signals }
pk:=zz=pr AND zz>Ref(zz,-1);
tr:=zz=pr AND zz<Ref(zz,-1);

{ ZigZag normalized }
zzNorm:=(Zig(pk-tr,1,$)+1)/2;

{ Plot normal ZigZag on chart,
normalized ZigZag in own window }
If(plot=1,zzNorm,zz)

ZigZag_Normalized
Source / From: TOP
Metastockusers[at]yahoogroups[dot]com

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!