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

Notification

Icon
Error

Options
Go to last post Go to first unread
royttm  
#1 Posted : Tuesday, January 2, 2007 11:10:18 PM(UTC)
royttm

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 3/27/2006(UTC)
Posts: 41
Location: Singapore

Hello all,

I have been trying to use the below formular to detect MACD Lines crossover (Blue crosses Red / Red crosses Blue) but with inconsistence detection as my chart indicator MACD (Hist + 2 Lines) was set to (22, 50, 9).

Please help me how should I formulate my MetaStock Exploration Editor for consistencies.
Thank you very much.

colA: If(Cross(MACD(),Mov(MACD(),9,E)),1,If(Cross(Mov(MACD(),9,E),MACD()),-1,0))

Filter: colA=1 or colA=-1

Justin  
#2 Posted : Wednesday, January 3, 2007 7:26:17 AM(UTC)
Justin

Rank: Advanced Member

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

If you used custom MACD parameters elsewhere, you would need to write MACD in its long form rather than using the built-in MACD() function:

Mov(C,12,E)-Mov(C,26,E) is the long form of MACD, you can substitute 12 and 26 with your own parameters.

royttm  
#3 Posted : Wednesday, January 3, 2007 7:58:40 PM(UTC)
royttm

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 3/27/2006(UTC)
Posts: 41
Location: Singapore

Hi Pyradius,

Thanks for your advice to which I had revised the formular to...

Col A: If(Cross(Mov(C,22,E)-Mov(C,50,E),Mov(Mov(C,22,E)-Mov(C,50,E),9,E)),1,If(Cross(Mov(Mov(C,22,E)-Mov(C,50,E),9,E),Mov(C,22,E)-Mov(C,50,E)),-1,0))

Filter: colA=1 OR colA=-1

Thanks once again and Happy New Year To you.
Hope you have a wonderful and prosperous year ahead.

Sincerely
Roy

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.