编写要求:
MACD二次零上红金叉
公式在线网解答:
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); AA:=DEA>0; BB:=COUNT(CROSS(MACD,0),BARSLAST(CROSS(DEA,0)))=2; CC:=BARSLAST(CROSS(MACD,0))<=2; AA&&BB&&CC