通达信MACD短线B副图指标
源码
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIFF,50); MACD:2*(DIFF-DEA),COLORSTICK; STICKLINE(MACD0,0,MACD,1,1),COLORYELLOW; STICKLINE(MACD =REF(MACD,1) AND MACD 0,0,MACD,1,1),COLORRED; STICKLINE(MACD REF(MACD,1) AND MACD 0,0,MACD,1,1),COLORFFC8FF; STICKLINE(MACD =REF(MACD,1) AND MACD 0,0,MACD,1,1),COLORFFCC66; DIFFF:EMA(CLOSE,12)-EMA(CLOSE,26),COLOR00FF00; IF(DIFF =DEA,DIFF,DRAWNULL),COLORWHITE; DEAA:EMA(DIFF,50),COLORFF00FF; IF(DEAA =DIFF,DEAA,DRAWNULL),COLORFFCC66;