请高手帮忙把这个通达信的副图指标改写成选股公式、和预警公式万分感激!!!

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AA:=CROSS(DIF,DEA) AND DEA>0;
BB:=BARSLAST(CROSS(DEA,DIF)) AND DEA>0;
CC:=REF(BARSLAST(CROSS(DIF,0))<20,BARSLAST(CROSS(DEA,DIF))+1);
AA AND BB AND CC;

DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
AA:=CROSS(DIF,DEA) AND DEA>0;
BB:=BARSLAST(CROSS(DEA,DIF)) AND DEA>0;
CC:=REF(BARSLAST(CROSS(DIF,0))<20,BARSLAST(CROSS(DEA,DIF))+1);
XG:AA AND BB AND CC;

直接可选股。
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答