Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 9/7/2013(UTC) Posts: 17
Thanks: 5 times
|
Hi ping thanks for your reply... hmm interesting (1) when i select peaks/troughs #3 (zigzag) and plot it on the price chart it produces exactly like this formula i m currently using: { 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 However, nth peak/trough value doesn't seem to matter. If i plot it on a separate window, (1) if peaks/troughs = signal (#2), then nth peak/trough must be 1 (2) if peaks/troughs = values (#1), then nth peak/trough # will affect the result I still don't quite get what the indicator is trying to do...
|