通达信优化MACD红绿灯指标公式

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100,COLORGREEN,LINETHICK1;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;
IF(DIF,5,DRAWNULL),COLORYELLOW,LINETHICK9;
IF(DIF>=REF(DIF,1),5,DRAWNULL),COLORRED,LINETHICK9;
IF(DIF<=REF(DIF,1),5,DRAWNULL),COLORGREEN,LINETHICK9;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:3*K-2*D,COLORLIBLUE,LINETHICK1;
IF(J>=REF(J,1),J,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(J,10,DRAWNULL),COLORYELLOW,LINETHICK9;
IF(J>=REF(J,1),10,DRAWNULL),COLORRED,LINETHICK9;
IF(J<=REF(J,1),10,DRAWNULL),COLORGREEN,LINETHICK9;
MA5:=MA(C,5),COLORLIBLUE,LINETHICK1;
IF(MA5,15,DRAWNULL),COLORYELLOW,LINETHICK9;
IF(MA(C,5)>=REF(MA(C,5),1),15,DRAWNULL),COLORRED,LINETHICK9;
IF(MA(C,5)<REF(MA(C,5),1),15,DRAWNULL),COLORGREEN,LINETHICK9;

通达信优化MACD红绿灯指标公式

 

大智慧策略终端/职业股民首选分析软件:支持ACE数据,支持L2行情全推数据,支持股票池,超赢数据,价格低廉,支持月季费年费。:

下载地址:https://share.weiyun.com/LPoU0GHu