通达信四金叉选股公式 成功率较高源码附图
-
相关简介:均线、dif dea 、K D 量均线,四种金叉共振,选出的股票成功率较高。 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:=DIFREF(DIF,1) AND DEA=REF(DEA,1) AND DIFDEA; V1:=MA5REF
-
文章来源:股海网作者:股海网发布时间:2020-04-23浏览次数:
均线、dif dea 、K D 量均线,四种金叉共振,选出的股票成功率较高。
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);