• 网站首页
  • 股票知识
  • 股票公式
  • 散户炒股
  • 问答百科
  • 缠中说禅
  • 概念股
  • [股票学堂]通达信源码:大盘走势K线图,龙虎榜资金,量价角度关系

    发布时间: 2022-05-06 16:40 首页:股票一点通>股票公式>通达信公式> 阅读()
    1、大盘走势K线图

    两个副图

    可以方便在个股页面对比大盘走势。
    两个副图中一个有均线,一个无均线
    按需自取。


    DRAWKLINE("999999$H","999999$O","999999$L","999999$C");
    当前指数:="999999$CLOSE",LINETHICK0;
    高:"999999$HIGH",LINETHICK0;
    低:"999999$LOW",LINETHICK0;
    开:"999999$OPEN",LINETHICK0;
    涨幅:(当前指数-REF(当前指数,1))/REF(当前指数,1)*100,NODRAW;


    DRAWKLINE("999999$H","999999$O","999999$L","999999$C");
    上证:"999999$C",COLORWHITE,NODRAW;
    _±:"999999$C"-REF("999999$C",1),COLORLIGRAY,NODRAW;
    M5:MA("999999$C",5),COLORWHITE;
    M10:MA("999999$C",10),COLORYELLOW;
    M20:MA("999999$C",20),COLORMAGENTA;
    M60:MA("999999$C",60),COLORGREEN;



    2、龙虎榜资金,一年资金轻松翻倍

    龙虎榜资金,紧随庄家资金流向,结合均线一年资金轻松翻倍

    {龙虎榜}

    A:=SIGNALS_USER(300, 0), NODRAW; {上榜总金额}
    B:=SIGNALS_USER(299, 0), NODRAW; {净流入}
    D:=(A+B)/2,NODRAW;{总买入}
    E:=A-D,NODRAW;{总卖出};
    F:=AMO/10000,NODRAW;{当日成交金额 万元}
    J:=A/F*100,NODRAW;{上榜资金与成交金额占比}
    换手:=VOL*10000/FINANCE(7),NODRAW,COLORGREEN;
    次数:=COUNT(A>0,30),NODRAW;
    月收益:(HHV(H,30)-LLV(L,30))/LLV(L,30)*100,NODRAW;
    年收益:(HHV(H,250)-LLV(L,250))/LLV(L,250)*100,NODRAW;
    月离高:BARSLAST(HHV(H,30)>C),NODRAW;
    月离底:BARSLAST(LLV(L,30)RC1:=REF(C,1);
    ZT:=C/REF(C,1)>1.099 AND H>L;
    CS:=IF(C>=1,10000,100000);
    C涨停10:=1.10*RC1-49/CS;{考虑到4舍5入}
    C涨停5 :=1.05*RC1-49/CS;
    C跌停10:=0.90*RC1+51/CS;
    C跌停5 :=0.95*RC1+51/CS;
    ST:=NAMELIKE('S') OR NAMELIKE('*S');
    涨停:= IF(ST, C>=C涨停5, C>=C涨停10);
    跌停:= IF(ST, C<=C跌停5, C<=C跌停10);
    盘中涨停:=IF(ST, H>=C涨停5, H>=C涨停10);
    盘中跌停:=IF(ST, L<=C跌停5, L<=C跌停10);
    次数Z:=COUNT(C/REF(C,1)>=1.097 OR 涨停,30),NODRAW;
    次数N:=COUNT(C/REF(C,1)>=1.097 OR 涨停,250),NODRAW;
    STICKLINE(H/REF(C,1)>=1.097 AND H>C , 1,10, 0.1, -1),COLORWHITE;
    STICKLINE(C/REF(C,1)>=1.097 , 1,10, 0.1, 0), COLORRED; {价异动 换手异动}
    STICKLINE(B>0 , 1,10, 0.1, 0), COLORRED;
    STICKLINE(B<0 , 1,10, 0.1, 0), COLORGREEN;
    {A}
    DRAWTEXT(A>=10000,10*0.6,VARCAT(VARCAT('上榜总:',VAR2STR(A,0)),'万')),COLORYELLOW;
    DRAWTEXT(A<10000,10*0.6,VARCAT(VARCAT('上榜总:',VAR2STR(A,0)),'万')),COLORMAGENTA;
    DRAWTEXT(D>0,10*0.45,VARCAT(VARCAT('总买入:',VAR2STR(D,0)),'万')),COLORMAGENTA;
    DRAWTEXT(D<0,10*0.45,VARCAT(VARCAT('总买入:',VAR2STR(D,0)),'万')),COLORGREEN;
    DRAWTEXT(E>0,10*0.3,VARCAT(VARCAT('总卖出:',VAR2STR(E,0)),'万')),COLORMAGENTA;
    DRAWTEXT(E<0,10*0.3,VARCAT(VARCAT('总卖出:',VAR2STR(E,0)),'万')),COLORGREEN;
    DRAWTEXT(B>0,1.5,VARCAT(VARCAT('净流入:',VAR2STR(B,0)),'万')),COLORMAGENTA;
    DRAWTEXT(B>=1000,1.5,VARCAT(VARCAT('净流入:',VAR2STR(B,0)),'万')),COLORYELLOW;
    DRAWTEXT(B<0,1.5,VARCAT(VARCAT('净流入:',VAR2STR(B,0)),'万')),COLORGREEN;
    DRAWTEXT(B<=-1000,1.5,VARCAT(VARCAT('净流入:',VAR2STR(B,0)),'万')),COLORBLUE;
    DRAWTEXT(J>0,9,VARCAT(VARCAT('占比:',VAR2STR(J,0)),'%')),COLORMAGENTA;
    DRAWTEXT(换手<=20 AND A>0,7.5,VARCAT(VARCAT('换手:',VAR2STR(换手,0)),'%')),COLORYELLOW;
    DRAWTEXT(换手>20 AND 换手<50 AND A>0,7.5,VARCAT(VARCAT('换手:',VAR2STR(换手,0)),'%')),COLORMAGENTA;
    DRAWTEXT(换手>=50 AND A>0,7.5,VARCAT(VARCAT('换手:',VAR2STR(换手,0)),'%')),COLORRED;
    DRAWTEXT(H/REF(C,1)>=1.097 AND H>C ,6,'炸板操作'),COLORMAGENTA;
    DRAWTEXT_FIX(1,0.915,0,0,'月上榜:'),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.96,0,0,CONST(次数)),COLORYELLOW;
    DRAWTEXT_FIX(1,0.98,0,0,'次'),COLORYELLOW;
    DRAWTEXT_FIX(1,0.915,0.2,0,'月涨停:'),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.96,0.2,0,CONST(次数Z)),COLORYELLOW;
    DRAWTEXT_FIX(1,0.98,0.2,0,'次'),COLORYELLOW;
    DRAWTEXT_FIX(1,0.915,0.4,0,'年涨停:'),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.96,0.4,0,CONST(次数N)),COLORYELLOW;
    DRAWTEXT_FIX(1,0.98,0.4,0,'次'),COLORYELLOW;
    {价异动 换手异动}
    DRAWTEXT(换手<=20 AND C/REF(C,1)>=1.097 OR 盘中涨停,7.5,VARCAT(VARCAT('换手:',VAR2STR(换手,0)),'%')),COLORYELLOW;
    DRAWTEXT(换手>20 AND C/REF(C,1)>=1.097 OR 盘中涨停,7.5,VARCAT(VARCAT('换手:',VAR2STR(换手,0)),'%')),COLORMAGENTA;
    DRAWTEXT(换手>=50 AND C/REF(C,1)>=1.097 OR 盘中涨停,7.5,VARCAT(VARCAT('换手:',VAR2STR(换手,0)),'%')),COLORRED;
    {收益}
    DRAWTEXT_FIX(1,0.915,0.6,0,'月收益:±'),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.96,0.6,0,CONST(月收益)),COLORRED;
    DRAWTEXT_FIX(1,0.98,0.6,0,'%'),COLORYELLOW;
    DRAWTEXT_FIX(1,0.915,0.8,0,'年收益:±'),COLORYELLOW;
    DRAWNUMBER_FIX(1,0.96,0.8,0,CONST(年收益)),COLORRED;
    DRAWTEXT_FIX(1,0.98,0.8,0,'%'),COLORYELLOW;



    3、量价角度关系

    配合入场均线使用止盈止损,题材3板以内追,调整拐点追,三种颜色入,十字堆量加红柱 +形态直接干了!十字是堆量 红柱是量价角度共振 其它自己研究吧!( 顶尖 财经 股票学院: )

    {量价角度关系}
    MA5:=MA(C,5);
    MA7:=MA(C,7);
    MA13:=MA(C,13);
    MA20:=MA(C,20);
    MA34:=MA(C,34);
    MA55:=MA(C,55);
    MA120:=MA(C,120);
    V20:=MA(V,20);
    V5:=MA(V,5);
    V10:=MA(V,10);
    V34:=MA(V,40);
    V60:=MA(V,60);
    V90:=MA(V,90);
    V135:=MA(V,135);
    {量倍数: VOL/REF(V,1),COLOR00FFFF,NODRAW;}
    PM:=((O-C)/O)*10 ;
    V0:=MA(C,5)>REF(MA(C,10),1) AND MA(C,10)>REF(MA(C,21),1)
    AND MA(C,21)>REF(MA(C,21),1) ;
    角度MA5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;
    角度MA7:=ATAN((MA7/REF(MA7,2)-1)*100)*180/3.1416;
    角度MA13:=ATAN((MA13/REF(MA13,4)-1)*100)*180/3.1416;
    角度MA20:=ATAN((MA20/REF(MA20,4)-1)*100)*180/3.1416 ;
    角度MA34:=ATAN((MA34/REF(MA34,3)-1)*100)*180/3.1416 ;
    角度MA55:=ATAN((MA55/REF(MA55,2)-1)*100)*180/3.1416 ;
    角度MA120:=ATAN((MA120/REF(MA120,3)-1)*100)*180/3.1416 ;
    角度10日均量:=ATAN((V10/REF(V10,2)-1)*100)*180/3.1416 ;
    角度20日均量:=ATAN((V20/REF(V20,2)-1)*100)*180/3.1416 ;
    角度34日均量:=ATAN((V34/REF(V34,2)-1)*100)*180/3.1416 ;
    角度60日均量:=ATAN((V60/REF(V60,3)-1)*100)*180/3.1416 ;
    角度90日均量:=ATAN((V90/REF(V90,3)-1)*100)*180/3.1416 ;
    选股:= 角度MA13>=20 AND 角度MA20>=15 AND 角度MA34>=-10 AND MA(C,13)>MA(C,20) AND MA(C,20)>REF(MA(C,20),1);
    选股2:= 角度MA13>=45 AND 角度MA20>=10 AND 角度MA20<40 AND 角度MA34>=-10;
    选股3:= 角度MA13<0 AND 角度MA20<0 ;
    选股55:= 角度MA55<30 AND 角度MA55>=15;
    角度7日: 角度MA7,COLORYELLOW,NODRAW;
    角度13日: 角度MA13,COLORGREEN,NODRAW;
    角度20日: 角度MA20,COLORYELLOW,NODRAW;
    角度34日: 角度MA34,COLORMAGENTA,NODRAW;
    角度55日: 角度MA55,COLORGREEN,NODRAW;
    角度10均量: 角度10日均量,COLORGREEN,NODRAW;
    角度20均量: 角度20日均量,COLORGREEN,NODRAW;
    角度34均量: 角度34日均量,COLORGREEN,NODRAW;
    角度60均量: 角度60日均量,COLORGREEN,NODRAW;
    角度90均量: 角度90日均量,COLORGREEN,NODRAW;
    多头1:=MA5>=MA7*0.98 AND MA7>=MA13 AND MA13>=MA20*0.978 ;
    多头2:=(MA20>=MA34*0.98 AND 角度MA34>=30 ) OR ( MA20>=MA55*0.98 AND 角度MA55>=30 ) OR (MA20>=MA120*0.978 AND 角度MA120>=30 ) ;
    均线多头:=多头1 AND 多头2 AND C>=MA20 AND O>=MA20;

    {均量角度}
    均量角度1:=角度10日均量>=80 AND 角度20日均量>=80;
    均量角度2:=角度20日均量>=80 AND 角度34日均量>=80;
    均量角度3:=角度10日均量>=80 AND 角度34日均量>=80;
    均量角度:=均量角度1 OR 均量角度2 OR 均量角度3;
    量多头1:= V5>=V10*0.94 AND V10>=V20 AND V20>=V60*0.94 AND V60>=V90*0.93 ;
    量多头2:= V5>=V10*0.94 AND V10>=V20*0.94 AND 均量角度 ;
    量多头:=量多头1 OR 量多头2;
    涨停1:= ((C-REF(C,1))/REF(C,1))>=0.095;
    今日量:=涨停1 OR V>=V10;
    {堆量总}
    涨幅 := ((C-REF(C,1))/REF(C,1)>=0.023 OR (C-O)/O)>=0.023;
    堆量1:=(V+REF(V,1)+REF(V,2))/3;
    堆量11:=(V+REF(V,1)+REF(V,2)+REF(V,3))/4;
    堆量2:=(REF(V,4)+REF(V,5)+REF(V,6)+REF(V,7)+REF(V,8))/5;
    堆量3:=(REF(V,9)+REF(V,5)+REF(V,6)+REF(V,7)+REF(V,8))/5;
    堆量4:=(REF(V,9)+REF(V,10)+REF(V,6)+REF(V,7)+REF(V,8))/5;
    堆量:=堆量1/堆量2>=1.9 OR 堆量1/堆量3>=1.9 OR 堆量1/堆量4>=1.9 OR 堆量11/堆量2>=1.9 OR 堆量11/堆量3>=1.9 OR 堆量11/堆量4>=1.9;
    堆量0:= 堆量 AND 涨幅 AND C>=MA7 AND C>=MA20 AND C>O;
    {(角度MA7>=角度MA13 AND 角度MA13>=角度MA20 AND 角度MA20>=角度MA34) OR STICKLINE(V10>=V20 AND V10>=V90 AND V10>=V135 AND V10>=V60 AND V20>=V60 AND V20>=V90 AND V20>=V135,0,1,4,0), COLORRED,LINETHICK1;}
    STICKLINE(量多头 AND 今日量,0,0.9,3,0),COLORMAGENTA,LINETHICK1;
    STICKLINE(均线多头, 2.3,3,3,0),COLORLIMAGENTA,LINETHICK1;
    STICKLINE(C>REF(HHV(C,100),1), 1,2,3,0),COLOR00FFFF,LINETHICK1;
    STICKLINE(堆量0 , 1.7,2.3,3,0),COLORGREEN,LINETHICK1;
    STICKLINE(V>REF(HHV(V,60)*0.96,1), 0,0.5,3,0),COLOR00FFFF,LINETHICK1;
    {均线多头}
    角度AMA34:=ATAN((MA34/REF(MA34,3)-1)*100)*180/3.1416 ;
    角度AMA55:=ATAN((MA55/REF(MA55,2)-1)*100)*180/3.1416 ;
    角度AMA120:=ATAN((MA120/REF(MA120,3)-1)*100)*180/3.1416 ;
    多头A1:=MA5>=MA7*0.98 AND MA7>=MA13 AND MA13>=MA20*0.978 ;
    多头A2:=(MA20>=MA34*0.98 AND 角度AMA34>=30 ) OR ( MA20>=MA55*0.98 AND 角度AMA55>=30 ) OR (MA20>=MA120*0.978 AND 角度AMA120>=30 ) ;
    均线多头A:=多头A1 AND 多头A2 AND C>=MA20 AND O>=MA20;
    五色共振:量多头 AND 今日量 AND 均线多头A AND C>REF(HHV(C,100),1) AND 堆量0 ,NODRAW;
    STICKLINE(五色共振,0,0.9,4,0),COLORMAGENTA,LINETHICK1;{粉色柱}
    STICKLINE(五色共振, 2.3,3,4,0),COLORLIMAGENTA,LINETHICK1;{淡粉色柱}
    STICKLINE(五色共振, 1,2,4,0),COLOR00FFFF,LINETHICK1;{黄色柱}
    STICKLINE(五色共振, 0.1,3.0,4,0),COLORRED,LINETHICK1;{红色柱}
    STICKLINE(五色共振,0,1,4,0),COLOR3333FF,LINETHICK1;{底部咖啡色柱};
    VT10:=MA(V,10);
    VT60:=MA(V,60);
    VT135:=MA(V,135);
    除权至今:=BARSLAST(C*1.2ERT6:=BARSLASTCOUNT(FINANCE(7)=REF(FINANCE(7),1))>=120;
    MAT20:=MA(C,20);
    MAT55:=MA(C,55);
    日量T:= ((REF(C,1)-REF(C,2))/REF(C,2))>=0.095;
    总称T1:= ((C-REF(C,1))/REF(C,1))>=0.040;
    总称T2:= MAT20>=MAT55 OR C>MAT55 ;
    今日量T1:= VT10>=VT60*0.95 AND VT10>=VT135*0.95 AND 总称T1 AND 总称T2;
    日量T111:=REF(V,1)>=REF(VT135,1) AND REF(V,1)>=REF(VT10,1) AND REF(V,1)>=REF(VT60,1);
    日量T11:=日量T111 OR 日量T;
    日量T12:= REF(V,2)日量T13:=REF(V,3)日量T1:=日量T11 AND 日量T12;
    日量T24:= ((REF(C,2)-REF(C,3))/REF(C,3))>=0.095;
    日量T024:= ((REF(C,3)-REF(C,4))/REF(C,4))>=0.095;
    日量T0024:= ((REF(C,4)-REF(C,5))/REF(C,5))>=0.095;
    日量T211:= REF(V,2)>=REF(VT135,2) AND REF(V,2)>=REF(VT10,2) AND REF(V,2)>=REF(VT60,2) ;
    日量T212:= REF(V,3)>=REF(VT135,3) AND REF(V,3)>=REF(VT10,3) AND REF(V,3)>=REF(VT60,3) ;
    日量T213:= REF(V,4)>=REF(VT135,4) AND REF(V,4)>=REF(VT10,4) AND REF(V,4)>=REF(VT60,4) ;
    日量T21:=日量T211 OR 日量T24;
    日量T27:=日量T212 OR 日量T024;
    日量T027:=日量T213 OR 日量T0024;
    日量T22:=REF(V,4)日量T25:=REF(V,5)日量T025:=REF(V,6)日量T0025:=REF(V,7)日量T23:=日量T13 OR 日量T22 OR 日量T25;
    日量T023:= 日量T025 OR 日量T25;
    日量T0023:= 日量T025 OR 日量T25 OR 日量T0025;
    日量T2:=日量T11 AND 日量T21 AND 日量T23;
    日量T20:= 日量T27 AND 日量T21 AND 日量T23;
    日量T200:= 日量T27 AND 日量T027 AND 日量T0023;
    日量T2000:= 日量T21 AND 日量T027 AND 日量T0023;
    日量T2001:= 日量T11 AND 日量T27 AND 日量T23;
    今日量T2:= 日量T2 OR 日量T20 OR 日量T200 OR 日量T2000 OR 日量T2001;
    去除ST和停牌T:=EXIST(C/REF(C,1)>1.06,60) AND DYNAINFO(7)>0;
    今日T1:=今日量T1 AND 今日量T2 AND 去除ST和停牌T AND C<40 ;
    TT31:= V>REF(V,4) AND V>REF(V,5) AND V>REF(V,6) AND V>REF(V,7) AND V>REF(V,8) AND V>REF(V,9) AND V>REF(V,10) AND V>REF(V,11) AND V>REF(V,12) AND V>REF(V,13) AND V>REF(V,14) AND V>REF(V,15) AND V>REF(V,16);
    TT031:=V>REF(V,17) AND V>REF(V,18) AND V>REF(V,19) AND V>REF(V,20) AND V>REF(V,21) AND V>REF(V,22) AND V>REF(V,23) AND V>REF(V,24) AND V>REF(V,25) AND V>REF(V,26) AND V>REF(V,27) AND V>REF(V,28);
    日量T31:=TT31 AND TT031 AND V>REF(V,29) AND V>REF(V,30) AND V>REF(V,31) AND V>REF(V,32) AND V>REF(V,33) AND V>REF(V,34) AND V>REF(V,35) AND V>REF(V,36) ;
    TT32:=REF(V,1)>REF(V,4) AND REF(V,1)>REF(V,5) AND REF(V,1)>REF(V,6) AND REF(V,1)>REF(V,7) AND REF(V,1)>REF(V,8) AND REF(V,1)>REF(V,9) AND REF(V,1)>REF(V,10) AND REF(V,1)>REF(V,11) AND REF(V,1)>REF(V,12);
    TT032:=REF(V,1)>REF(V,13) AND REF(V,1)>REF(V,14) AND REF(V,1)>REF(V,15) AND REF(V,1)>REF(V,16) AND REF(V,1)>REF(V,17) AND REF(V,1)>REF(V,18) AND REF(V,1)>REF(V,19) AND REF(V,1)>REF(V,20);
    日量T32:=TT32 AND TT032 AND REF(V,1)>REF(V,21) AND REF(V,1)>REF(V,22) AND REF(V,1)>REF(V,23) AND V>REF(V,24) AND REF(V,1)>REF(V,25) AND REF(V,1)>REF(V,26) AND REF(V,1)>REF(V,27) AND REF(V,1)>REF(V,28) AND REF(V,1)>REF(V,29) AND REF(V,1)>REF(V,30) AND REF(V,1)>REF(V,31) AND REF(V,1)>REF(V,32) AND REF(V,1)>REF(V,33) AND REF(V,1)>REF(V,34) AND REF(V,1)>REF(V,35) AND REF(V,1)>REF(V,36);
    TT33:=REF(V,2)>REF(V,4) AND REF(V,2)>REF(V,5) AND REF(V,2)>REF(V,6) AND REF(V,2)>REF(V,7) AND REF(V,2)>REF(V,8) AND REF(V,2)>REF(V,9) AND REF(V,2)>REF(V,10) AND REF(V,2)>REF(V,11) AND REF(V,2)>REF(V,12);
    TT033:=REF(V,2)>REF(V,13) AND REF(V,2)>REF(V,14) AND REF(V,2)>REF(V,15) AND REF(V,2)>REF(V,16) AND REF(V,2)>REF(V,17) AND REF(V,2)>REF(V,18) AND REF(V,2)>REF(V,19) AND REF(V,2)>REF(V,20) AND REF(V,2)>REF(V,21);
    日量T33:=TT33 AND TT033 AND REF(V,2)>REF(V,22) AND REF(V,2)>REF(V,23) AND V>REF(V,24) AND REF(V,2)>REF(V,25) AND REF(V,2)>REF(V,26) AND REF(V,2)>REF(V,27) AND REF(V,2)>REF(V,28) AND REF(V,2)>REF(V,29) AND REF(V,2)>REF(V,30) AND REF(V,2)>REF(V,31) AND REF(V,2)>REF(V,32) AND REF(V,2)>REF(V,33) AND REF(V,2)>REF(V,34) AND REF(V,2)>REF(V,35) AND REF(V,2)>REF(V,36);
    日量T34:=C>REF(C,1) AND REF(C,2)>REF(O,2) AND REF(C,1)>REF(O,1) AND ((C-REF(C,1))/REF(C,1))>=0.032;
    日量T35:= VT10>=VT60*0.80 AND VT10>=VT135*0.80;
    WWW58188COM:= VT10>=VT60*0.80 AND VT10>=VT135*0.80;
    今日T2:=日量T31 AND 日量T32 AND 日量T33 AND 日量T34 AND 总称T2 AND 日量T111 AND 日量T211 AND 日量T35 ;
    XG:=今日T1 OR 今日T2 ;
    DRAWICON(XG,2,23);


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

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

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

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