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

Notification

Icon
Error

Options
Go to last post Go to first unread
ketal  
#1 Posted : Wednesday, September 16, 2015 6:35:18 AM(UTC)
ketal

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 3/7/2014(UTC)
Posts: 17

Thanks: 6 times

Hi,

Below is the Metastock formula for volume wave. I got from this forum (forgot the name of the coder). This plots a wave histogram below price showing average volume as per percentage move in price I want to make some changes into the code. 

1) is it possible to have points based change (close to close) basis instead of % base?

2) I want to plot the increasing average volume above the bar  and decreasing average volume below the bar (in multiple of 1000 or 10000) instead of having histogram.

this is the code:

N:=Input("ZigZag % Parameter",0,99,10);
A:=Zig(C,N,%);
B:=Ref(A,-1)>A AND Ref(A,1)>A OR
A>Ref(A,-1) AND A>Ref(A,1);
X:=A>ValueWhen(2,1,A); Z:=Cum(1);

{Calculate/plot frame Volume}
D:=BarsSince(Ref(B,-1)+(Z=1))+1;
ExtFml("Forum.Sum",V,D)*X;
ExtFml("Forum.Sum",V,D)*(X=0);

Kindly help.   

Regards,

Ketal

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.