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

Notification

Icon
Error

Options
Go to last post Go to first unread
bh2007  
#1 Posted : Tuesday, July 15, 2014 12:11:39 PM(UTC)
bh2007

Rank: Member

Groups: Registered, Registered Users
Joined: 2/15/2013(UTC)
Posts: 13
Location: Hong Kong

Dear Fellows,

Can any person suggest how to write a function / formula on

Alerting
(1) MACD fast line or
(2) Simple Moving Average line;

When the gradient = 0 (i.e. change in direction of the MACD line or SMA line)

Thank you

bh2007
2014-07-16

mstt  
#2 Posted : Wednesday, July 23, 2014 2:19:56 PM(UTC)
mstt

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 7/25/2005(UTC)
Posts: 1,042

Was thanked: 57 time(s) in 54 post(s)
Hi BH

Is this what you're trying to capture?

{MACD Downturn}
M:=MACD();
M<Ref(M,-1) AND Ref(M,-1)>Ref(M,-2);

{MACD Signal Line Downturn}
M:=Mov(MACD(),9,S);
M<Ref(M,-1) AND Ref(M,-1)>Ref(M,-2);

Roy
bh2007  
#3 Posted : Saturday, July 26, 2014 2:54:41 PM(UTC)
bh2007

Rank: Member

Groups: Registered, Registered Users
Joined: 2/15/2013(UTC)
Posts: 13
Location: Hong Kong

Thank you Roy for your help

I will try this in my test

BH2007
2014-07-27
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.