以下是通达信吸拉派落MACD指标公式(无源码的请下载附件导入)
[吸拉派落MACD]
DIF:EMA(CLOSE,9)-EMA(CLOSE,21);
DEA:EMA(DIF,5);
MACD:(DIF-DEA)*2,COLORSTICK;
吸:XLPL.NOTEXT吸,NODRAW;
拉:XLPL.NOTEXT拉,NODRAW;
派:XLPL.NOTEXT派,NODRAW;
落:XLPL.NOTEXT落,NODRAW;
NOTEXT1:IF(吸!=DRAWNULL,DIF,DRAWNULL),COLORLIRED,LINETHICK2;
NOTEXT2:IF(拉!=DRAWNULL,DIF,DRAWNULL),COLORRED,LINETHICK2;
NOTEXT3:IF(派!=DRAWNULL,DIF,DRAWNULL),COLORGREEN,LINETHICK2;
NOTEXT4:IF(落!=DRAWNULL,DIF,DRAWNULL),COLORWHITE,LINETHICK2;
88499377.png
|