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

Notification

Icon
Error

Options
Go to last post Go to first unread
mjdesmond3001  
#1 Posted : Monday, July 6, 2009 3:43:34 PM(UTC)
mjdesmond3001

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/5/2005(UTC)
Posts: 12

looking for the formula to color elders macd histogram red for down, green for up. i have this formula for his macd

( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E )

now, i looked on the site and found a formula for colored macd histogram

x:=MACD() - Mov(MACD(),9,E);
If(x>=Ref(x,-1),x,0);
If(x<Ref(x,-1),x,0)

so i combined them with no luck

x:=;( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E )
If(x>=Ref(x,-1),x,0);
If(x<Ref(x,-1),x,0)

what am i doing wrong?

Justin  
#2 Posted : Monday, July 6, 2009 4:30:41 PM(UTC)
Justin

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 9/13/2004(UTC)
Posts: 673
Location: Salt Lake City, UT

MetaStock does not store colors directly in the formula. However, they can be saved as part of the Chart or Template.

The formula you mentioned has 2 plots (Two IF statements). You have to set the colors of each plot separately, then you can save a Template from the chart if you want to more easily apply this indicator with the colors already established.
mjdesmond3001  
#3 Posted : Monday, July 6, 2009 6:42:14 PM(UTC)
mjdesmond3001

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/5/2005(UTC)
Posts: 12

actually, i just figured it out. heres the formula x:=Fml("macd elders"); If(x>=Ref(x,-1),x,0); If(x
mjdesmond3001  
#4 Posted : Monday, July 6, 2009 6:43:48 PM(UTC)
mjdesmond3001

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/5/2005(UTC)
Posts: 12

sorry that didnt come out right, here it is again x:=Fml("macd elders"); If(x>=Ref(x,-1),x,0); If(x
mjdesmond3001  
#5 Posted : Monday, July 6, 2009 6:45:44 PM(UTC)
mjdesmond3001

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/5/2005(UTC)
Posts: 12

x:=Fml("macd elders");
If(x>=Ref(x,-1),x,0);
If(x<Ref(x,-1),x,0)
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.