Discussions
»
Product and Service Development
»
Formula Assistance
»
Formula / Function - Alerting (1) MACD fast line or (2) Simple Moving Average Line; Gradient = 0 (i.e. change in direction)
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
|
|
|
|
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
|
|
|
|
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)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Formula / Function - Alerting (1) MACD fast line or (2) Simple Moving Average Line; Gradient = 0 (i.e. change in direction)
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.