关闭
关闭

大众财富-懂你财经金融门户网站

行情中心
N东方10.79 44.06%
N康拓9.91 44.01%
N永兴31.31 44.02%
N惠伦9.26 44.01%
N金科11.29 44.01%
最近访问
仙坛股份30.02 -2.50%
王子新材48.11 -0.27%
花园生物29.83 9.99%
电光科技33.80 -4.57%
中矿资源42.46 1.85%
当前位置: 主页 > 股票 > 市场专区 > 指标公式 >

同花顺MACD彩色量柱指标公式

时间:2021-09-18 10:26来源:未知 作者:cwz 点击:

  Zero : 0;

  DIF : EMA(CLOSE,6) - EMA(CLOSE,13);

  DEA : EMA(DIF,4);

  MACD : 2*(DIF-DEA),COLORFF00FF;

  主力线:EMA(DIF-MA(REF(DIF,1),1),1)*1.862,colorwhite,LINETHICK1;

  STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,5,0),color0000ff;

  STICKLINE(MACD>0 AND MACD

  STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,5,0),colorff00ff;

  STICKLINE(MACD<0 AND MACD

  DIF:=EMA(CLOSE,6)-EMA(CLOSE,13);

  MTM:=C-REF(C,1);

  DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);

  YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);

  蓝:IF(FILTER(YXF=1,5),20,0),colorliblue,LINETHICK3;

  红: IF(FILTER(YXF=1,5),10,0),colorred,LINETHICK2;

  黄: IF(FILTER(YXF=1,5),5,0),coloryellow,LINETHICK1;

  A:=(3*C+L+O+H)/6;

  X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+

  14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)

  +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+

  REF(A,20))/210;

  S2:=SMA(C,3,1);

  S6:=SMA(C,5,1);

  DK:=2*(S2-S6);

  主力成本:EMA(X,13),colorcyan,LINETHICK0;

  STICKLINE(MACD>=0,MACD,0,4,1),COLORF00FF0;

  STICKLINE(MACD<0,MACD,0,4,1),colorwhite;

  STICKLINE(MACD0,0,MACD,4,0 ),COLOR00aaff;

  X1:IF(dif<0,dif,0),COLOR0000FF,LINETHICK2;

  X2:IF(dif<0,0,dif),colormagenta,LINETHICK1;

  X3:IF(dIf

  X4:IF(dif>dea,dea,dea),linethick1,COLORffbb11;

  低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;

  STICKLINE(低位金叉,DEA*0.86,DEA*0.66,6,0),coloryellow;

  DRAWTEXT(低位金叉,dea*0.86,' 金叉'),coloryellow;

  JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));

  二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

  STICKLINE(二次金叉,DEA*0.96,DEA*0.76,6,0),ColorFF00FF;

  DRAWICON(二次金叉,dea*1.1,'BUY') ;

  DRAWTEXT(二次金叉,DEA*0.96,' 金叉'),ColorFF00FF;

  A1:=BARSLAST(REF(CROSS(DIF,DEA),1));

  底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);

  STICKLINE(底背离,DEA*1.09,DEA*0.86,6,0),Color00FF00;

  DRAWLINE(A1=0,DEA,底背离,DEA,0),colorred,linethick1;

  DRAWTEXT(底背离,DEA*1.09,' 底背'),Color6600FF;

  A2:=BARSLAST(REF(CROSS(DEA,DIF),1));

  顶背离:=REF(CLOSE,A2+1)DIF AND CROSS(DEA,DIF);

  DRAWLINE(A2=0,DEA,顶背离,DEA,0),colorgreen,linethick1;

  DRAWTEXT(顶背离,DEA*1.2,' 顶背'),Color00FF00;

(责任编辑:cwz)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
tag标签搜索: 同花顺 同花顺指标公式