在线检测未来函数

同花顺太极MACD指标公式

来源:Internet,编辑:股旁网,2017-07-14

VAR1:=(MA(CLOSE,80)-MA(CLOSE,13)/3);
VAR2:=( MA((CLOSE-VAR1)/VAR1,1));
DIFF:( EMA(CLOSE,5) - EMA(CLOSE,34))*100,COLOR0000FF ,LINETHICK1;
DEA: EMA(DIFF,5);
MACD : 2*(DIFF-DEA), COLORSTICK;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,8,0),colorgreen;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,8,0),COLORFFCC33;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,8,0),coloryellow;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,8,0),colormagenta;

同花顺太极MACD指标公式

 

相关文章