Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 9/7/2013(UTC) Posts: 17
Thanks: 5 times
|
hi there, need help. i am using this formula from the forum for colour coded volume: Up:=If(C>Ref(C,-1),V,0); dn:=If(C<Ref(C,-1),V,0); Neutral:=If(C=Ref(C,-1),V,0); up;Dn;Neutral; However, when i overlay the moving average on the colour coded volume, it's different from the MA line in normal volume. how do i solve this? many thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Dear Dimple,
The code you provided is correct! It plots 3 different values. When you drop a moving average on it , the program will only use the last value that is stated. In the formula that you provided, the last value stated is Neutral
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 9/7/2013(UTC) Posts: 17
Thanks: 5 times
|
hi henry, thanks for your reply. so is there a way for me to get the MA work like normal?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
if you are just trying to get the average of the volume to be plotted against the colored volume, just add the Ma into the indicator Code:
Per1:=input("volume average",5,200.14);
Up:=If(C>Ref(C,-1),V,0);
dn:=If(C<Ref(C,-1),V,0);
Neutral:=If(C=Ref(C,-1),V,0);
MV:=Mov(V,Per1,S);
up;Dn;Neutral;MV;
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 9/7/2013(UTC) Posts: 17
Thanks: 5 times
|
hello Henry thanks for the quick reply! appreciated it :) just to check - when i plot that formula into the colour coded volume above, 4 lines came out..how do i get it to show only 1 line. say in this instance simple MA 60 days
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
You have to change the color and style of each line,
the first line "up" will be colored green and the style as histogram the second line "down" will be colored red and the style as histogram the third line "Neutral" will be colored blue and the style as histogram the fourth line"ma Volume" color it black and adjust the thickness to the second selection and plot it as a line
The fourth line will be a wave type of line reflecting the Moving Average
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Subscribers Joined: 9/7/2013(UTC) Posts: 17
Thanks: 5 times
|
wah. you help to combine the entire thing. kudos genius. thanks for your help
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
once you get your chart organized the way you want, indicators,and expert attached, then save it as a template
|
|
|
|
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.