• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • [股票学堂]通达信源码:强力阻击,低位黑马主图,主力资金

    发布时间: 2022-05-06 09:58 首页:股票一点通>股票公式>通达信公式> 阅读()
    1、强力阻击

    指标只是参考,理念才重要,是人驾驭指标,不是指标驾驭人!

    {强力阻击}

    EMA13:EMA(C,13),COLORWHITE;
    EMA21:EMA(C,21),COLORYELLOW;
    EMA34:EMA(C,34),COLORFF00FF;
    EMA60:MA(C,60),COLORFFCC66;
    VAR2:=(2*CLOSE+HIGH+LOW)/4;
    VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
    VAR4:=LLV(LOW,5);
    VAR5:=HHV(HIGH,4);
    散户:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
    庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3;
    DRAWTEXT(CROSS(散户,庄家) AND 散户<50 AND 29<散户,L-0.05,'短进'),COLORMAGENTA;
    DRAWTEXT(CROSS(庄家,散户) AND 散户>40 AND 71>散户,H+0.05,'短出'),COLORGREEN;
    DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'低吸'),COLORWHITE;
    DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'高减'),COLORYELLOW;
    DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1);
    DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2);
    VAR9:=CLOSE-REF(CLOSE,5);
    VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);
    VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);
    卖出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);
    DRAWTEXT(VARA>0 AND CROSS(VARC,VARA),H+0.05,'中线逃!'),COLORYELLOW;
    DRAWICON(卖出<0,H+0.05,2);
    买线:=EMA(CLOSE,2);
    卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
    B1:IF(CROSS(买线,卖线),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA;
    S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
    VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
    S2:IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN;




    2、低位黑马主图指标,逃顶抄底用

    指标用了几年,是个老指标,感觉还不错,欢迎大家下载使用,可参考指标进行逃顶抄底,趋势很重要。有高手请完善。

    DRAWBAND(MA(CLOSE,60),RGB(55,0,0),MA(CLOSE,120),RGB(0,91,0));
    DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
    DRAWKLINE(H,O,L,C);
    MA5:MA(CLOSE,5),COLORWHITE;
    MA10:MA(CLOSE,10),COLORYELLOW;
    MA20:MA(CLOSE,20),COLORMAGENTA;
    MA30:=MA(CLOSE,30);
    MA60:MA(CLOSE,60),COLORGREEN,LINETHICK1;
    MA120:MA(CLOSE,120),COLORLIRED,LINETHICK1;
    MA240:MA(CLOSE,240),COLORBLUE;
    DRAWICON(CROSS(MA10,MA20),MA20,1); {10日上穿20日做记号}
    DRAWICON(CROSS(MA20,MA60),MA60,1); {20日上穿60日做记号}
    DRAWICON(CROSS(MA20,MA120),MA120,1); {20日上穿60日做记号}
    DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做记号}
    DRAWICON(CROSS(MA60,MA120),MA60,1); {60日上穿120日做记号}
    DRAWICON(CROSS(MA60,MA240),MA240,1); {60日上穿240日做记号}
    DRAWICON(CROSS(MA120,MA240),MA240,1);{120日上穿240日做记号}
    DRAWICON(CROSS(MA20,MA10),MA20,2); {10日下穿20日做记号}
    DRAWICON(CROSS(MA60,MA20),MA60,2); {20日下穿60日做记号}
    DRAWICON(CROSS(MA120,MA60),MA120,2); {60日下穿120日做记号};
    RSVC:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    白马:=SMA(RSVC,3,1);
    DC:=SMA(白马,3,1),LINETHICK1;
    主升线:=3*白马-2*DC,COLORYELLOW,LINETHICK1;
    RSVV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;
    短K:=SMA(RSVV,3,1);
    短D:=SMA(短K,3,1);
    RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;
    长K:=SMA(RSV1,5,1);
    长D:=SMA(长K,10,1);
    回归斜率线A:=EMA(SLOPE(C,4)*20+C,42);
    经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    经典K:=SMA(经典RL,3,1); 经典D:=SMA(经典K,3,1); 经典J:=3*经典K-2*经典D;
    MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))) /(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));
    MAHL2:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}
    MAHL3:=IF(EMA(C,2)>回归斜率线A AND MAHL1>0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
    上线:=SMA(C,6.5,1);
    一号支撑线:=SMA(C,14.5,1);
    上线1:=SMA(C,3,1);
    一号支撑线1:=SMA(C,8,1);
    上线2:=SMA(C,3.5,1);
    BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
    UPR:=BBI+3*STD(BBI,13),LINETHICK2;
    DWN:=BBI-3*STD(BBI,13);
    安全:=MA(CLOSE,55),LINETHICK2;
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    A7:=(2*C+H+L)/4;
    操作:=MA(A7,5),COLORBLUE,LINETHICK2;
    操作1:=MA(A7,5)*1.03,LINETHICK2;
    操作2:=MA(A7,5)*0.97,LINETHICK2;
    DRAWTEXT(长K>长D AND 短D>REF(短D+2,1) AND CROSS(上线1,上线) AND 上线1>操作,LOW *0.92,'买进' ),COLORYELLOW;
    VAR1:=LLV(A7,21);
    VAR2:=HHV(A7,30);
    DRAWTEXT(CROSS(上线1,操作) AND 上线1<一号支撑线 AND 上线1<一号支撑线1 AND 上线1<上线 AND CLOSE>VAR1 AND (C-REF(H,1)>0 OR C-REF(C,1)>3.5) AND 长D-长K<15 AND 短D>REF(短D+0.1,1),LOW *0.98,'见底' ),COLORYELLOW;
    YCX:=操作>=REF(操作,1);
    H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);
    L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);
    DRAWTEXT(长K>长D AND COUNT(MA5>MA10 ,2)=2 AND CROSS(上线1,一号支撑线1) AND 上线1>操作 ,LOW *0.98,'全仓' ),COLORYELLOW;
    SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
    SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
    M1:=1000*操作/一号支撑线<=1015 AND 1000*操作/一号支撑线>=975;
    M2:=1000*一号支撑线1/一号支撑线<=1020 AND 一号支撑线1/一号支撑线>=980;
    M3:=1000*上线/一号支撑线<=1015 AND 上线/一号支撑线>=985;
    DRAWTEXT((长K>长D OR 主升线>85) AND IF(COUNT(CLOSE6/10 AND COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
    OPEN>REF(CLOSE,1),1,0),LOW*0.94,'买进') ,COLORYELLOW;
    D:=MA(CLOSE,89)-MA(CLOSE,10)/3;
    DRAWTEXT(长K>长D AND IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
    AND CLOSERSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
    K:=SMA(RSV,3,1);
    D1:=SMA(K,3,1);
    J:=3*K-2*D1;
    VAR3:=(2*CLOSE+HIGH+LOW)/3;{可将3该为4,信号少点}
    VAR4:=EMA(EMA(EMA(VAR3,4),4),4);{可将3该为4,信号少点}
    E:=(VAR4-REF(VAR4,1))/REF(VAR4,1)*100;
    F:=MA(E,3)+0.03;
    G:=MA(E,1);
    主升:=C/REF(C,1)>=1.043;
    DRAWICON(长K/长D<1.3 AND CROSS(F,G) AND J>65,HIGH*1.02,15),COLORGREEN;
    DRAWICON(长K>长D AND 短D>REF(短D+2,1) AND CROSS(G,F),LOW *0.9,9),COLORYELLOW;
    DRAWTEXT(短D>REF(短D+0.5,1) AND CLOSE>OPEN AND H1VAR1 AND 上线1>一号支撑线 AND J<90,LOW *0.9,'主升' ),COLORRED;
    DRAWTEXT(短D>REF(短D+0.5,1) AND CLOSE>OPEN AND 上线>一号支撑线1 AND 一号支撑线1>一号支撑线 AND CLOSE>MA(CLOSE,一号支撑线) AND 操作>=REF(CLOSE,操作) AND CROSS(上线1,操作) AND LOW>VAR1 AND J<90,LOW *0.9,'主升' ),COLORRED;
    DRAWTEXT(长K>长D AND 短D>REF(短D+2,1) AND CROSS(上线1,操作) AND M1 AND M2 AND M3,LOW *0.94,'买进' ),COLORYELLOW;
    DRAWTEXT(长K/长D>1.3 AND CROSS(50,主升线),LOW *0.96,'回买' ),COLORRED;



    3、主力资金,一目了然

    资金选股估计目前来说除了内幕消息以外是最可靠的途径了,因为资金就是钱,钱就是推动股票上涨的动力( 顶尖财经 股票学院: )


    {主力资金}

    超B:=L2_AMO(0,2)/10000.0;

    大B:=L2_AMO(1,2)/10000.0;

    中B:=L2_AMO(2,2)/10000.0;

    小B:=L2_AMO(3,2)/10000.0;

    超S:=L2_AMO(0,3)/10000.0;

    大S:=L2_AMO(1,3)/10000.0;

    中S:=L2_AMO(2,3)/10000.0;

    小S:=L2_AMO(3,3)/10000.0;

    TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);

    大宗进:=(超B)+(大B),NODRAW;

    大宗出:=(超S)+(大S),NODRAW;

    非大宗进:=(中B)+(小B),NODRAW;

    非大宗出:=(中S)+(小S),NODRAW;

    DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;

    DRAWRECTREL(0,CONST(950-(ABS(大宗进)*250/DAZHIV)),30,970,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));

    DRAWRECTREL(32,CONST(950-(ABS(大宗出)*250/DAZHIV)),62,970,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));

    DRAWRECTREL(92,CONST(950-(ABS(非大宗进)*250/DAZHIV)),122,970,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));

    DRAWRECTREL(124,CONST(950-(ABS(非大宗出)*250/DAZHIV)),154,970,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.015,1,0,'主力进出'),COLORMAGENTA;

    DRAWTEXT_FIX(CURRBARSCOUNT=1,0.107,1,0,'散户进出'),COLORCYAN;


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

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

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

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