DIF:=EMA(CLOSE,5)-EMA(CLOSE,26);DEA:=EMA(DIF,3);MACD:=(DIF-DEA)*2;DDIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DDEA:=EMA(DDIF,9);日金:=CROSS(DDIF,DDEA) AND HHV(H,10)=H AND 100*V/CAPITAL<10;MACD金叉股价创10新高【目的要选出阶段性强势股,再给加一些条件也可以】
公式源码示例:
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
日金:CROSS(DIF,DEA) AND DEA<0 AND 100*V/CAPITAL<5 AND HHV(H,10)=H ;