C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
- DEA:=EMA(DIFF,9);
- MACD:=(DIFF-DEA)*2,COLORSTICK;
-
- 多转空:=((((LLV(MACD,4)>0) AND (MACD<REF(MACD,1))) AND (REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));
- 空转多:((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));