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

Notification

Icon
Error

Options
Go to last post Go to first unread
Patrick  
#1 Posted : Friday, August 19, 2005 4:25:20 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
These two formulas are for the Dr. Alexander Elder indicators. The custom formula for the MACD Histogram is: ( Mov( C,12,E ) - Mov( C,26,E ) ) - Mov( ( Mov( C,12,E ) - Mov( C,26,E ) ),9,E ) The custom formula for the Weekly MACD Histogram utilizing daily data is: Mov(If(DayOfWeek()=5,C,Peak(1,If(DayOfWeek()=5,C,0),1)),60,E) - Mov(If(DayOfWeek()=5,C,Peak(1,If(DayOfWeek()=5,C,0),1)),130,E) - Mov(Mov(If(DayOfWeek()=5,C,Peak(1,If(DayOfWeek()=5,C,0),1)),60,E) - Mov(If(DayOfWeek()=5,C,Peak(1,If(DayOfWeek()=5,C,0),1)),130,E),45,E)
Wolf  
#2 Posted : Saturday, October 1, 2005 2:45:15 PM(UTC)
Wolf

Rank: Newbie

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

Hello Patrick! I just cannot find your post on creating MACD Histogram with red and green bars. I guess there was the whole formula for that on the forum. Would you write it again? Thanks a lot, Regards
Patrick  
#3 Posted : Saturday, October 1, 2005 4:31:45 PM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
It's somewhere in here :D The formla is : If(MACD()>0,MACD,0); If(MACD()<=0,MACD,0); Now plot this indicator on you chart, right click on one of the lines and select properties. In the properties change the color to green and the style to Histogram. Do the same wih the next line ... Patrick :mrgreen:
Wolf  
#4 Posted : Sunday, October 2, 2005 12:01:26 PM(UTC)
Wolf

Rank: Newbie

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

Hello Patrick! Thanks for your answer! :) But I think I am still missing something. The whole indicator formula was called, if I remember correctly, MACDV Histogram and went like this: MACD() - Mov(MACD(),9,E) which is for the histogram and the other part for red and green bars. Adding your formula to histogram formula does not work. If(MACD()>0,MACD(),0); If(MACD()<=0,MACD(),0) I must have mistaken something :lol: Would you give me advice? Have a nice weekend :boire: :!: Regards Wolf
wabbit  
#5 Posted : Sunday, October 2, 2005 12:46:08 PM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
Wolf, Have a look, not at what Patrick had done, but at what he was trying to demonstrate... Try this: --8<---------------------------- x:=MACD() - Mov(MACD(),9,E); If(x>0,x,0); {green histogram} If(x<=0,x,0) ; {red histogram} --8<---------------------------- Hope this helps. wabbit :D
Wolf  
#6 Posted : Monday, October 3, 2005 12:40:40 PM(UTC)
Wolf

Rank: Newbie

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

Hi, thanks for advice! But it is my fault, I mean I have not explained excatly what I wanted to achieve. What I really wanted was if today's MACD is greater than yesterday's, it is a green histogram, or if today's MACD is less than yesterday's, it is a red histogram. Using your advice I wrote such a formula: x:=MACD() - Mov(MACD(),9,E); If(x>=Ref(x,-1),x,0); If(x<Ref(x,-1),x,0) It works for me, would correct me if there is still a mistake? Thanks.
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.