变色macd 用法同macd。 MACD指标说明 MACD指数平滑异同移动平均线为两条长、短的平滑平均线。 其买卖原则为: 1.DIFF、DEA均为正,DIFF向上突破DEA,买入信号参考。 2.DIFF、DEA均为负,DIFF向下跌破DEA,卖出信号参考。 3.DEA线与K线发生背离,行情可能出现反转信号。 4.分析MACD柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。
使用方法:0轴上方出现红色柱子,做多。0轴上方出现青蓝色柱子减仓。0轴下方出现绿色柱子是做空信号,0轴下方出现洋红色柱子是空头回补信号。
DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26); DEAEA1:=EMA(DIFIF1,9); MACD1:=2*(DIFIF1-DEAEA1),STICK; MACD2:=EMA(MACD1,3); STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),colorred; STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),colorgreen; STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0; STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),colorwhite; DIFIF1,COLOR33FF33,LINETHICK2; DEAEA1,coloryellow,LINETHICK2; MACD:MACD1,NODRAW,colormagenta; 强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),colorred,LINETHICK2; 弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2; DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1); DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2); DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'○'),LINETHICK2, coloryellow; STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),colorcyan; STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),colorgreen; STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),colormagenta; STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),colorred; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2); DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; MACD>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2); diff:=EMA(C,12)-EMA(C,26); dea:=EMA(diff,9); xg:CROSS(diff,dea);
移动端首页 | PC端
© by gszx.com.cn Mobile Web
变色macd
用法同macd。
MACD指标说明
MACD指数平滑异同移动平均线为两条长、短的平滑平均线。
其买卖原则为:
1.DIFF、DEA均为正,DIFF向上突破DEA,买入信号参考。
2.DIFF、DEA均为负,DIFF向下跌破DEA,卖出信号参考。
3.DEA线与K线发生背离,行情可能出现反转信号。
4.分析MACD柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。
使用方法:0轴上方出现红色柱子,做多。0轴上方出现青蓝色柱子减仓。0轴下方出现绿色柱子是做空信号,0轴下方出现洋红色柱子是空头回补信号。
DIFIF1:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEAEA1:=EMA(DIFIF1,9);
MACD1:=2*(DIFIF1-DEAEA1),STICK;
MACD2:=EMA(MACD1,3);
STICKLINE(MACD1>MACD2 AND MACD1>0,0,MACD1,1,0),colorred;
STICKLINE(MACD1>MACD2 AND MACD1<0,0,MACD1,1,0),colorgreen;
STICKLINE(MACD1<MACD2,0,MACD1,1,0),COLORCBCBC0;
STICKLINE(MACD1>=0 OR MACD1<=0,0,0,50,1),colorwhite;
DIFIF1,COLOR33FF33,LINETHICK2;
DEAEA1,coloryellow,LINETHICK2;
MACD:MACD1,NODRAW,colormagenta;
强:IF(DIFIF1>=DEAEA1,DIFIF1,DRAWNULL),colorred,LINETHICK2;
弱:IF(DEAEA1>=DIFIF1,DEAEA1,DRAWNULL),COLORFF9900,LINETHICK2;
DRAWICON(CROSS(DIFIF1,DEAEA1),DIFIF1+0.1,1);
DRAWICON(CROSS(DEAEA1,DIFIF1),-0.5,2);
DRAWTEXT(CROSS(DIFIF1,DEAEA1),DIFIF1,'○'),LINETHICK2, coloryellow;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0),colorcyan;
STICKLINE(MACD<REF(MACD,1)AND MACD<0,0,MACD,2,0),colorgreen;
STICKLINE(MACD>REF(MACD,1)AND MACD,0,MACD,2,0),colormagenta;
STICKLINE(MACD>REF(MACD,1)AND MACD>0,0,MACD,3,0),colorred;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
MACD<0 AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
MACD>0 AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2);
diff:=EMA(C,12)-EMA(C,26);
dea:=EMA(diff,9);
xg:CROSS(diff,dea);