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)
|
Please check your code again! Here is the correct code from Stocks & Commodities Code:
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
|