logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
paulski  
#1 Posted : Wednesday, October 5, 2011 2:45:58 PM(UTC)
paulski

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
mstt  
#2 Posted : Wednesday, October 5, 2011 6:31:03 PM(UTC)
mstt

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)
Similar Topics
Cumulative volume of Future Contracts (Formula Assistance)
by longrun 3/17/2019 10:04:11 AM(UTC)
cumulative volume per zigzag wave (Advanced Coding Techniques)
by dimpledbrain 9/7/2013 10:14:27 AM(UTC)
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.