• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • 【股票配资】通达信源码:木桶寻龙+星光主图+绝佳买卖

    发布时间: 2020-04-11 19:20 首页:股票一点通>股票公式>通达信公式> 阅读()
    木桶寻龙,一直以这个公式选中线股,收益不错:

    {木桶寻龙}

    {用于早上9:25—9:30选股}

    涨幅:=DYNAINFO(14)>=0.02 AND DYNAINFO(14)<=0.05;

    量比1:=DYNAINFO(17)>=3 AND DYNAINFO(17)<=6;

    量比2:=DYNAINFO(17)>=3;

    流通盘1:=FINANCE(7)<=500000000;

    流通盘2:=FINANCE(7)<=1000000000;

    总量:=DYNAINFO(8)>=8000;

    今开:=O=DYNAINFO(4);

    早盘金寻龙:=涨幅=1 AND 量比1=1 AND 流通盘1=1 AND 总量=1 AND 今开=1;{流通盘<5亿}

    早盘银寻龙:=涨幅=1 AND 量比1=1 AND 流通盘2=1 AND 总量=1 AND 今开=1;{流通盘<10亿}

    早盘铜寻龙:=涨幅=1 AND 量比2=1 AND 流通盘1=1 AND 总量=1 AND 今开=1;{流通盘<5亿,量比>3}

    金寻龙:早盘金寻龙*8,COLORRED;

    银寻龙:早盘银寻龙*8,COLORWHITE;

    铜寻龙:早盘铜寻龙*8,COLORYELLOW;

    早盘寻龙:=金寻龙=8 OR 银寻龙=8 OR 铜寻龙=8;

    寻龙:早盘寻龙*8;

    STICKLINE(铜寻龙=8,0,40,2,0),COLORBLUE;

    STICKLINE(银寻龙=8,0,60,2,0),COLORWHITE;

    STICKLINE(金寻龙=8,0,80,2,0),COLORRED;

    DRAWTEXT_FIX(1,0.5,0,1,DYBLOCK),COLORYELLOW;

    DRAWTEXT_FIX(1,0.5,0,0,HYBLOCK),COLORGREEN;

    DRAWTEXT_FIX(1,0.5,0.5,1,GNBLOCK),COLORYELLOW;

    DRAWTEXT_FIX(1,0.5,0.5,0,FGBLOCK),COLORGREEN;

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

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

    SHORT:=7; LONG:=19;

    RMA:=EMA(CLOSE,SHORT);

    NMA:=EMA(CLOSE,LONG);

    UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),0);

    DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1),HHV(H,BARSLAST(CROSS(RMA,NMA))+1),L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1),LLV(L,BARSLAST(CROSS(NMA,RMA))+1),0);

    最牛:(LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2))) AND REF(DOWN,1)REF(DOWN,1),NODRAW;

    STICKLINE(最牛=1,0,80,2,0),COLORFF00FF;




    星光主图 所属板块 主题投资 逃顶 逆市涨跌:

    {星光主图}

    LC:=REF(C,1);
    Z1A:=STRCAT(HYBLOCK,' ');
    Z2A:=STRCAT(Z1A,DYBLOCK);
    Z3A:=STRCAT(Z2A,' ');
    DRAWTEXT_FIX(1,0.10,0,0,'所属行业:')COLOR0080FF;
    DRAWTEXT_FIX(1,0.17,0,0,HYBLOCK)COLOR0080FF;
    DRAWTEXT_FIX(1,0.22,0,0,'所属地区:')COLOR00FFFF;
    DRAWTEXT_FIX(1,0.29,0,0,DYBLOCK)COLOR00FFFF;
    DRAWTEXT_FIX(1,0.34,0,0,'所属板块:')COLOR0080FF;
    DRAWTEXT_FIX(1,0.41,0,0,ZDBLOCK)COLOR0080FF;
    DRAWTEXT_FIX(1,0.10,0.06,0,'主题投资:')COLOR0000FF;
    DRAWTEXT_FIX(1,0.17,0.06,0,EXTERNSTR(0,1))COLOR0000FF;
    DRAWTEXT_FIX(1,0.10,0.12,0,'主营业务:')COLORFF00FF;
    DRAWTEXT_FIX(1,0.17,0.12,0,EXTERNSTR(0,2))COLORFF00FF;
    M1:=MA(CLOSE,3);
    M2:=MA(CLOSE,20);
    生命线:MA(CLOSE,89),COLORMAGENTA,LINETHICK2;
    牛熊线:MA(CLOSE,321),COLORWHITE,POINTDOT,LINETHICK4;
    保护价:(OPEN+REF(C,1)+REF(C,2))/3,NODRAW;
    止损:=(REF(H,1)+REF(L,1))/2,NODRAW,COLORGREEN;
    中心价:=(O+C)/2;
    多头:=IF(M2>=REF(M2,1),M2,DRAWNULL),COLORRED,LINETHICK2;
    空头:=IF(M2DT:=CROSS(M1,M2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;
    DRAWTEXT(DT,(LOW*0.98)*(1),'买'),COLORWHITE;
    DRAWICON(DT,(LOW*0.99)*(1),13);
    {逃顶}
    V1:=(REF(HIGH,1)+REF(LOW,1))/2;
    V2:=MA(CLOSE,21)+2*STD(CLOSE,21);
    DRAWICON(CROSS(V1,V2),HIGH*1.00,6);
    DRAWTEXT(CROSS(V1,V2),HIGH*1.01,'卖'), COLORGREEN;
    V3:=REF(CLOSE,1);
    V4:=SMA(MAX(CLOSE-V3,0),7,1)/SMA(ABS(CLOSE-V3),7,1)*100;
    V5:=CROSS(89,V4);
    V6:=FILTER(V5,4);
    DRAWICON(V6,HIGH*1.00,2);
    DRAWTEXT(V6,HIGH*1.01,'卖'), COLORGREEN;
    {划线}
    A1:=BARSLAST(CROSS(MA(C,10),MA(C,5)));
    C1:=REF(MA(C,5),A1);
    STICKLINE(CURRBARSCOUNT<=CONST(A1)+1 AND A1>=0, C1,C1,-1,0),COLORGREEN;
    {肉夹馍}
    VAR110:=REF(C,2)>REF(O,2);
    VAR120:=(REF(C,2)-REF(C,3))/REF(C,3)>0.02;
    VAR210:=REF(C,1)VAR310:=C>O AND C>REF(O,1) AND C>REF(C,2) ;
    VAR320:=V>REF(V,2) AND V>REF(V,1);
    VAR330:=((H-C)/(H-L))<0.3;
    VAR410:=VAR110 AND VAR120 AND VAR210 AND VAR310 AND VAR320 AND VAR330;
    DRAWTEXT(VAR410,(LOW*1.02)*(1),'肉夹馍 '),COLORYELLOW;
    DRAWICON(VAR410,(LOW*1.01)*(1),5);
    {概念板块}
    DRAWTEXT_FIX(1,0.00,0.24,0,'【概念板块】')COLORFF00FF;
    Z1:=STRCAT(DYBLOCK,' ');
    Z2:=STRCAT(Z1,HYBLOCK);
    Z3:=STRCAT(Z2,FGBLOCK);
    Z4:=STRCAT(Z3,' ');
    DRAWTEXT_FIX(1,0.09,0.24,0,STRCAT(Z4,GNBLOCK)),COLORFF00FF;
    DRAWTEXT_FIX(1,0.00,0.32,0,'【主题投资】'),COLOR0000FF;
    DRAWTEXT_FIX(1,0.09,0.32,0,EXTERNSTR(0,1)),COLOR0000FF;{注意:我的数据号是1}
    DRAWTEXT_FIX(1,0.00,0.40,0,'【主营业务】'),COLORGREEN;
    DRAWTEXT_FIX(1,0.09,0.40,0,EXTERNSTR(0,2))COLORGREEN;{这个数据号是2};
    DRAWTEXT_FIX(1,0.99,0.05,1,'抄底连续出现天数越多越好,如果信号且有鱼红色当天进,等先有鱼红后或且主图出现B进入;如果苍龙最好与波谷同时出现'),COLOR0202FF;
    DRAWTEXT_FIX(1,0.99,0.09,1,'先出B且有鱼绿色则删除:'),COLOR0202FF;
    DRAWTEXT_FIX(1,0.99,0.15,1,'主图蓝卖,看长卖模板波峰'),COLORYELLOW;
    风险线:= MA(CLOSE,13);
    止损线:= MA(CLOSE,27);
    DRAWICON(CROSS(C,止损线)AND 止损线>风险线,LOW*0.99,38);
    DRAWTEXT(CROSS(C,止损线)AND 止损线>风险线,(LOW * 0.98),'主升浪'),COLORRED,LINETHICK3;


    买线:=EMA(C,3);
    卖线:=EMA(SLOPE(C,25)*18+C,55);
    BU:=CROSS(买线,卖线);
    SEL:=CROSS(卖线,买线);
    QR:=(H+L+2*C)/4;
    强弱分界线:EMA(QR,55),LINETHICK2,COLORFFFF00;
    ISDOWN:=IF(CLOSEISUP:=IF(CLOSE>OPEN,1,0);
    STICKLINE(买线<卖线 AND ISDOWN,HIGH,OPEN,0,0),COLORCYAN;
    STICKLINE(买线<卖线 AND ISDOWN,CLOSE,OPEN,3,0),COLORCYAN;
    STICKLINE(买线<卖线 AND ISDOWN,CLOSE,LOW,0,0),COLORCYAN;
    STICKLINE(买线<卖线 AND ISUP,HIGH,CLOSE,0,1),COLORCYAN;
    STICKLINE(买线<卖线 AND ISUP,CLOSE,OPEN,3,1),COLORCYAN;
    STICKLINE(买线<卖线 AND ISUP,OPEN,LOW,0,1),COLORCYAN;
    STICKLINE(买线>=卖线 AND ISUP,HIGH,CLOSE,0,1),COLORRED;
    STICKLINE(买线>=卖线 AND ISUP,CLOSE,OPEN,3,1),COLORRED;
    STICKLINE(买线>=卖线 AND ISUP,OPEN,LOW,0,1),COLORRED;
    STICKLINE(买线>=卖线 AND ISDOWN,CLOSE,LOW,0,0),COLORRED;
    STICKLINE(买线>=卖线 AND ISDOWN,HIGH,OPEN,0,0),COLORRED;
    STICKLINE(买线>=卖线 AND ISDOWN,CLOSE,OPEN,3,1),COLORRED,LINETHICK2;

    MA5X:=MA(C,5),COLORCYAN;
    MA13:=MA(CLOSE,13),LINETHICK2;
    MA21:=MA(CLOSE,21);
    MA62:=MA(CLOSE,62),LINETHICK2;
    MA120:=MA(CLOSE,120);
    MA250:=MA(CLOSE,250);
    DRAWBMP(BU=1,L,'B');
    DRAWBMP(SEL=1,HIGH*1.038,'S');

    {逆市涨跌次数}
    CC:=IF(CURRBARSCOUNT<120,"999999$C",DRAWNULL);
    个涨幅:100*(C-REF(C,1))/REF(C,1),COLORYELLOW,NODRAW;
    上证涨幅:100*(CC-REF(CC,1))/REF(CC,1),COLORRED,NODRAW;
    逆市上涨:=IF(个涨幅>0 AND 上证涨幅<0,1,0);
    逆市上涨次数:=COUNT(逆市上涨,BARSSINCE(逆市上涨)+1);
    QQ:=STRCAT(STRCAT('★120日逆市上涨= ',CON2STR(逆市上涨次数,0)),'次');
    逆市下跌:=IF(个涨幅<0 AND 上证涨幅>0,1,0);
    逆市下跌次数:=COUNT(逆市下跌,BARSSINCE(逆市下跌)+1);
    XD:=STRCAT(STRCAT('★逆市下跌= ',CON2STR(逆市下跌次数,0)),'次');
    MM:=STRCAT(QQ,XD);
    DRAWTEXT_FIX(1,0.8,0.01,0,MM),COLORYELLOW;




    绝佳买卖(顶尖财经 股票学院: ):

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

    Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
    Q_3:=CROSS(EMA(C,19),EMA(C,7));
    Q_4:=CROSS(EMA(C,7),EMA(C,19));
    Z1:=L=LLV(L,BARSLAST(Q_3)+1);
    Z2:=LLV(L,BARSLAST(Q_3)+1);
    Z3:=H=HHV(H,BARSLAST(Q_4)+1);
    Z4:=HHV(H,BARSLAST(Q_4)+1);
    Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0),COLORMAGENTA,LINETHICK2;
    {绝佳买卖}
    Y1:=H=HHV(H,BARSLAST(Q_4)+1);
    Y2:=HHV(H,BARSLAST(Q_4)+1);
    Y3:=L=LLV(L,BARSLAST(Q_3)+1);
    Y4:=LLV(L,BARSLAST(Q_3)+1);
    Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0),COLORCYAN,LINETHICK2;
    X01:=LLV(Q_2,2)=LLV(Q_2,7);
    X2:=COUNT(Q_2<0,2);
    X3:=CROSS(Q_2,MA(Q_2,2));
    X4:=REF(Q_B,1)X5:=Q_A>REF(Q_B,1);
    买进:(X01 AND X2 AND X3) AND X4 AND X5;
    TJ0:=IF(Q_ATJ1:=IF(Q_B持股:IF(Q_BSTICKLINE(Q_B堪称卖绝:IF(REF(TJ0,1)=0 AND TJ0>=1,60,0),STICK,COLORCYAN,LINETHICK5;
    买一绝:IF(REF(TJ1,1)=0 AND TJ1>=1,60,0),STICK,COLORRED,LINETHICK3;

    特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。

    网站首页-股票知识--股票公式-散户炒股-问答百科--缠中说禅-概念股

    未经本站书面特别授权,请勿转载或建立镜像

    Copyright @ 2020 All Rights Reserved.版权所有 XMl地图
    Baidu
    map