最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信130波段分时多空金博士指标公式

    正文概述    2024-05-04 04:35:51  

    以下是通达信130多空金博士指标公式源码和使用说明


    通达信130波段分时多空金博士指标公式源码:

       {参数:

       N:1/100/20

       M:1/100/32

       P1:1/100/80

       P2:1/100/100

       }

       :(MA(CLOSE,60)+MA(CLOSE,70)+MA(CLOSE,90)+MA(CLOSE,108))/4,COLORYELLOW,LINETHICK2;

       VAR1:=(C+H+O+L)/4;

       卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;

       买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;

       幅度:100*(卖出-买入)/买入,NODRAW;

       MA1:=MA(VAR1,3);

       STICKLINE(卖出 LOWAND卖出 HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),COLORGREEN;

       STICKLINE(卖出 MIN(C,O)AND卖出 MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),COLORGREEN;

       STICKLINE(卖出 LOWAND卖出 HIGH,卖出,HIGH,0,0),COLORGREEN;

       STICKLINE(卖出 LOW,OPEN,CLOSE,3,0),COLORGREEN;

       STICKLINE(卖出 LOW,HIGH,LOW,0,0),COLORGREEN;

       STICKLINE(买入 LOWAND买入 HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),COLORMAGENTA;

       STICKLINE(买入 MIN(C,O)AND买入 MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),COLORMAGENTA;

       STICKLINE(买入 LOWAND买入 HIGH,买入,LOW,0,0),COLORMAGENTA;

       STICKLINE(买入 HIGH,OPEN,CLOSE,3,0),COLORMAGENTA;

       STICKLINE(买入 HIGH,HIGH,LOW,0,0),COLORMAGENTA;

       DRAWTEXT(CROSS(C,买入)OR(L 买入),LOW*0.95,'B'),COLORRED,LINETHICK2;

       A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;

       A4:=SMA(A3,3,1);

       A5:=SMA(A4,3,1);

       A6:=3*A4-2*A5;

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

       A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);

       买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8 0,2)ANDCROSS(A8,MA(A8,2));

       DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;

       STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;

       VAR11:=(2*CLOSE+HIGH+LOW+OPEN)/5;

       A11:(EMA(VAR11,3)+EMA(VAR11,6)+EMA(VAR11,12)+EMA(VAR11,24))/4;

       A22:EMA(A11,2);

       A33:EMA(A22,2);

       A44:EMA(A33,2);

       A55:EMA(A44,2);

       A66:EMA(A55,2);

       A77:EMA(A66,2);

       A88:EMA(VAR11,2.78)*1.028;

       A99:MA(OPEN,3.2)*1.028;

       {130波段}

       VAR1:=((CLOSE-LLV(LOW,1200))/(HHV(HIGH,1200)-LLV(LOW,1200)))*(100);

       VAR2:=REVERSE(VAR1);

       VAR3:=SMA(VAR1,1200,900);

       K:=SMA(VAR3,1200,7);

       D:=SMA(K,1200,7);

       DRAWTEXT(CROSS(K,D)ANDMA(CLOSE,5) CLOSE,D,'多'),COLORRED;

       DRAWTEXT(CROSS(D,K)ANDMA(CLOSE,5),D,'空'),COLORGREEN;

       STICKLINE((K =D),K,D,6,0),COLOR0000A8;

       STICKLINE((K =D),K,D,5,0),COLOR0000C0;

       STICKLINE((K =D),K,D,4,0),COLOR0000E0;

       STICKLINE((K =D),K,D,3,0),COLOR0000F0;

       STICKLINE((K =D),K,D,2,0),COLOR0000D0;

       STICKLINE((K =D),K,D,1,0),COLOR8080FF;

       STICKLINE((K =D),K,D,6,0),COLOR008800;

       STICKLINE((K =D),K,D,5,0),COLOR009900;

       STICKLINE((K =D),K,D,4,0),COLOR00AA00;

       STICKLINE((K =D),K,D,3,0),COLOR00BB00;

       STICKLINE((K =D),K,D,2,0),COLOR00CC00;

       STICKLINE((K =D),K,D,1,0),COLOR00DD00;

       极端底部线:10;

       极端顶部线:90;

       M1:=36;

       N1:=13;

       N:=100;

       Q:=5;

       SHORT:=21;

       LONG:=44;

       MID:=11;

       P2:=11;

       DRAWGBK(C 0,RGB(50,60,250),RGB(17,21,89),0,'11',0);

       H1:=maX(DYNAINFO(3),DYNAINFO(5));

       L1:=MIN(DYNAINFO(3),DYNAINFO(6));

       P1:=H1-L1;

       阻力:L1+P1*7/8,COLORGREEN;

       支撑:L1+P1*0.5/8,COLORRED;

       中:(支撑+阻力)/2,COLORWHITE,POINTDOT;

       现价:CLOSE,COLORWHITE,LINETHICK2;

       顶卖:stICKLINE(C 阻力,阻力,C,5,0),COLORGREEN;

       底买:STICKLINE(C 支撑,支撑,C,5,0),COLORRED;

       MR:=C 支撑ANDcrOSS(C,REF(C,2));

       DRAWTEXT(CROSS(现价,支撑),中,'★买'),COLORRED;

       STICKLINE(CROSS(现价,支撑),C,中,2,0),COLORRED;

       STICKLINE(MR=1,支撑,中,2,0),COLORRED;

       DRAWICON(MR=1ORCROSS(现价,支撑),中,1);

       STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLORYELLOW;

       DRAWTEXT(CROSS(支撑,现价),(支撑-中)/5+支撑,'★底'),COLORYELLOW;

       MC:=C 阻力ANDCROSS(REF(C,2),C);

       DRAWTEXT(CROSS(阻力,现价),中,'★卖'),COLORGREEN;

       STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORGREEN;

       STICKLINE(MC=1,阻力,中,2,0),COLORGREEN;

       DRAWICON(MC=1ORCROSS(阻力,现价),中,2);

       STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORMAGENTA;

       DRAWTEXT(CROSS(现价,阻力),阻力-(支撑-中)/5,'★顶'),COLORMAGENTA;

       DRAWTEXT(ISLASTBAR,阻力,'顶'),COLORGREEN;

       DRAWTEXT(ISLASTBAR,支撑,'底'),COLORRED;

       DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'中'),COLORWHITE;

       每股净资产:=STRCAT(STRCAT('每股净资产:',CON2STR(FINANCE(34),2)),'元');

       DRAWTEXT_FIX(1,0.22,0.92,0,每股净资产),COLORWHITE;

       主营同比增长:=STRCAT(STRCAT('主营同比增长:',CON2STR(FINANCE(44),2)),'%');

       DRAWTEXT_FIX(1,0.33,0.99,0,主营同比增长),COLORCYAN;

       净利润同比增长:=STRCAT(STRCAT('净利润同比增长:',CON2STR(FINANCE(43),2)),'%');

       DRAWTEXT_FIX(1,0.33,0.92,0,净利润同比增长),COLORYELLOW;

       {销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR(FINANCE(21)/FINANCE(20)*100,2)),'%');}

       销售毛利率:=STRCAT(STRCAT('销售毛利率:',CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),'%');

       DRAWTEXT_FIX(1,0.22,0.99,0,销售毛利率),COLORCYAN;

       DRAWTEXT_FIX(1,0.11,0.99,0,'每股收益:')COLORYELLOW;

       DRAWTEXT_FIX(1,0.16,0.99,0,STRCAT(CON2STR(FINANCE(30)/FINANCE(1),2),'元'))COLORYELLOW;

       DRAWTEXT_FIX(1,0.11,0.92,0,'每股市盈率:')COLORYELLOW;

       DRAWTEXT_FIX(1,0.17,0.92,0,STRCAT(CON2STR(C/FINANCE(33),2),'倍'))COLORYELLOW;

       DRAWTEXT_FIX(1,0.01,0.99,0,'流通A股:')COLORCYAN;

       DRAWTEXT_FIX(1,0.06,0.99,0,STRCAT(CON2STR(CAPITAL/1000000,2),'亿股'))COLORCYAN;

       DRAWTEXT_FIX(1,0.11,0.87,0,'每股未分配:元')COLORYELLOW;

       DRAWTEXT_FIX(1,0.17,0.87,0,CON2STR(FINANCE(32),2))COLORYELLOW;

       DRAWTEXT_FIX(1,0.01,0.92,0,'经营现金流:元')COLORYELLOW;

       DRAWTEXT_FIX(1,0.07,0.92,0,CON2STR(FINANCE(25)/FINANCE(1),2))COLORYELLOW;

       DRAWTEXT_FIX(1,0.50,0.99,0,'☆[热点概念]:')COLORYELLOW;

       DRAWTEXT_FIX(1,0.57,0.99,0,EXTERNSTR(0,1))COLORYELLOW;

       DRAWTEXT_FIX(1,0.50,0.92,0,'☆[主营行业]:')COLORCYAN;

       DRAWTEXT_FIX(1,0.57,0.92,0,EXTERNSTR(0,2))COLORCYAN;

       {DRAWTEXT_FIX(1,0.00,0.63,0,'[高送转信号]:')COLORCYAN;

       DRAWTEXT_FIX(1,0.05,0.63,0,EXTERNSTR(0,3))COLORCYAN;};

       所属:=STRCAT('☆【所属板块】',STRCAT(STRCAT(STRCAT('[行业]—',HYBLOCK),STRCAT('[地域]—',DYBLOCK)),STRCAT('[概念]—',GNBLOCK)));

       DRAWTEXT_FIX(ISLASTBAR,0.50,0.87,0,所属板块),COLORYELLOW;

       今日人气:=DYNAINFO(60)/DYNAINFO(61);

       DRAWTEXT_FIX(1,0,0.87,0,'◆人气:'),COLORYELLOW,LINETHICK4;

       DRAWNUMBER_FIX(1,0.07,0.87,0,CONST(今日人气)),COLORYELLOW;

       TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));

       MTIME:=MOD(FROMOPEN,TOTAL);

       CTIME:=IF(MTIME 0.5,TOTAL,MTIME);

       虚拟量:=IF(CURRBARSCOUNT=1,*TOTAL/CTIME,DRAWNULL);

       虚拟:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0;

       虚量值:=(虚拟量-VOL)/VOL,COLORWHITE,LINETHICK0;

       DRAWTEXT_FIX(1,0.33,0.87,0,'▲量比:'),COLORYELLOW;

       DRAWNUMBER_FIX(1,0.37,0.87,0,CONST(虚拟量比)),COLORYELLOW;

       量价:=(VOL/CLOSE)/3;

       统计主动买量:=SUM((IF(((量价 0.20)AND(CLOSE (REF(CLOSE,1)))),量价,0)),0);

       统计主动卖量:=SUM((IF(((量价 0.20)AND(CLOSE (REF(CLOSE,1)))),量价,0)),0);

       能量:=((统计主动买量)/统计主动卖量)*10,COLOR4080FF;

       DRAWTEXT_FIX(1,0.22,0.87,0,'★涨停能量:'),COLORYELLOW;

       DRAWNUMBER_FIX(1,0.28,0.87,0,CONST(涨停能量)),COLORYELLOW;




    通达信130波段分时多空金博士指标公式截图

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信130波段分时多空金博士指标公式 加入收藏