通达信《巧用KDJ和CCI组合指标抄底》选股公式源码
编写了个选股公式,仅供学习,高手略过,不构成投资建议,据此操作,风险自负!
{抄底}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
XG:J<0 and k<25 and cci<-200 and c/ma(c,5)*100>10;
{抄底副图}
=================
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
XG:=J<0 AND K<25 AND CCI<-120 AND C/MA(C,5)*100>10;
IF(XG=1,10,0),COLOR00FFFF;
2212488273.jpg
2213122273.jpg
|