同花顺【变色带MACD】源码发布大智慧L2
-
相关简介:变色带MACD(同花顺版): //参数:long:26,20,100 short:12,5,40 m:9,2,60 DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),LAYER0; DEA :=EMA(DIFF,9),LAYER0; MACD : 2*(DIFF-DEA),COLORSTICK,LAYER0; 主升 := DIFF0 AND DIFFDEA,COLORffffff,POINTDOT,LINETHICK0; FILLRGN(DIFF,DEA,DIFFDEA
-
文章来源:股海网作者:股海网发布时间:2015-11-02浏览次数:
变色带MACD(同花顺版):
//参数:long:26,20,100 short:12,5,40 m:9,2,60
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26),LAYER0;
DEA :=EMA(DIFF,9),LAYER0;
MACD : 2*(DIFF-DEA),COLORSTICK,LAYER0;
主升 := DIFF>0 AND DIFF>DEA,COLORffffff,POINTDOT,LINETHICK0;
FILLRGN(DIFF,DEA,DIFF>DEA AND DIFF>REF(DIFF,1),color0999ff,DIFF>DEA AND DIFF<REF(DIFF,1),colorff3303);
FILLRGN(DIFF,DEA,主升 AND DIFF>DEA AND DIFF>REF(DIFF,1),color0333ff,主升 AND DIFF>DEA AND DIFF<REF(DIFF,1),colorff3303);
FILLRGN(DIFF,DEA,DIFF<DEA AND DIFF>REF(DIFF,1),colorFFFFFF,DIFF<DEA AND DIFF<REF(DIFF,1),color111111);
PARTLINE(DIFF,DIFF>REF(DIFF,1),color333333,DIFF<REF(DIFF,1),color444444),LINETHICK1;
PARTLINE(DEA,DEA>REF(DEA,1),color333333,DEA<REF(DEA,1),color444444),LINETHICK1