是不是这个
四金叉选股源码
ma5:=ema(c,5);
ma10:=ema(c,10);
mv5:=ema(v,5);
mv10:=ema(v,10);
k:="kdj.k"(9,3,3);
d:="kdj.d"(9,3,3);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd1:=dif>ref(dif,1) and dea>=ref(dea,1) and dif>dea;
v1:=ma5>ref(ma5,1) and ma10>ref(ma10,1) and c>ref(c,1) and c/o>1.01;
vv1:=mv5>ref(mv5,1) and mv10>=ref(mv10,1) and v>ref(v,1)*1.2 ;
kd1:=k>ref(k,1) and d>=ref(d,1);
va:=count(cross(k,d),4)>=1 and count(cross(ma5,ma10),4)>=1 and
count(cross(mv5,mv10),4)>=1 and count(cross(dif,dea),4)>=1;
xg2:if(v1 and vv1 and kd1 and macd1 and va,1,0); |