Discussions
»
Special Interest Groups
»
Basic Coding Techniques
»
Converging Moving averages detection using Explorer
Rank: Newbie
Groups: Registered, Registered Users Joined: 1/24/2012(UTC) Posts: 4
|
Is it possible to write an explorer to detect the last occasion 2 converging moving averages crossed each other? say Wilders(15) and a SMA60 in 60min TF.
ValueWhen(1,cross(Wilders(C,15),Mov(C,60,S)),C)
is this correct? I would assume that this would tell me when the cross had occurred...but how about a way to detect 2 converging averages that has the potential to intersect?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
You'll need to identify ALL of the conditions which would lead the two indicators to cross, starting with: Code:
ind1<ind2 AND roc(ind1,1,%)>roc(ind2,1,%)
wabbit [:D]
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
The MACD indicator is the spread between 2 MA's and a signal line of the spread. When the spread crosses above 0, the faster MA is Greater than the slower MA
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Have a look at the MACD indicator
Moving Average Convergence Divergence
In the help files of metastock, lookup MACD under indicators
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Special Interest Groups
»
Basic Coding Techniques
»
Converging Moving averages detection using Explorer
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.