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

Notification

Icon
Error

Options
Go to last post Go to first unread
Srdkn  
#1 Posted : Sunday, August 30, 2015 5:53:10 PM(UTC)
Srdkn

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


MS Support  
#2 Posted : Friday, September 4, 2015 5:07:18 PM(UTC)
MS Support

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)
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.