综合BIAS、MACD、CCI、WR指标进行选股,不含未来函数,胜率非常高,我自己把它优化到胜率9成,这里只放出它的基础版,不过胜率依然不错,供大家参考、优化。
AA:=100-100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),COLORGREEN;
TYP:=(HIGH+LOW+CLOSE)/3;
BB:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
SHORT:=12;LONG:=26;MID:=9;
DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:=EMA(DIF,MID);
MACD:=(DIF-DEA)*2;
BIAS :=(CLOSE-MA(CLOSE,4))/MA(CLOSE,4)*100;
BIASMA :=MA(BIAS,5);
BIAS6 :=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
XG: CROSS(BIAS6,BIASMA) AND MACD REF(MACD,1) AND CROSS(BB,-30) AND AA 60 ;