在线检测未来函数

通达信周MACD指标公式

来源:Internet,编辑:股旁网,2020-10-13

DIFF:"MACD.DIF#WEEK"(12,26,9),COLORRED,LINETHICK2;
DEA:"MACD.DEA#WEEK"(12,26,9);
MACD:"MACD.MACD#WEEK"(12,26,9),LINETHICK0;
RMACD:=REF(MACD,1);
CK2:=IF(MACD>RMACD,1,IF(MACD<RMACD,2,0));
CK3:=REF(CK2,BARSLAST(CK2<>0));
STICKLINE(MACD>0 AND CK3=1,0,MACD,2,0),COLORRED ;
STICKLINE(MACD>0 AND CK3=2,0,MACD,2,0),COLOR9966FF;
STICKLINE(MACD<=0 AND CK3=1,0,MACD,2,0),COLORCCFF66;
STICKLINE(MACD<=0 AND CK3=2,0,MACD,2,0),COLORBLUE;
IF(1,DIFF,DRAWNULL),COLORRED;
IF(1,DEA,DRAWNULL),COLORBLUE;

通达信周MACD指标公式

 

相关文章