指标选股思路:dif线上穿0轴运行少于20个交易日后出现dif死叉dea线,之后dif首次金叉dea。
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AA:=CROSS(DIF,DEA) AND DEA
T:=BARSLAST(CROSS(DEA,DIF));
CC:=REF(BARSLAST(CROSS(DIF,0)),T+1) 20 AND COUNT(DIF =DEA,T)=1;
AA AND CC;