同花顺MACD双线变色副图指标 源码介绍
同花顺MACD双线变色副图指标 源码
指标由2组参数算出2条类似MACD走势的彩带,当黄线由下降之后开始走平,出现红色或者紫色柱子买入参考
设89日均线作为长期均线参考。
DIFF:=EMA(CLOSE,13)-EMA(CLOSE,34);
DEA:=EMA(DIFF,9);
AA:=MA(DEA,21);
AB:=MA(AA,5);
SL:MA(DIFF,89),coloryellow,LINETHICK1;
STICKLINE(AA>AB,AA,AB,3,0),colormagenta;
STICKLINE(AA<AB,AA,AB,3,0),colorcyan;
STICKLINE(DIFF>DEA,DIFF,DEA,3,0),colorred;
STICKLINE(DIFF<DEA,DIFF,DEA,3,0),colorgreen;
gd46449