PureBytes Links
Trading Reference Links
|
=================
ZigZag normalized
=================
---8<-------------------------------
{ 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)
---8<-------------------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "tan
ming" <reminiscenostalgia@xxx> wrote:
>
> Can zigzag be normalized?
>
> Eg all zigzag peaks at 1 and all zigzag tough at 0.
>
> Claro
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/equismetastock/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:equismetastock-digest@xxxxxxxxxxxxxxx
mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|