Hi All,
I need you help guys. I'm trying to get cumulative volume based on zigzag indicator.
The zigzag formula that i m using is
{ High/Low ZigZag v2.0
Copyright © 2004-2008 Jose Silva.
For personal use only.
Not for re-sale or redistribution.
http://www.metastocktools.com }
{ User inputs }
change:=Input("ZigZag minimum reversal amount",.001,100000,5);
method:=Input("Method: [1]$ points, [2]% percent",1,2,2);
choose:=Input("ZigZag based on: [1]Hi/Lo, [2]Close",1,2,1);
{ ZigZag }
diffHi:=H-Ref(H,-1);
diffLo:=Ref(L,-1)-L;
x:=If(diffLo>diffHi,L,H);
zzPts:=
If(choose=1,Zig(x,change,$),Zig(C,change,$));
zzPer:=
If(choose=1,Zig(x,change,%),Zig(C,change,%));
zz:=If(method=1,zzPts,zzPer);
{ Plot on price chart }
zz{ High/Low ZigZag v2.0
Copyright © 2004-2008 Jose Silva.
For personal use only.
Not for re-sale or redistribution.
http://www.metastocktools.com }
{ User inputs }
change:=Input("ZigZag minimum reversal amount",.001,100000,5);
method:=Input("Method: [1]$ points, [2]% percent",1,2,2);
choose:=Input("ZigZag based on: [1]Hi/Lo, [2]Close",1,2,1);
{ ZigZag }
diffHi:=H-Ref(H,-1);
diffLo:=Ref(L,-1)-L;
x:=If(diffLo>diffHi,L,H);
zzPts:=
If(choose=1,Zig(x,change,$),Zig(C,change,$));
zzPer:=
If(choose=1,Zig(x,change,%),Zig(C,change,%));
zz:=If(method=1,zzPts,zzPer);
{ Plot on price chart }
zz
How do i plot the cumulative wave vol as per zig zag above (both % and $). And upwave and downwave volume can be differentiated by colour
many thanks. W