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

Notification

Icon
Error

Options
Go to last post Go to first unread
dimpledbrain  
#1 Posted : Saturday, September 7, 2013 10:35:13 PM(UTC)
dimpledbrain

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

henry1224  
#2 Posted : Sunday, September 8, 2013 6:10:54 AM(UTC)
henry1224

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
dimpledbrain  
#3 Posted : Sunday, September 8, 2013 6:27:00 AM(UTC)
dimpledbrain

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?

henry1224  
#4 Posted : Sunday, September 8, 2013 7:17:18 AM(UTC)
henry1224

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;

dimpledbrain  
#5 Posted : Sunday, September 8, 2013 8:00:28 AM(UTC)
dimpledbrain

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

henry1224  
#6 Posted : Sunday, September 8, 2013 8:18:50 AM(UTC)
henry1224

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
dimpledbrain  
#7 Posted : Sunday, September 8, 2013 8:58:07 AM(UTC)
dimpledbrain

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

henry1224  
#8 Posted : Sunday, September 8, 2013 9:31:54 AM(UTC)
henry1224

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.