Discussions
»
Product and Service Development
»
Formula Assistance
»
Does anyone know 'Trend magic indicator' CCI:50 and ATR:5
Rank: Newbie
Groups: Registered Users, Subscribers, Unverified Users Joined: 8/6/2015(UTC) Posts: 1
|
Does anyone ever heard about Trend magic indicator in Metastock? is it possible to write a code using CCI:50 and ATR:5
It just calculates a (by default) 50-bar CCI and looks to see if it is above/below zero. Then it adds or subtracts a (by default) 5-bar ATR.
can anyone write a code for metastock using these variables?
best regards
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
I don't think CCI would ever equal 0, but you could add a condition for if CCI(50) = 0 to simply plot CCI(50)...
Not including the above concern, the formula below should work.
If(CCI(50) > 0,CCI(50)+ATR(5),If(CCI(50) < 0,CCI(50)-ATR(5),0))
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Does anyone know 'Trend magic indicator' CCI:50 and ATR:5
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.