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 2, 2007 4:48:22 AM(UTC)
Lordvader

Rank: Member

Groups: Registered, Registered Users
Joined: 9/13/2006(UTC)
Posts: 24

Hi Guys!

I need this formula to select all the securities with Macd Histogram (9) rising and/or declining from the previous bar.

Thanks a lot,

Regards

Lordvader

Justin  
#2 Posted : Friday, November 2, 2007 8:44:44 AM(UTC)
Justin

Rank: Advanced Member

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

Are you referring to a standard MACD (12,26) along with a 9 period signal line? If so the formula would be as follows:

{Rising}
X:=MACD()-Mov(MACD(),9,E);{MACD Histogram}
X > Ref(X,-1)

{Falling}
X:=MACD()-Mov(MACD(),9,E);{MACD Histogram}
X < Ref(X,-1)

The use of variables is not required but can make it a little easier to make sense of the formula portion. If you wanted to set up a scan (Exploration) you can put this into a New Exploration in The Explorer. Just put each formula into a Column and you can sort the list on whether they're rising or falling.
Lordvader  
#3 Posted : Friday, November 2, 2007 9:32:53 AM(UTC)
Lordvader

Rank: Member

Groups: Registered, Registered Users
Joined: 9/13/2006(UTC)
Posts: 24

Pyradius wrote:
Are you referring to a standard MACD (12,26) along with a 9 period signal line? If so the formula would be as follows:

{Rising}
X:=MACD()-Mov(MACD(),9,E);{MACD Histogram}
X > Ref(X,-1)

{Falling}
X:=MACD()-Mov(MACD(),9,E);{MACD Histogram}
X < Ref(X,-1)

The use of variables is not required but can make it a little easier to make sense of the formula portion. If you wanted to set up a scan (Exploration) you can put this into a New Exploration in The Explorer. Just put each formula into a Column and you can sort the list on whether they're rising or falling.

Thanks a lot for your help Pyradius. That's what I was looking for.

Could you post the same formula but this time for the Expert Advisor?

Best Regards,

Lord

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.