通达信MACD+KDJ优化合体副图指标 源码无加密

MACD 及KDJ 线的优化显示。清晰明了,喜欢的拿去研究研究!不多说!自己看看!

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
 RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
 K:SMA(RSV,9,3),COLORYELLOW;
 D:SMA(K,9,3),COLORWHITE;
 J:3*K-2*D,COLORMAGENTA;
 IF(J<D,J,DRAWNULL),COLORFFEE44;
 MACD2:(EXPMA(CLOSE,30)-REF(EXPMA(CLOSE,30),1))/REF(EXPMA(CLOSE,30),1),COLORSTICK;
 IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK3;
 IF(DIF<REF(DIF,1),DIF,DRAWNULL),COLOR00FF00,LINETHICK2;