最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信几个战赢系列副图指标源码无未来

    正文概述    2024-04-13 20:26:22  

    1.战赢主力:
    VARA:=REF(LOW,1);
    VARB:=SMA(ABS(LOW-VARA),3,1)/SMA(MAX(LOW-VARA,0),3,1)*100;
    VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
    VARD:=LLV(LOW,30);
    VARE:=HHV(VARC,30);
    VARF:=IF(MA(CLOSE,58),1,0);
    VARG:=EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3)/618*VARF;
    VARH:=IF(VARG>28,28,VARG);
    吸筹:STICKLINE(VARH>-120,0,VARH,6,1),COLOR0FFFFF;

    RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    X:=LLV(J,2)=LLV(J,8);
    跟庄买入: IF(CROSS(J,3),50,0),COLORRED,LINETHICK3;

    VA:=(2*C+H+L)/4;
    VB:=LLV(L,5);
    VC:=HHV(H,5);
    红线上穿买:EMA((VA-VB)/(VC-VB)*100,5),COLORRED;
    红线下穿卖:EMA(红线上穿买,3),COLORFFFF00;
    JL:=EMA(VOL,13);
    JE:=EMA(AMOUNT,13);
    JX:=((JE / JL) / 100);
    RGL:=(((CLOSE - JX) / JX) * 100);
    STICKLINE((RGL < (0 - 6)),0,20,2,0),COLORFF00CC;
    V1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
    V2:=2*ABS(V1);
    粉军:IF(V1>0,V1,0),COLORFFCCFF, LINESTICK;
    绿军:IF(V1<0,V2,0),COLORGREEN,LINESTICK;

    K1:=SMA(RSV,3,1);
    DK1:=K1-REF(K1,1);
    出手就赢:IF(DK1>7 AND REF(DK1,1)<0 AND (DK1-REF(DK1,1))>9,30,0), LINESTICK,COLORYELLOW;
    DRAWICON(出手就赢>0,30 ,1);

    2.战赢趋势:
    Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
    Q3:=SMA(Q2, 9, 1);
    Q4:=SMA(Q3, 3, 1);
    长趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK3;
    趋势线:EMA(Q3, 3),COLORRED,LINETHICK3;
    DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '顶'),COLORRED,LINETHICK5;
    逢低买: DRAWTEXT(REF(CROSS(趋势线,长趋势),82) AND 趋势线>1.3*长趋势,长趋势,'逢低买'),LINETHICK1;
    买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1) AND 长趋势>1.3*趋势线,趋势线,'买'),COLORRED,LINETHICK1;
    VAR3:=PEAKBARS(3,15,1)<10;
    VAR5:=IF(VAR3=1,2,0);
    顶:= IF(VAR5=2,2,0);
    顶A:IF(顶>REF(顶,1),50,0),COLORGREEN;
    DRAWTEXT(顶A=50,45,'快逃'),COLOR00FF00;
    金叉: CROSS(长趋势,趋势线);
    DRAWTEXT(金叉,趋势线,'★'),COLORRED;

    3.战赢高低:
    VAR1:=IF(DATE<1340830 AND DATE>900101,1,0);
    VAR2:=IF(MONTH<12,1,100000);
    VAR3:=(2*CLOSE+HIGH+LOW)/4;
    VAR4:=LLV(LOW,34);
    VAR5:=HHV(HIGH,34);
    散户: EMA((VAR3-VAR4)/(VAR5-VAR4)*100,13),LINETHICK2,COLORRED;
    新庄: EMA(0.667*REF(散户,1)+0.333*散户,2),LINETHICK2,COLORYELLOW;
    DRAWTEXT(CROSS(散户,新庄) AND 散户<22,20,'绝望中诞生'),COLORWHITE,LINETHICK7 ;
    DRAWICON(CROSS(散户,新庄) AND 散户<22,25,0);
    DRAWTEXT(CROSS(散户,30) AND 新庄<散户,40,'犹豫中上扬'),COLORYELLOW, LINETHICK4;
    DRAWICON(CROSS(散户,30) AND 新庄<散户,40,0);
    DRAWTEXT(CROSS(散户,65) AND 新庄<散户,70,'无奈中叹息'),COLORRED ,LINETHICK4 ;
    DRAWICON(CROSS(散户,65) AND 新庄<散户,70,1);
    DRAWICON(CROSS(散户,75) AND 新庄<散户,80,1);
    DRAWICON(CROSS(新庄,散户) AND 新庄>75,85,2);
    逢低吸呐: IF(CROSS(散户,新庄) AND 散户<40,25,10),COLORRED,LINETHICK2;
    逢高减磅: IF(CROSS(新庄,散户) AND 新庄>75,75,90),COLORGREEN,LINETHICK2;
    高抛低吸界线: 50*VAR1, CROSSDOT;

    4.战赢风赢:
    FS:=MA(CLOSE,13)+MA(CLOSE,13)-REF(MA(CLOSE,13),1);
    CG:=IF(MA(CLOSE,13) A:=CG-(EMA(C,3)-CG);
    X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
    MTM:=C-REF(C,1);
    DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
    卖1:=IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0);
    DRAWICON(FILTER(卖1=1,1),H*1.01,6);
    买1:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
    DRAWICON(FILTER(买1=1,5),L*0.96,5);
    日均价:=(C*3+H+L+O)/6;
    ZIA:=日均价;
    裁决:=(REF(ZIA,1)*0.5+REF(ZIA,2)+REF(ZIA,3)*0.5)/2;
    VAR1:=IF(C<裁决 AND BETWEEN(裁决,C,O),1,0);
    VAR2:=IF(C<裁决 AND REF(C,1)>裁决 AND BETWEEN(裁决,C,O)=0,1,0);
    VAR3:=IF(C<裁决 AND REF(C,1)>裁决 ,1,0);
    VAR4:=IF(C>=裁决 AND BETWEEN(裁决,C,O),1,0);
    VAR5:=IF(C>=裁决 AND REF(C,1)>裁决,1,0);
    VAR6:=IF(C>=裁决 AND BETWEEN(裁决,C,O)=0 AND REF(C,1)>裁决,1,0);
    CO:=(C-O);

    捕风:MA(C,5)-MA(C,13)+MA(C,8),COLORYELLOW,LINETHICK1;
    修正:=SMA(SMA(EMA(日均价,5)*2-MA(日均价,5),3,1),3,1);
    补偿:=FLOOR(((修正-MA(修正,5))/MA(修正,5)*100));
    SA:=EMA(日均价,5)*2-MA(日均价,5);
    捉影:SMA(SMA((EMA(SA,(5+ABS(补偿)))),2,1),2,1),COLORMAGENTA,LINETHICK2;
    捉影角度:ATAN((捉影/REF(捉影,1)-1)*100)*57.3,NODRAW,COLORYELLOW;
    分界:MA(C,64),COLORFF9900;
    分界角度:ATAN((分界/REF(分界,1)-1)*100)*57.3,NODRAW,COLORFF9900;
    买点A:FILTER(买1=1,5),COLORGRAY,NODRAW;
    买点B:VAR4,COLORGRAY,NODRAW;
    涨幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,COLORMAGENTA,NODRAW;
    换手:SUM(100*V/CAPITAL,1),COLORFF9900,NODRAW;


    STICKLINE(CLOSE> REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORRED;
    STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR000055;
    STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR000077;
    STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR000099;
    STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;
    STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;
    STICKLINE(CLOSE> REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;
    STICKLINE(CLOSE= REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORWHITE;
    STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR555555;
    STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLOR777777;
    STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLOR999999;
    STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORBBBBBB;
    STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORDDDDDD;
    STICKLINE(CLOSE= REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORFFFFFF;
    STICKLINE(CLOSE< REF(CLOSE,1) ,HIGH,LOW,0,1 ),COLORCYAN;
    STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,3,0 ),COLOR990000;
    STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.7,0 ),COLORCC0000;
    STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,2.1,0 ),COLORFF4400;
    STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,1.5,0 ),COLORFF8800;
    STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.9,0 ),COLORFFCC00;
    STICKLINE(CLOSE< REF(CLOSE,1) ,OPEN,CLOSE,0.3,0 ),COLORCYAN;

    STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,3,0 ),COLOR000055;
    STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,2.7,0 ),COLOR000077;
    STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,2.1,0 ),COLOR000099;
    STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,1.5,0 ),COLOR0000BB;
    STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,0.9,0 ),COLOR0000DD;
    STICKLINE(VAR5 OR VAR6 ,OPEN,CLOSE,0.3,0 ),COLOR0000FF;
    STICKLINE(VAR4,O,O+CO/3,2.7,0),COLOR335555;
    STICKLINE(VAR4,O,O+CO/3,2.1,0),COLOR338888;
    STICKLINE(VAR4,O,O+CO/3,1.5,0),COLOR33AAAA;
    STICKLINE(VAR4,O,O+CO/3,0.9,0),COLOR33CCCC;
    STICKLINE(VAR4,O,O+CO/3,0.3,0),COLOR33EEEE;
    STICKLINE(VAR1,O,O+CO/3,2.7,0),COLOR550055;
    STICKLINE(VAR1,O,O+CO/3,2.1,0),COLOR880088;
    STICKLINE(VAR1,O,O+CO/3,1.5,0),COLORAA00AA;
    STICKLINE(VAR1,O,O+CO/3,0.9,0),COLORCC00CC;
    STICKLINE(VAR1,O,O+CO/3,0.3,0),COLOREE00EE;

    5.战赢背离:
    N1:=5;
    N2:=10;
    N3:=21;
    N4:=60;
    牛熊:EMA(CLOSE,N4),COLORGREEN,LINETHICK3;
    DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA:=EMA(DIFF,8);
    A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
    B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1) DRAWTEXT(IF(B1>0,1,0),L-0.1,'MACD底背'),COLORGREEN;
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    A2:=BARSLAST(REF(CROSS(K,D),1));
    B2:=REF(C,A2+1)>C AND REF(K,A2+1) DRAWTEXT(IF(B2>0,1,0),L-0.25,'KDJ底背'),COLORYELLOW;
    LC:=REF(CLOSE,1);
    RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
    A3:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
    B3:=REF(C,A3+1)>C AND REF(RSI1,A3+1) DRAWTEXT(IF(B3>0,1,0),L-0.4,'RSI底背'),COLORBLUE;
    C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
    D1:=REF(C,C1+1)DIFF AND CROSS(DEA,DIFF);
    DRAWTEXT(IF(D1>0,1,0),H+0.1,'MACD顶背'),COLORWHITE;
    C2:=BARSLAST(REF(CROSS(D,K),1));
    D2:=REF(C,C2+1)K AND CROSS(D,K);
    DRAWTEXT(IF(D2>0,1,0),H+0.25,'KDJ顶背'),COLORWHITE;
    C3:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
    D3:=REF(C,C3+1)RSI1 AND CROSS(RSI2,RSI1);
    DRAWTEXT(IF(D3>0,1,0),H+0.4,'RSI顶背'),COLORYELLOW;
    SG:EMA(HHV(H,1),8),COLORGRAY;
    X1:EMA(CLOSE,N1),COLORYELLOW;
    JJ:=(H+L+3*C)/5;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信几个战赢系列副图指标源码无未来 加入收藏