可按Ctrl+D收藏 蚂蚁资源网

蚂蚁资源网

macd指标源码(自编macd指标红绿柱变色)

  • 全部评论(3)
  • xiaozhang
  • {MACD是绿柱;连续三日内逐渐缩短!}XG:MACD.MACDREF(MACD.MACD,1),3);
  • 2021-02-28 12:30:01
  • mmnn
  • 1、通达信变色MACD指标DIFIF1:=EMA(C,12) - EMA(C,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,COLORFFFFFF,LINETHICK2;DEAEA1,COLORYELLOW,LINETHICK2;MACD:MACD1,NODRAW,COLORMAGENTA;上升:IF(DEAEA1>REF(DEAEA1,1),DEAEA1,DRAWNULL),COLORYELLOW,LINETHICK2;下降:IF(DEAEA1<REF(DEAEA1,1),DEAEA1,DRAWNULL),COLOR227700,LINETHICK2;上翘:IF(DIFIF1>REF(DIFIF1,1),DIFIF1,DRAWNULL),COLORFFFFFF,LINETHICK2;下拐:IF(DIFIF1<REF(DIFIF1,1),DIFIF1,DRAWNULL),COLOR227700,LINETHICK2;DRAWICON(CROSS(DIFIF1,DEAEA1),DEAEA1*1.00,5);DRAWICON(CROSS(DEAEA1,DIFIF1),DEAEA1*1.00,6);2、博易大师变色MACD指标DIFIF1:=EMA(C,12)-EMA(C,26);DEAEA1:=EMA(DIFIF1,9);MACD1:=2*(DIFIF1-DEAEA1),STICK;MACD:2*(DIFIF1-DEAEA1),COLORSTICK;PARTLINE(DEAEA1>REF(DEAEA1,1),DEAEA1),COLORYELLOW,LINETHICK2;PARTLINE(DEAEA1<REF(DEAEA1,1),DEAEA1),COLOR008800,LINETHICK2;PARTLINE(DIFIF1>REF(DIFIF1,1),DIFIF1),COLORFFFFFF,LINETHICK2;PARTLINE(DIFIF1<REF(DIFIF1,1),DIFIF1),COLOR008800,LINETHICK2;DRAWICON(CROSS(DIFIF1,DEAEA1),DEAEA1*1.00,1);DRAWICON(CROSS(DEAEA1,DIFIF1),DEAEA1*1.00,2);
  • 2021-02-12 04:25:48
  • bibila
  • 求高手编写通达信MACD公式:DIF连续3天等于DEA的公式,连续对于不可能,只能大于等于。count(dif>=dea,3)=3;
  • 2021-02-12 04:25:48
  • 商品推荐