以下是通达信防背离MACD技术源码原创(无源码的请下载附件导入)
DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*1000;
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
防背离:-(MA(DIF,9)+250),COLORGREEN;
STICKLINE(CROSS(防背离,DIF),500,0,2,0),COLORGREEN;
STICKLINE(CROSS(DIF,防背离),500,0,2,0),COLORRED;
DRAWICON(CROSS(DIF,DEA),DIF,1);
DRAWICON(CROSS(DEA,DIF),DIF,2);
72488869.png
|