Rank: Member
Groups: Registered, Registered Users Joined: 9/13/2006(UTC) Posts: 24
|
Hi Guys!
I'd need a formula for the expert advisor: displaying a green ribbon (bullish) when a standard Macd histogram is rising in the past 2 day and, a red ribbon (bearish) when the same Macd Histogram is declining in the same period.
Thanks again!
Regards,
Lord
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
These formulas should work:
{Bullish} Sum(MACD()-Mov(MACD(),9,E) > Ref(MACD()-Mov(MACD(),9,E),-1),2)=2
{Bearish} Sum(MACD()-Mov(MACD(),9,E) < Ref(MACD()-Mov(MACD(),9,E),-1),2)=2
|
|
|
|
Rank: Member
Groups: Registered, Registered Users Joined: 9/13/2006(UTC) Posts: 24
|
Pyradius wrote:These formulas should work:
{Bullish} Sum(MACD()-Mov(MACD(),9,E) > Ref(MACD()-Mov(MACD(),9,E),-1),2)=2
{Bearish} Sum(MACD()-Mov(MACD(),9,E) < Ref(MACD()-Mov(MACD(),9,E),-1),2)=2
Thanks Pyradius, but I think there is something wrong: when Macd histogram is increasing I have some neutral and bearish zones in that period and vice versa.
Couls you help again?
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
I had thought you meant the MACD Histogram had to be rising for 2 days before determining Bullish or Bearish. If you just want to compare 1 day changes you can use the formulas below instead.
{Bullish} MACD()-Mov(MACD(),9,E) > Ref(MACD()-Mov(MACD(),9,E),-1)
{Bearish} MACD()-Mov(MACD(),9,E) < Ref(MACD()-Mov(MACD(),9,E),-1)
|
|
|
|
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.