您当前的位置:股票 > 财经资讯 > 财经频道

通达信小股民MACD指标公式,通达信macd顶底背离指标公式

2024-06-15 23:17:50 来源: 作者: admin888
分享到
关注牛市通网在线:
  • 扫描二维码

    关注√

    牛市通网微信

在线咨询:
  • 扫描或点击关注牛市通网在线客服

通达信小股民MACD指标公式,通达信macd顶底背离指标公式

通达信小股民MACD指标公式

dif:(ema(CLOSE,12) - Ema(CLOSE,26)),COLORRED,NODRAW;

DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;

macd:2*(DIF-DEA),NODRAW;

DIFK:=EMA(DIF,3);

DIFD:=EMA(DIFK,3);

DKK:4*DIF-3*DEA,COLORFF00FF,NODRAW;

DDD:EMA(DKK,5),COLOR2588FF,NODRAW;

DRAWICON(crOSS(DDD,DKK),DKK,2);

DRAWICON(CROSS(DKK,DDD),DDD,1);

TRLSX1:= MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),Abs(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));

TRLSX2:=EMA(TRLSX1,13);

TRLSX3:=REF(DIF,1)-REF(TRLSX2,1);

支撑:HHV(TRLSX3,13),COLORFFFFFF,NODRAW;

RSV14:=(CLOSE - LLV(LOW,14))/(HHV(HIGH,14) - LLV(LOW,14))-0.5;

K14:=EMA(RSV14,3),COLORFF00FF,NODRAW;

D14:=EMA(K14,3),COLORGREEN,NODRAW;

J14:=3*K14-2*D14;

DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,100,10));

MacDXG2:=REF(COUNT(DIF>0 AND MACD<0 AND MACDREF(MACD,1);

stICKLINE(MACDXG2,MACD*1.2,0,2.8,0),COLORRED;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR888888;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLORBBBBBB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORDDDDDD;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR3377AA;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR3388BB;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700;

STICKLINE(J14<-0.5,0,0.15,1.8,0),COLORFF00FF;

支撑,COLORFFFFFF;

IF(C>0,DIF,DRAWNULL),COLORRED,LINETHICK1;

IF(C>0,DEA,DRAWNULL),COLOR00FFFF,LINETHICK1;

IF(DEA

IF(DIF<=REF(DIF,1),DIF,DRAWNULL),COLORBLUE,LINETHICK1;

IF(C,DKK,DRAWNULL),COLORFF00FF,LINETHICK1;

IF(DKK<=REF(DKK,1),DKK,DRAWNULL),COLORCYAN,LINETHICK1;

IF(C,DDD,DRAWNULL),COLOR2255FF,LINETHICK1;

IF(DDD<=REF(DDD,1),DDD,DRAWNULL),COLOR33FF33,LINETHICK1;

kdjXG:=REF(COUNT(J14=3,1) AND REF(J14,1)<-0.4 AND J14>REF(J14,1);

DRAWICON(FILTER(kdJXG,3),MACD*1.2,11),COLORFF00EE;

准备介入点:=REF(CROSS(0,MACD),3) AND COUNT(DIF>0 AND MACD

DRAWICON(准备介入点,0.05,9);

TS:=BArslAST(MACD>=0 AND REF(MACD,1)<0);

红柱面积:0.091*IF(MACD<0 AND REF(MACD,1)>=0,SUM(REF(MACD,1),TS),0),COLORMAGENTA,LINETHICK0;

STICKLINE(MACD<0 AND REF(MACD,1)>=0,0,红柱面积,4,0),COLORWHITE;

TS1:=BARSLAST(MACD<=0 AND REF(MACD,1)>0);

绿柱面积:0.1*IF(MACD>0 AND REF(MACD,1)<=0,SUM(REF(MACD,1),TS1),0),COLORGREEN,LINETHICK0;

STICKLINE(MACD>0 AND REF(MACD,1)<=0,0,绿柱面积,4,0),COLORGREEN;

A1:=CROSS(DIF,DEA) AND DIF<-0.1;

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

STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;

底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;

DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;

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

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

顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;

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

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

DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;

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

STICKLINE(低金,0,0.01,6,0),COLORYELLOW;

DRAWTEXT(低金,0.10,' 低金'),COLORWHITE;

DRAWTEXT(低金 AND 二次金叉 AND 底背离,0.5,'三全项'),COLOR0000FF;

DRAWTEXT(低金 AND 底背离,0.4,'二全项'),COLOR0000FF;

DRAWTEXT(二次金叉 AND 低金,0.3,'一全项'),COLOR0000FF;

DRAWTEXT(二次金叉 AND 底背离,0.2,'无全项'),COLOR0000FF;

通达信macd顶底背离指标公式

difF:ema(CLOSE,12)-Ema(CLOSE,27);

DEA:EMA(DIFF,9);

macd:2*(DIFF-DEA), COLORstICK,LINETHICK2;

低位金叉:=crOSS(DIFF,DEA) AND DIFF<-0.1;

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BArslAST(DEA>=0));

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

STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;

DRAWICON(二次金叉,DEA*0.9,1) ;

DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;

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

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

STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;

底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;

DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;

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

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

顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;

DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'进场'),COLOR0000FF,LINETHICK2;

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。

责任编辑:admin888 标签:通达信小股民MACD指标公式,通达信macd顶底背离指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

通达信小股民MACD指标公式,通达信macd顶底背离指标公式

admin888

|

通达信小股民MACD指标公式,通达信macd顶底背离指标公式

通达信小股民MACD指标公式

dif:(ema(CLOSE,12) - Ema(CLOSE,26)),COLORRED,NODRAW;

DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;

macd:2*(DIF-DEA),NODRAW;

DIFK:=EMA(DIF,3);

DIFD:=EMA(DIFK,3);

DKK:4*DIF-3*DEA,COLORFF00FF,NODRAW;

DDD:EMA(DKK,5),COLOR2588FF,NODRAW;

DRAWICON(crOSS(DDD,DKK),DKK,2);

DRAWICON(CROSS(DKK,DDD),DDD,1);

TRLSX1:= MAX(MAX((HHV(DIF,13)-LLV(DIF,13)),Abs(REF(DIF,1)-HHV(DIF,13))),ABS(REF(DIF,1)-LLV(DIF,13)));

TRLSX2:=EMA(TRLSX1,13);

TRLSX3:=REF(DIF,1)-REF(TRLSX2,1);

支撑:HHV(TRLSX3,13),COLORFFFFFF,NODRAW;

RSV14:=(CLOSE - LLV(LOW,14))/(HHV(HIGH,14) - LLV(LOW,14))-0.5;

K14:=EMA(RSV14,3),COLORFF00FF,NODRAW;

D14:=EMA(K14,3),COLORGREEN,NODRAW;

J14:=3*K14-2*D14;

DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,100,10));

MacDXG2:=REF(COUNT(DIF>0 AND MACD<0 AND MACDREF(MACD,1);

stICKLINE(MACDXG2,MACD*1.2,0,2.8,0),COLORRED;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR888888;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLORBBBBBB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORDDDDDD;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR3377AA;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR3388BB;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR4499CC;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLORFF3300;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLORFF5500;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF7700;

STICKLINE(J14<-0.5,0,0.15,1.8,0),COLORFF00FF;

支撑,COLORFFFFFF;

IF(C>0,DIF,DRAWNULL),COLORRED,LINETHICK1;

IF(C>0,DEA,DRAWNULL),COLOR00FFFF,LINETHICK1;

IF(DEA

IF(DIF<=REF(DIF,1),DIF,DRAWNULL),COLORBLUE,LINETHICK1;

IF(C,DKK,DRAWNULL),COLORFF00FF,LINETHICK1;

IF(DKK<=REF(DKK,1),DKK,DRAWNULL),COLORCYAN,LINETHICK1;

IF(C,DDD,DRAWNULL),COLOR2255FF,LINETHICK1;

IF(DDD<=REF(DDD,1),DDD,DRAWNULL),COLOR33FF33,LINETHICK1;

kdjXG:=REF(COUNT(J14=3,1) AND REF(J14,1)<-0.4 AND J14>REF(J14,1);

DRAWICON(FILTER(kdJXG,3),MACD*1.2,11),COLORFF00EE;

准备介入点:=REF(CROSS(0,MACD),3) AND COUNT(DIF>0 AND MACD

DRAWICON(准备介入点,0.05,9);

TS:=BArslAST(MACD>=0 AND REF(MACD,1)<0);

红柱面积:0.091*IF(MACD<0 AND REF(MACD,1)>=0,SUM(REF(MACD,1),TS),0),COLORMAGENTA,LINETHICK0;

STICKLINE(MACD<0 AND REF(MACD,1)>=0,0,红柱面积,4,0),COLORWHITE;

TS1:=BARSLAST(MACD<=0 AND REF(MACD,1)>0);

绿柱面积:0.1*IF(MACD>0 AND REF(MACD,1)<=0,SUM(REF(MACD,1),TS1),0),COLORGREEN,LINETHICK0;

STICKLINE(MACD>0 AND REF(MACD,1)<=0,0,绿柱面积,4,0),COLORGREEN;

A1:=CROSS(DIF,DEA) AND DIF<-0.1;

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

STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;

底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;

DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;

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

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

顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;

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

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

DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;

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

STICKLINE(低金,0,0.01,6,0),COLORYELLOW;

DRAWTEXT(低金,0.10,' 低金'),COLORWHITE;

DRAWTEXT(低金 AND 二次金叉 AND 底背离,0.5,'三全项'),COLOR0000FF;

DRAWTEXT(低金 AND 底背离,0.4,'二全项'),COLOR0000FF;

DRAWTEXT(二次金叉 AND 低金,0.3,'一全项'),COLOR0000FF;

DRAWTEXT(二次金叉 AND 底背离,0.2,'无全项'),COLOR0000FF;

通达信macd顶底背离指标公式

difF:ema(CLOSE,12)-Ema(CLOSE,27);

DEA:EMA(DIFF,9);

macd:2*(DIFF-DEA), COLORstICK,LINETHICK2;

低位金叉:=crOSS(DIFF,DEA) AND DIFF<-0.1;

STICKLINE(低位金叉,0,0.08,6,0),COLORYELLOW;

DRAWTEXT(低位金叉,0.16,' 低位金叉'),COLORWHITE;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BArslAST(DEA>=0));

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

STICKLINE(二次金叉,0,0.06,6,0),COLORFF00FF;

DRAWICON(二次金叉,DEA*0.9,1) ;

DRAWTEXT(二次金叉,0.2,' 二次金叉'),COLORYELLOW;

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

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

STICKLINE(底背离,0,0.03,6,0),COLOR00FF00;

底背:DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK4;

DRAWTEXT(底背离,0.12,' 底背离'),COLORFF00FF;

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

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

顶背:DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK4;

DRAWTEXT(低位金叉 AND 二次金叉 AND 底背离,0.25,'进场'),COLOR0000FF,LINETHICK2;

牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。


财经频道