Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 10/5/2011(UTC) Posts: 1
|
Hi All,
I need you help guys. I'm trying to get cumulative volume based on zigzag indicator.
Every zigzag's wave would correspond with a wave on volume.
Many thanks in advance!
Paul
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Paul
Here's the beginnings of an indicator that might do what you want. I've used PeakBars() and TroughBars() to calculate the lookback range over which to calculate Volume rather than use Zig() for that purpose. The down side is that my indicator only caters for a percent-based Zig() simulation - I'd need to use the Zig() function directly in order to incorporate a points-based capability. However this is only a demonstration and you can modify the code however you wish. You'll need the 188 KB version of the Forum DLL installed and named Forum.DLL for this formula to work as is. If you already have the DLL but under a slightly different name then just change the DLL name in the last line of my code to as necessary. The DLL is available as a download in the Files section of this forum.
{Zig Zag Volume} D:=Input("Zig Zag Volume Data Array, 1=O 2=H 3=L 4=C",1,4,4); M:=Input("Zig Zag Minimum % Change",0,999,5); K:=If(D=1,O,If(D=2,H,If(D=3,L,C))); A:=PeakBars(1,K,M); B:=TroughBars(1,K,M); F:=Min(A,B)+1; ExtFml("Forum.Sum",V,F);
Roy
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.