在线检测未来函数

大智慧变色MACD指标公式

来源:Internet,编辑:股旁网,2012-06-02

LONG:=20;SHORT:=10;M:=9;
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG),colorred;
DEA : EMA(DIFF,M),COLORYELLOW;
MACD : 2*(DIFF-DEA), COLORSTICK;
PARTLINE(DIFF,DIFF<DEA),COLORGREEN;
STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,2,0),COLORYELLOW;
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,2,0),COLORwhite;

大智慧变色MACD指标公式

 

相关文章