{kdj Three Golden Forks}
MA5:=EMA(C,5);
MA 10:=EMA(C, 10);
MV5:=EMA(V,5);
MV 10:=EMA(V, 10);
Krishnamurti: KDJ k”(9,3,3);
Ding: = "kdj. d”(9,3,3);
v 1:= MA5 & gt; REF(MA5, 1) and ma10 > REF(MA 10, 1) and C & gtREF(C, 1) and C/O > 1.0 1;
vv 1:= MV5 & gt; REF(MV5, 1) and mv10 > =REF(MV 10, 1) and V & gtREF(V,1) *1.2;
KD 1:= K & gt; REF(K, 1) and D & gt=REF(D,1);
VA:=COUNT(CROSS(K, d), 4)>= 1 and COUNT(CROSS(MA5, MA 10), 4)>= 1 and COUNT(CROSS(MV5, MV 10).
{macd secondary golden fork}
DIF:=EMA (closing, 12)-EMA (closing, 26);
DEA:=EMA(DIF,9);
MACD:= 2 *(DIF-DEA);
A 1:=CROSS(DIF,DEA);
A2:=REF(A 1, 1);
A3:=COUNT(A2,2 1); {I have been in a golden fork for three weeks before today}
A4: = MA(C,5) > = MA(C, 10) and MA(C,10) > = ma (c,30) and ma (c,30) > = ma (c,60) and ma (c, =MA(C,250); {The moving averages are arranged in long positions} {Turn to S, T to suspend trading}
ST:=STRFIND(stkname,' ST ', 1)>0;
S:= STRFIND(str name,' S ', 1)>0;
suspension:=(dyna info(4)= 0);
Stock selection: if (v 1 and vv 1 and kd 1 and va, 1, 0) and a 1 and a3 and a4 and not (ST) and not (s);