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

通达信个股与大盘指标公式,通达信MACD神马版指标公式

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

    关注√

    牛市通网微信

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

通达信个股与大盘指标公式,通达信MACD神马版指标公式

通达信个股与大盘指标公式

N:=30;

{大盘}M1:LLVBARS("999999$L",N);

{个股}M2:LLVBARS(L,N);

CHA1:=M2-M1;

M3:0-HHVBARS(INDEXH,N);

M4:0-HHVBARS(H,N);

XG:=M1=0 AND M2=0 AND M2-M1=0;

XG2:(M1=0 AND M2=0 AND (M2-M1>0 OR M2-M1=0))*70;

XG4:(Abs(CHA1)=1 AND(M1=0 OR M2=0))*80,stICK,LINETHICK3;

0;

通达信MACD神马版指标公式

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

DEA:EMA(DIFF,9);

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

STICKLINE(MacD0,0,MACD,0,0),COLORGREEN;

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

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

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

STICKLINE(金叉,0,0.1,5,0),COLOR0000FF;

DRAWTEXT(金叉,-0.095,'金叉'),COLOR0000FF;

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

STICKLINE(二金叉,0,0.15,5,0),COLORLIRED;

DRAWTEXT(二金叉,0.23,'二次金叉'),COLORLIRED;

三金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,28)=1;

STICKLINE(三金叉,0,0.2,5,0),COLORLIGREEN;

DRAWTEXT(三金叉,0.28,'三次金叉'),COLORLIGREEN;

四金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=4,28)=1;

STICKLINE(四金叉,0,0.25,5,0),COLORCYAN;

DRAWTEXT(四金叉,0.33,'四次金叉'),COLORCYAN;

五金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,33)=1;

STICKLINE(五金叉,0,0.3,5,0),COLORBLUE;

DRAWTEXT(五金叉,0.37,'五次金叉'),COLORBLUE;

六金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=6,33)=1;

STICKLINE(六金叉,0,0.35,5,0),COLORYELLOW;

DRAWTEXT(六金叉,0.0.7,'黄金底'),COLORYELLOW;

DRAWTEXT(六金叉,0.42,'六次金叉'),COLORYELLOW;

七金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=7,33)=1;

STICKLINE(七金叉,0,0.4,5,0),COLORWHITE;

DRAWTEXT(七金叉,0.0.88,'白金底'),COLORWHITE;

DRAWTEXT(七金叉,0.47,'七次金叉'),COLORWHITE;

八金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=8,33)=1;

STICKLINE(八金叉,0,0.5,5,0),COLORMAGENTA;

DRAWTEXT(八金叉,0.0.8,'钻石底'),COLORMAGENTA;

DRAWTEXT(八金叉,0.57,'八次金叉'),COLORMAGENTA;

九金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=9,33)=1;

STICKLINE(九金叉,0,0.55,5,0),COLORRED;

DRAWTEXT(九金叉,0.0.8,'金钻底'),COLORRED;

DRAWTEXT(九金叉,0.6,'九次金叉'),COLORRED;

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

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

STICKLINE(底背离,0,-0.1,5,0),COLORRED;

DRAWTEXT(底背离,DEA,'底背离')COLORRED;

DRAWLINE(A1=0,DEA,底背离,DEA,0),COLOR0000FF,LINETHICK3;

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

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

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

STICKLINE(顶背离,0,0.1,5,0),COLORGREEN;

DRAWTEXT(顶背离,DEA,'顶背离')COLORGREEN;

DRAWTEXT(CROSS(DIFF,DEA) AND 二金叉 AND 底背离,0.3,'三全底'),COLOR0000FF;

IF(DIFF>DEA,DIFF,DRAWNULL),COLORWHITE,LINETHICK2;

IF(DEA>REF(DEA,1) AND DIFF>DEA,DEA,DRAWNULL),COLORYELLOW,LINETHICK2;

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

责任编辑:admin888 标签:通达信个股与大盘指标公式,通达信MACD神马版指标公式
广告

热门搜索

相关文章

广告
牛市通网 |财经频道

通达信个股与大盘指标公式,通达信MACD神马版指标公式

admin888

|

通达信个股与大盘指标公式,通达信MACD神马版指标公式

通达信个股与大盘指标公式

N:=30;

{大盘}M1:LLVBARS("999999$L",N);

{个股}M2:LLVBARS(L,N);

CHA1:=M2-M1;

M3:0-HHVBARS(INDEXH,N);

M4:0-HHVBARS(H,N);

XG:=M1=0 AND M2=0 AND M2-M1=0;

XG2:(M1=0 AND M2=0 AND (M2-M1>0 OR M2-M1=0))*70;

XG4:(Abs(CHA1)=1 AND(M1=0 OR M2=0))*80,stICK,LINETHICK3;

0;

通达信MACD神马版指标公式

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

DEA:EMA(DIFF,9);

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

STICKLINE(MacD0,0,MACD,0,0),COLORGREEN;

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

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

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

STICKLINE(金叉,0,0.1,5,0),COLOR0000FF;

DRAWTEXT(金叉,-0.095,'金叉'),COLOR0000FF;

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

STICKLINE(二金叉,0,0.15,5,0),COLORLIRED;

DRAWTEXT(二金叉,0.23,'二次金叉'),COLORLIRED;

三金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=3,28)=1;

STICKLINE(三金叉,0,0.2,5,0),COLORLIGREEN;

DRAWTEXT(三金叉,0.28,'三次金叉'),COLORLIGREEN;

四金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=4,28)=1;

STICKLINE(四金叉,0,0.25,5,0),COLORCYAN;

DRAWTEXT(四金叉,0.33,'四次金叉'),COLORCYAN;

五金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=5,33)=1;

STICKLINE(五金叉,0,0.3,5,0),COLORBLUE;

DRAWTEXT(五金叉,0.37,'五次金叉'),COLORBLUE;

六金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=6,33)=1;

STICKLINE(六金叉,0,0.35,5,0),COLORYELLOW;

DRAWTEXT(六金叉,0.0.7,'黄金底'),COLORYELLOW;

DRAWTEXT(六金叉,0.42,'六次金叉'),COLORYELLOW;

七金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=7,33)=1;

STICKLINE(七金叉,0,0.4,5,0),COLORWHITE;

DRAWTEXT(七金叉,0.0.88,'白金底'),COLORWHITE;

DRAWTEXT(七金叉,0.47,'七次金叉'),COLORWHITE;

八金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=8,33)=1;

STICKLINE(八金叉,0,0.5,5,0),COLORMAGENTA;

DRAWTEXT(八金叉,0.0.8,'钻石底'),COLORMAGENTA;

DRAWTEXT(八金叉,0.57,'八次金叉'),COLORMAGENTA;

九金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=9,33)=1;

STICKLINE(九金叉,0,0.55,5,0),COLORRED;

DRAWTEXT(九金叉,0.0.8,'金钻底'),COLORRED;

DRAWTEXT(九金叉,0.6,'九次金叉'),COLORRED;

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

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

STICKLINE(底背离,0,-0.1,5,0),COLORRED;

DRAWTEXT(底背离,DEA,'底背离')COLORRED;

DRAWLINE(A1=0,DEA,底背离,DEA,0),COLOR0000FF,LINETHICK3;

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

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

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

STICKLINE(顶背离,0,0.1,5,0),COLORGREEN;

DRAWTEXT(顶背离,DEA,'顶背离')COLORGREEN;

DRAWTEXT(CROSS(DIFF,DEA) AND 二金叉 AND 底背离,0.3,'三全底'),COLOR0000FF;

IF(DIFF>DEA,DIFF,DRAWNULL),COLORWHITE,LINETHICK2;

IF(DEA>REF(DEA,1) AND DIFF>DEA,DEA,DRAWNULL),COLORYELLOW,LINETHICK2;

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


财经频道