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

Notification

Icon
Error

Options
Go to last post Go to first unread
Lordvader  
#1 Posted : Friday, November 9, 2007 1:09:06 PM(UTC)
Lordvader

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

Justin  
#2 Posted : Friday, November 9, 2007 1:33:38 PM(UTC)
Justin

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
Lordvader  
#3 Posted : Friday, November 9, 2007 4:28:01 PM(UTC)
Lordvader

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

Justin  
#4 Posted : Friday, November 9, 2007 5:25:31 PM(UTC)
Justin

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)
Similar Topics
Simbols in the EXPERT ADVISOR (Formula Assistance)
by corrado 10/31/2020 2:12:10 PM(UTC)
How do I enter a custom formula into the Expert Advisor? (Custom Formulas)
by MS Support 5/8/2017 4:12:57 PM(UTC)
Translate an Expert Advisor formula to the indicator builder (Formula Assistance)
by Borsatrader 11/27/2016 6:15:31 PM(UTC)
Expert Advisor : Exporting Alert messages to a plain-text file (MetaStock)
by xrousaios 5/19/2015 4:07:02 PM(UTC)
Weekly Expert Advisor Ribbon on Daily Chart (Formula Assistance)
by Andrew7267 4/18/2015 1:52:16 PM(UTC)
About Symbols in Expert Advisor (Advanced Coding Techniques)
by htt1203dms 3/21/2015 2:56:31 PM(UTC)
Expert Advisor: Setting 1 condition (Formula Assistance)
by johngoat 12/22/2014 12:51:34 AM(UTC)
Pyramid expert advisor (Advanced Coding Techniques)
by Steve W 3/26/2014 3:51:53 AM(UTC)
Expert Advisors (MetaStock)
by xrousaios 2/23/2014 10:40:38 AM(UTC)
I also have a problem on the buy and sell of alerts of expert advisor (Formula Assistance)
by Frenkys 1/1/2014 2:29:47 PM(UTC)
Expert Advisor (Tips & Tricks)
by stinkray 9/5/2013 7:58:40 AM(UTC)
Please Help me ! for ATR trailing stop in indicator builder convert for expert advisor or system tester (Formula Assistance)
by petouchbaby 3/13/2013 2:28:34 AM(UTC)
How to use a variable in Expert Advisor Commentary (Basic Coding Techniques)
by epraveen 10/5/2012 6:40:36 AM(UTC)
Best Expert advisor (MetaStock)
by nisshenvj 8/20/2012 9:07:07 AM(UTC)
Bollinger in expert advisor (Formula Assistance)
by Precisely 4/20/2012 12:27:28 PM(UTC)
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.