| 
Rank: Advanced Member
 Groups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)
 Posts: 1,999
 
 Thanks: 96 timesWas thanked: 160 time(s) in 155 post(s)
 
 | 
            
	      
                BC Low’s article, “Identify the Start of a Trend with DMI,” Presented several patterns to signal the beginning and ending of trends. Below are the MetaStock formulas for those signals. These are binary formulas that will have a value of zero normally and the value of 1 (one) when the signal is found. They can be used in any of the formula tools. The steps to enter them an exploration are listed below: 
 To create an Exploration:
 
 1. Select Tools > the Explorer.
 2. Click New
 3. Enter a name for the exploration
 4. Select the Filter tab and enter the formula
 5. Click OK to close the exploration editor.
 
 The formulas are:
 
 ADX clusters
 
 Formula for the start of move:
 
 a1:= ADX(3);
 a2:= ADX(4);
 a3:= ADX(5);
 a1 = a2 AND a1 = a3 AND a1 < 30
 
 
 Formula for the end of a move:
 
 a1:= ADX(3);
 a2:= ADX(4);
 a3:= ADX(5);
 70 < min(a1, min(a2, a3)) AND
 cross(0, roc(a1,1,$)) AND
 cross(0, roc(a2,1,$)) AND
 cross(0, roc(a3,1,$))
 
 
 +DI clusters
 
 Formula for a market bottom:
 
 p1:= PDI(5);
 p2:= PDI(8);
 p3:= PDI(14);
 mark:= 10 > Max(p1, Max(p2, p3)) AND
 5 > Min(p1, Min(p2, p3));
 Ref(mark,-1) AND ROC(p1,1,$)>0 AND
 ROC(p2,1,$)>0 AND ROC(p3,1,$)>0
 
 
 Formula for a strong buy:
 
 a1:= ADX(3);
 a2:= ADX(4);
 a3:= ADX(5);
 p1:= PDI(5);
 p2:= PDI(8);
 p3:= PDI(14);
 mark:= 10 > Max(p1, Max(p2, p3)) AND
 5 > Min(p1, Min(p2, p3));
 70 < min(a1, min(a2, a3)) AND
 90 < max(a1, max(a2, a3)) AND
 cross(0, roc(a1,1,$)) AND
 cross(0, roc(a2,1,$)) AND
 cross(0, roc(a3,1,$)) AND
 Ref(mark,-1) AND ROC(p1,1,$)>0 AND
 ROC(p2,1,$)>0 AND ROC(p3,1,$)>0
 
 
 -DI clusters:
 
 Formula for a market top:
 
 m1:= PDI(5);
 m2:= PDI(8);
 m3:= PDI(14);
 mark:= 10 > Max(m1, Max(m2, m3)) AND
 5 > Min(m1, Min(m2, m3));
 Ref(mark,-1) AND ROC(m1,1,$)>0 AND
 ROC(m2,1,$)>0 AND ROC(m3,1,$)>0
 
 
 Formula for a strong sell:
 
 a1:= ADX(3);
 a2:= ADX(4);
 a3:= ADX(5);
 m1:= PDI(5);
 m2:= PDI(8);
 m3:= PDI(14);
 mark:= 10 > Max(m1, Max(m2, m3)) AND
 5 > Min(m1, Min(m2, m3));
 70 < min(a1, min(a2, a3)) AND
 90 < max(a1, max(a2, a3)) AND
 cross(0, roc(a1,1,$)) AND
 cross(0, roc(a2,1,$)) AND
 cross(0, roc(a3,1,$)) AND
 Ref(mark,-1) AND ROC(m1,1,$)>0 AND
 ROC(m2,1,$)>0 AND ROC(m3,1,$)>0
 |