通达信MACD主力版指标公式
2021/1/11 18:52:56
0,COLORLIGRAY;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORWHITE,LINETHICK1;
DEA:EMA(DIF,9),COLOR00FFFF,LINETHICK1;
MACD:2*(DIF-DEA),COLORFF00FF,COLORSTICK;
主力线:EMA(DIF-MA(REF(DIF,1),1),1)*1.862,COLORGREEN,LINETHICK1;
能量线:EMA(DEA-MA(REF(DEA,1),1),1)*1.862,COLORFFFF1A,LINETHICK1;
IF(主力线>=能量线 AND 主力线>-0.0099,主力线,DRAWNULL),COLORRED,LINETHICK2;
IF(主力线>-0.0099 AND DIF>REF(DIF,1),主力线,DRAWNULL),COLORRED,LINETHICK2;
IF(主力线>=能量线 AND 能量线>REF(能量线,1) AND 能量线>-0.0099,能量线,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
IF(能量线>-0.0099 AND DIF>DEA AND DIF>-0.0099,能量线,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
投股票 网 ww w.tou18.cn
股市公式下载推荐