最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信选股指标B源码

    正文概述    2024-04-13 15:18:50  

    {天天涨停}

    T:=IF((BARSCOUNT(C) 7),(100)*((MA(C,7))/(LLV(MA(C,7),7)) - 1),1);

    N:=IF((T 0.35),6,65);
    W:=((-((100)*(HHV(H,N) - C))/(HHV(HIGH,N) - LLV(L,N))));
    RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
    J0:=(HIGH+LOW)/2;
    QJ:=EMA(J0,3);
    J1:=IF(CLOSE QJ,VOL,0);
    J2:=IF(CLOSE
    BB:=MA(SUM(J1-J2,22),3);
    修改1:=DYNAINFO(8)*240/FROMOPEN;
    修改2:=IF(CLOSE QJ,修改1,0);
    修改3:=IF(CLOSE
    修改4:=MA(SUM(修改2-修改3,22),3);
    累加:=21*修改4+20*REF(BB,1)+19*REF(BB,2)+18*REF(BB,3)+17*REF(BB,4)
    +16*REF(BB,5)+15*REF(BB,6)+14*REF(BB,7)+13*REF(BB,8)+12*REF
    (BB,9)+11*REF(BB,10)+10*REF(BB,11)+9*REF(BB,12)+8*REF(BB,13)
    +7*REF(BB,14)+6*REF(BB,15)+5*REF(BB,16)+4*REF(BB,17)+3*REF
    (BB,18)+2*REF(BB,19)+REF(BB,20);
    WMA:=累加/(21+1)/21*2;
    CC:=WMA;VAR3:=(BB-CC);VAR4:=SMA(RV,3,1);
    VAR5:=SMA(VAR4,3,1);
    KK:=EMA(SMA(RG,3,1),2),COLORFFFFFF;
    DD:=SMA(KK,3,1),COLOR00FFFF;
    天天涨停:CROSS(W,-2) AND CROSS(VAR4,VAR5) AND CROSS(KK,DD);

    ======================================================

    {超跌+主升}

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MACD:=(DIF-DEA)*2;
    M3:=MA(C,3);
    M10:=MA(C,10);
    M55:=MA(C,55);
    M89:=MA(C,89);
    RSV:=(CLOSE-LLV(LOW,196))/(HHV(HIGH,196)-LLV(LOW,196))*100;
    快线:=SMA(RSV,30,1);
    慢线:=SMA(快线,15,1);
    RSV1:=(CLOSE-LLV(LOW,23))/(HHV(HIGH,23)-LLV(LOW,23))*100;
    参照快线:=SMA(RSV1,6,1),COLORRED;
    参照慢线:=SMA(参照快线,3,1),COLORFFFFFF;
    TJ1:=CROSS(快线,慢线) AND 快线
    TJ2:=FILTER(CROSS(参照快线,参照慢线) AND 快线 50 AND M55 =REF(M55,1)
    AND 参照快线 50,5);
    TJ3:=CROSS(参照快线,10) AND 参照快线
    XG:TJ1 OR TJ2 OR TJ3;

    ======================================================

    {5日选股}

    MA5:=MA(C,5);
    MA10:=MA(C,10);
    AA:=FILTER(CROSS(MA5,MA10),8);
    XG:AA;

    ======================================================

    {大牛}

    MA89:=MA(C,89);
    MA55:=MA(C,55);
    MA13:=MA(C,13);
    TJ1:=CROSS(MA13,MA55);
    TJ2:=CROSS(MA55,MA89);
    XG :TJ1 OR TJ2;

    ======================================================

    {转强}

    N1:=5;N2:=10;N3:=20;N4:=30;P:=2;
    MA1:=EMA(CLOSE,N1);
    MA2:=EMA(CLOSE,N2);
    MA3:=EMA(CLOSE,N3);
    MA4:=EMA(CLOSE,N4);
    TJ1:=CROSS(MA1,MA2) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
    OR CROSS(MA1,MA4) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
    OR CROSS(MA2,MA3) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
    OR CROSS(MA1,MA3) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018;
    TJ2:=(MAX(MA1,MAX(MA2,MA3))-MIN(MA1,MIN(MA2,MA3)))/
    MIN(MA1,MIN(MA2,MA3))*100
    XG:=TJ1 AND TJ2;

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA :=EMA(DIFF,9);
    MACD:=2*(DIFF-DEA);
    ZQ:=MACD 0 AND K D AND V
    XG2:=FILTER(ZQ,8);
    W18:XG OR XG2;


    ======================================================

    {起底}

    VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
    VAR2:=SMA(VAR1,9,1)+100;
    VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    VAR4:=SMA(VAR3,3,1);
    VAR5:=SMA(VAR4,3,1)+100;
    VAR6:=VAR5-VAR2;
    趋势:=IF(VAR6 45,VAR6-45,0);
    XG:FILTER(REF(趋势,1) 趋势 AND REF(趋势,1) 1,5);

    ======================================================

    {DDE强势}

    JJ:=(HIGH+LOW+CLOSE)/3;
    QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
    QJ1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
    QJ2:=QJ0*(JJ-MIN(CLOSE,OPEN));
    QJ3:=QJ0*(HIGH-MAX(OPEN,CLOSE));
    QJ4:=QJ0*(MAX(CLOSE,OPEN)-JJ);
    DDX:=IF(HIGH=LOW,4*QJ0,((QJ1+QJ2)-(QJ3+QJ4)))/SUM(VOL,10)*100;
    DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;
    DDZ:=((QJ1+QJ2)-(QJ3+QJ4))/((QJ1+QJ2)+(QJ3+QJ4))*100*17;
    预警:DDX 2 AND DDZ 100 AND DDY 3 AND VOL/CAPITAL*100

    ======================================================

    {起筹}

    {N-9;M1-9;M2-3;P-9;}

    VAR2:=REF(LOW,1);
    VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
    VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
    VAR5:=LLV(LOW,13);
    VAR6:=HHV(VAR4,13);
    VAR7:=IF(MA(CLOSE,34),1,0);
    VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
    VAR9:=IF(VAR8 100,100,VAR8);
    吸筹:=VAR9;
    快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
    慢线:=SMA(快线,M1,1);
    TJ1:=吸筹 0.01;
    TJ2:=CROSS(快线,慢线) AND 慢线
    BUY:FILTER(TJ1 AND TJ2,5);

    ======================================================

    {底背离}

    DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
    DEA:=EMA(DIF,9);
    MACD:=(DIF-DEA)*2;
    DIF底:=LLV(DIF,120);
    最底价:=L=LLV(L,120);
    距今:=BARSLAST(最底价);
    偏离:=IF((距今=0 AND DIF DIF底),1,0);
    DDD:=EXIST(偏离,20) AND SLOPE(DEA,2)
    HRY:=FILTER(DDD,10);
    TJ1:=HRY;
    A2:=BARSLAST(REF(CROSS( KDJ.K (9,3,3), KDJ.D (9,3,3)),1));
    B2:=REF(C,A2+1) C AND REF( KDJ.K (9,3,3),A2+1) KDJ.K (9,3,3) AND CROSS( KDJ.K (9,3,3), KDJ.D (9,3,3));
    A3:=BARSLAST(REF(CROSS( RSI.RSI1 (6,12,24), RSI.RSI2 (6,12,24)),1));
    B3:=REF(C,A3+1) C AND REF( RSI.RSI1 (6,12,24),A3+1) RSI.RSI1 (6,12,24) AND CROSS( RSI.RSI1 (6,12,24), RSI.RSI2 (6,12,24));
    C2:=BARSLAST(REF(CROSS( KDJ.D (9,3,3), KDJ.K (9,3,3)),1));
    D2:=REF(C,C2+1) KDJ.K (9,3,3) AND CROSS( KDJ.D (9,3,3), KDJ.K (9,3,3));
    C3:=BARSLAST(REF(CROSS( RSI.RSI2 (6,12,24), RSI.RSI1 (6,12,24)),1));
    D3:=REF(C,C3+1) RSI.RSI1 (6,12,24) AND CROSS( RSI.RSI2 (6,12,24), RSI.RSI1 (6,12,24));
    KDJ底背:=FILTER(IF(B2 0,-1,0),13);
    TJ2:=KDJ底背;
    RSI底背:=FILTER(IF(B3 0,-1,0),13);
    TJ3:=RSI底背;
    XG:TJ1 OR TJ2 OR TJ3;

    ======================================================

    {共振}

    RV:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
    RG:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
    J0:=(HIGH+LOW)/2;QJ:=EMA(J0,3);
    J1:=IF(CLOSE QJ,VOL,0);
    J2:=IF(CLOSE
    量能:=IF(CAPITAL 1,MA(VOL,74),MA(SUM(J1-J2,22),3));
    趋势:=IF(CAPITAL 1,EMA(量能,360),EMA(量能,21));
    VAR3:=(量能-趋势);
    VAR44:=SMA(RV,3,1);
    VAR55:=SMA(VAR44,3,1);
    KK:=EMA(SMA(RG,3,1),2);DD:=SMA(KK,3,1);
    共振点:=(CROSS(VAR44,VAR55) AND CROSS(KK,DD));
    XG:共振点;

    ======================================================

    {快赢}

    T:=(CLOSE*4.0+LOW*1.0+HIGH*1.0)/6;
    SL:=(T/REF(T,1)-1)*1000;
    快短势:=XMA(XMA(XMA(SL,3),3),3);
    慢短势:=XMA(XMA(XMA(XMA(XMA(SL,5),5),5),5),5);
    X:=XMA(XMA(XMA(SL,3),3),3)-XMA(XMA(XMA(XMA(XMA(SL,5),5),5),5),5);
    增速1:=X;

    Y:=X,COLOR00FFFF;

    {增速2:Y,COLORSTICK;}
    中势:=XMA(XMA(XMA(SL,13),13),13),LINETHICK1,COLORFF00FF;
    短势:=XMA(XMA(XMA(SL,9),9),9),LINETHICK1,COLOR00FF00;
    长势:=XMA(XMA(XMA(SL,72),72),72),LINETHICK1,COLORRED;
    分界:=0,COLORWHITE,LINETHICK2;

    TJ1:=CROSS(短势,0);
    TJ2:=CROSS(短势,长势);
    TJ3:=CROSS(Y,0);
    TJ4:=CROSS(短势,中势);
    XG:TJ1 OR TJ2 OR TJ3 OR TJ4;

    ======================================================

    {红三兵 N-3}

    AA:=EVERY(C O,N);
    BB:=EVERY(C REF(C,1),N);
    CC:=EVERY(C/REF(C,1) 1.03,N);
    TJ1:=AA AND BB AND CC;
    VAR0:=REF(V,1)+REF(V,2)+REF(V,3)+REF(V,4)+REF(V,5);
    VAR1:=VAR0/5;
    LB:=V/VAR1;
    TJ2:=LB
    XG:TJ1 AND TJ2;

    ======================================================

    {股道共振}

    FF:=EMA(CLOSE,3);
    MA15:=EMA(CLOSE,21);
    TTJ:=CROSS(FF,MA15);
    TYP:= (HIGH + LOW + CLOSE)/3;
    CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
    差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
    CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
    差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
    CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
    差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
    CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
    差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
    CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
    差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
    CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
    AAA:=(3*C+H+L+O)/6;
    VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
    +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
    VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
    VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
    VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
    VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
    短线:=VAR1;
    中线:=VAR6;

    下跌:=IF(VAR1=VAR6,VAR6, DRAWNULL);
    TJ1:=CCI1
    立桩量:=FILTER(TJ1,0);
    TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);
    成立1:=TJ2=1;
    条件成立1:=FILTER(成立1,5);
    TJ011:= CCI1 -差值4 ;
    立桩量2:=FILTER(TJ011,0);
    TJ022:=IF(BARSLAST(立桩量2)=1 AND CLOSE REF(HIGH,1),1,
    IF(BARSLAST(立桩量2)=2 AND CLOSE REF(HIGH,2),1,
    IF(BARSLAST(立桩量2)=3 AND CLOSE REF(HIGH,3),1,0)));
    TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE REF(LOW,1),1,0);
    成立2:=TJ=1;
    条件成立2:=FILTER(成立2,5);


    TJ111:=(ABS(CCI1) CCI AND ABS( 差值1) ABS(差值5))
    OR (VOL=HHV(VOL,10) AND VOL 2*REF(VOL,1) AND CLOSE VAR1);
    立桩量3:=FILTER(TJ111,5);
    TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE REF(LOW,3),1,0)));
    成立:=TJ3=1;
    条件成立:=FILTER(成立,5);

    上:=EMA(C,3),COLORBLUE,LINETHICK1;
    中:=EMA(C,5),COLORWHITE,LINETHICK1;
    下:=EMA(中,5),COLOR00FF00,LINETHICK1;
    QQ:= C
    MM:=上 REF(上,1) AND REF(上,1)
    V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
    V2:=(1-7/100)*(DMA(CLOSE,V1));
    V3:=(1+7/100)*(DMA(CLOSE,V1));
    V5:=MA((LOW+HIGH+CLOSE)/3,5);
    MA1:=MEMA(CLOSE,5);
    MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
    MA3:=IF(MA2 0,MA2,MA2);
    MA5:=MA(CLOSE,5),COLOR888899;
    MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
    VAR01:=CLOSE=HHV(C,4) AND (REF(C,1) =REF(C,2) OR REF(C,1) =REF(C,3))
    OR REF(C,1)=HHV(C,4) AND CLOSE =REF(C,2) OR REF(C,2)=HHV(C,4) AND
    REF(C,3)=LLV(C,4) AND C =REF(C,1) OR REF(C,3)=HHV(C,4) AND
    C =REF(C,1) AND C =REF(C,2);
    {收盘价=4日内收盘价的最高值 AND 昨收 =2日前的收盘价}
    VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
    {收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}
    VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)
    REF(C,1)=LLV(C,4) AND C
    REF(C,1)=HHV(C,4) AND C
    C
    {收盘价=4日内收盘价的最低值 AND (昨收 2日前的收盘价}
    VAR04:=REF(C,1)=LLV(C,4) AND C =REF(C,2) OR REF(C,2)=LLV(C,4) AND
    REF(C,1) =REF(C,3) AND REF(C,2)=REF(C,1);
    {昨收=4日内收盘价的最低值 AND 收盘价 =2日前的收盘价}
    VAR05:=REF(C,1)=HHV(C,4) AND C
    REF(C,1) REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1) REF(C,2)) AND
    REF(C,2) =REF(C,4) AND C
    {昨收=4日内收盘价的最高值 AND 收盘价 2日前的收盘价}
    VAR06:=V5 REF(V5,1) AND REF(V5,1)
    {今日V5向上形成拐点}
    VAR07:=LOWHHV(V5,13) AND CLOSE REF(C,1) AND CLOSE OPEN;
    VAR08:=VAR07 AND COUNT(VAR06,2);
    VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
    VAR10:=EMA(MA(C,13),13);
    VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09 0,2) AND
    CROSS(VAR09,MA(VAR09,2)))=1,5);
    VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09 50,2) AND
    CROSS(MA(VAR09,2),VAR09))=1,1);
    VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
    VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
    VAR15:=MA(C,18) =REF(MA(C,18),3) AND CROSS(C,MA(C,18));
    VAR16:=VAR08 AND NOT(REF(VAR08,1));
    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;
    金叉:=CROSS(J,D);
    死叉:=CROSS(D,J);
    买1:=(VAR14 OR VAR15) AND VAR11;
    买2:=(VAR14 OR VAR15) AND VAR04;
    买3:=(VAR14 OR VAR15) AND VAR02;
    买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);
    买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);

    TTJ0:=VAR16;
    TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;
    XG0:=TTJ AND TTJ0;
    XG1:=TTJ AND TTJ1;
    TTJ3:=条件成立 AND 下跌!= VAR6;
    XG3:=TTJ0 AND TTJ3;
    XG11:=XG0 OR XG1 OR XG3;

    PL5:=ZIG(3,5);
    EN1:=ZIG(3,5) REF(ZIG(3,5),1) AND REF(ZIG(3,5),1) =REF(ZIG(3,5),2) AND REF(ZIG(3,5),2) =REF(ZIG(3,5),3);
    EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2) =REF(ZIG(3,5),3);
    PL10:=ZIG(3,10);
    EN2:=ZIG(3,10) REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) =REF(ZIG(3,10),2) AND REF(ZIG(3,10),2) =REF(ZIG(3,10),3);
    EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2) =REF(ZIG(3,10),3);
    PL20:=ZIG(3,20);
    EN3:=ZIG(3,20) REF(ZIG(3,20),1) AND REF(ZIG(3,20),1) =REF(ZIG(3,20),2) AND REF(ZIG(3,20),2) =REF(ZIG(3,20),3);
    EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2) =REF(ZIG(3,20),3);
    PL40:=ZIG(3,40);
    走强1:=BARSLAST(PL5
    走弱1:=BARSLAST(PL5 REF(PL5,1));
    走强2:=BARSLAST(PL10
    走弱2:=BARSLAST(PL10 REF(PL10,1));
    走强3:=BARSLAST(PL20
    走弱3:=BARSLAST(PL20 REF(PL20,1));
    ZTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走强2),0);
    ZTJD5:=IF(PL10 REF(PL10,1),COUNT(EX1,走强2),0);
    DTJZ5:=IF(PL10
    DTJD5:=IF(PL10
    ZTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走强3),0);
    ZTJD10:=IF(PL20 REF(PL20,1),COUNT(EX2,走强3),0);
    DTJZ10:=IF(PL20
    DTJD10:=IF(PL20
    TJ11:=EN2 AND ZTJZ5=1;
    TJ22:=EN1 AND PL10 REF(PL10,1) AND ZTJZ5=2;
    TJ33:=EN2 AND DTJZ10=1;
    TJ44:=EN3 AND ZTJZ10=1;
    TJ55:=EN2 AND PL20 REF(PL20,1) AND ZTJZ10=2;
    XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;

    XG:=XG11 AND XG22;
    W18:EXIST(XG,1);

    ======================================================

    {底弹升}

    TEND:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))
    *100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))
    *100,5,1),3,1);
    TJ0:=IF(TEND =10,12,0);
    VAR1:=HHV(HIGH,9)-LLV(LOW,9);
    VAR2:=HHV(HIGH,9)-CLOSE;
    VAR3:=CLOSE-LLV(LOW,9);
    VAR4:=VAR2/VAR1*100-70;
    VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60));
    VAR6:=(2*CLOSE+HIGH+LOW)/4;
    VAR7:=SMA(VAR3/VAR1*100,3,1);
    VAR8:=LLV(LOW,34);
    VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
    VAR10:=IF(VAR9 100,VAR9-100,0);
    VAR11:=HHV(HIGH,34);
    VAR12:=EMA((VAR6-VAR8)/(VAR11-VAR8)*100,13);
    VAR13:=EMA(0.667*REF(VAR12,1)+0.333*VAR12,2);

    A1:=HHV(HIGH,50)/LLV(LOW,100)
    A2:=(HHV(HIGH,50)-LOW)/(HHV(HIGH,50)-LLV(LOW,100));
    A3:=(LOW-LLV(LOW,100))/(HHV(HIGH,50)-LLV(LOW,100));
    A4:=HHVBARS(HIGH,50)
    A5:=A1 AND A2 0.5 AND A3 0.3 AND A4;
    A6:=COUNT(A5,20)=1;
    TJ1:=A6 AND A5;

    VAR2W:=100-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
    MW:= EMA(VAR2W,3);
    VAR3W:=EMA(VAR2W,7);
    M1:= EMA(VAR3W,5);
    MB1:=CROSS(MW,M1) AND M1
    TJ2:=IF((MB1),20,0);
    XG:=TJ0 AND TJ2;
    TJ3:=CROSS(TEND,VAR12) AND VAR12
    W188: TJ1 OR XG OR TJ3;

    ======================================================

    {好机会}

    N:=14;N1:=36;G:=15;Z:=5;
    ROC:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);
    MAROC:=MA(ROC,6);
    变动速率:=ROC/MAROC*Z;
    P:=(HIGH+LOW+CLOSE)/3;
    CCI1:=(P-MA(P,N))*1000/(G*AVEDEV(P,N));
    CCI2:=(P-MA(P,N1))*1000/(G*AVEDEV(P,N1));
    B1:=BARSLAST(CCI1=LLV(CCI1,60));
    DD:=CREF(CCI1,B1);
    机会难得:=CROSS(CCI1,CCI2) AND REF(CCI1,1)=LLV(CCI1,70);
    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    KD:=CROSS(K,D);
    XG:机会难得 AND KD;

    ======================================================

    {股神 M1-55}

    HR:=HHV(HIGH,M1);
    HRY:=LLV(LOW,M1);
    HRY11:=HR*HRY;
    HRY33:=SQRT(HRY11);

    RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26);
    DEA :=EMA(DIFF,9);
    MACD:=2*(DIFF-DEA);

    做多:=K D AND MACD 0 AND V
    TEND:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42);
    WLT1:=EMA(C,3);
    WLT2:=EMA(C,5);
    WLT3:=EMA(WLT2,5);
    QQ:= C
    MM:=WLT1 REF(WLT1,1) AND REF(WLT1,1)
    MM0:=WLT1REF(WLT1,2) ;
    WL:=CROSS(WLT1,WLT2);
    WL1:=CROSS(WLT2,WLT1);
    WL2:=CROSS(WLT1,TEND);
    WL3:=LLV(LOW,55);
    WL6:=HHV(HIGH,21);
    WL8:=LLV(LOW,21);
    XG:=WL2 AND C TEND AND C2;
    W18:EXIST(XG,1);

    ======================================================

    {五里2号}

    {双信号 全仓 选股原码}
    FF:=EMA(CLOSE,3);
    MA15:=EMA(CLOSE,21);
    TTJ:=CROSS(FF,MA15);
    上:=EMA(C,3),COLORBLUE,LINETHICK1;
    中:=EMA(C,5),COLORWHITE,LINETHICK1;
    下:=EMA(中,5),COLOR00FF00,LINETHICK1;
    QQ:= C
    MM:=上 REF(上,1) AND REF(上,1)
    V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
    V2:=(1-7/100)*(DMA(CLOSE,V1));
    V3:=(1+7/100)*(DMA(CLOSE,V1));
    V5:=MA((LOW+HIGH+CLOSE)/3,5);
    MA1:=MEMA(CLOSE,5);
    MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
    MA3:=IF(MA2 0,MA2,MA2);
    MA5:=MA(CLOSE,5),COLOR888899;
    MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
    VAR01:=CLOSE=HHV(C,4) AND (REF(C,1) =REF(C,2) OR REF(C,1) =REF(C,3))
    OR REF(C,1)=HHV(C,4) AND CLOSE =REF(C,2) OR REF(C,2)=HHV(C,4) AND
    REF(C,3)=LLV(C,4) AND C =REF(C,1) OR REF(C,3)=HHV(C,4) AND
    C =REF(C,1) AND C =REF(C,2);
    {收盘价=4日内收盘价的最高值 AND 昨收 =2日前的收盘价}
    VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
    {收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}
    VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)
    REF(C,1)=LLV(C,4) AND C
    REF(C,1)=HHV(C,4) AND C
    C
    {收盘价=4日内收盘价的最低值 AND (昨收 2日前的收盘价}
    VAR04:=REF(C,1)=LLV(C,4) AND C =REF(C,2) OR REF(C,2)=LLV(C,4) AND
    REF(C,1) =REF(C,3) AND REF(C,2)=REF(C,1);
    {昨收=4日内收盘价的最低值 AND 收盘价 =2日前的收盘价}
    VAR05:=REF(C,1)=HHV(C,4) AND C
    REF(C,1) REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1) REF(C,2)) AND
    REF(C,2) =REF(C,4) AND C
    {昨收=4日内收盘价的最高值 AND 收盘价 2日前的收盘价}
    VAR06:=V5 REF(V5,1) AND REF(V5,1)
    {今日V5向上形成拐点}
    VAR07:=LOWHHV(V5,13) AND CLOSE REF(C,1) AND CLOSE OPEN;
    VAR08:=VAR07 AND COUNT(VAR06,2);
    VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
    VAR10:=EMA(MA(C,13),13);
    VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09 0,2) AND
    CROSS(VAR09,MA(VAR09,2)))=1,5);
    VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09 50,2) AND
    CROSS(MA(VAR09,2),VAR09))=1,1);
    VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
    VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
    VAR15:=MA(C,18) =REF(MA(C,18),3) AND CROSS(C,MA(C,18));
    VAR16:=VAR08 AND NOT(REF(VAR08,1));
    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;
    金叉:=CROSS(J,D);
    死叉:=CROSS(D,J);
    买1:=(VAR14 OR VAR15) AND VAR11;
    买2:=(VAR14 OR VAR15) AND VAR04;
    买3:=(VAR14 OR VAR15) AND VAR02;
    买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);
    买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);
    TTJ0:=VAR16;
    TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;
    XG0:=TTJ AND TTJ0;
    XG1:=TTJ AND TTJ1;
    XG11:XG0 OR XG1;

    ======================================================

    {股仙 M1-55}

    {牛熊分界线}
    HR:=HHV(HIGH,55);
    HRY:=LLV(LOW,55);
    HRY11:=HR*HRY;
    HRY33:=SQRT(HRY11);

    {均线多头}
    WLT1:=EMA(C,3);
    WLT2:=EMA(C,5);
    WLT3:=EMA(WLT2,5);

    {横盘整理}
    HP:=(HHV(CLOSE,10)-LLV(CLOSE,10))/CLOSE 0.10;
    {量比}
    LB:=VOL/MA(VOL,5);

    {上升角度}
    X1:=(C+L+H)/3;
    BB5:=ATAN(EMA(X1,7)-REF(EMA(X1,7),1))*3.1416*10;

    TT:=FILTER(BB5 1 AND EMA(X1,7) REF(EMA(X1,7),1),10);{45度上升}
    MM:=WLT1 REF(WLT1,1) AND REF(WLT1,1)
    GG1:=CROSS(WLT1,WLT2);{均线向上金叉}
    {CCI指标}
    TYP:= (HIGH + LOW + CLOSE)/3;
    CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
    差值1:=ABS(REF(CCI1,1)-CCI1);
    CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
    差值2:=ABS(REF(CCI2,1)-CCI2);
    CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
    差值3:=ABS(REF(CCI3,1)-CCI3);
    CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
    差值4:=ABS(REF(CCI4,1)-CCI4);
    CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
    差值5:=ABS(REF(CCI5,1)-CCI5);
    CCI:=(CCI1+CCI2+CCI3+CCI4+CCI5)/2;
    WLT91:=HHV(CCI,13);{CCI的13日内最高}
    WLT92:=LLV(CCI,13) -100;{CCI的13日内最低值小于-100}
    WLT95:=COUNT(WLT92,13) {CCI的13日内最低值小于-100的情况不少于3次}
    WLT93:=CCI WLT91;{CCI大于前13日内最高}
    WLT96:=CROSS(CCI,100);{CCI上穿100}
    TJ91:=WLT95 AND WLT96;
    JLP:=FILTER(TJ91,5);{CCI的13日内完成探底后走强}

    超买:=MA(C,10)*IF(CAPITAL=0,1.04,1.1);
    超卖:=MA(C,10)*IF(CAPITAL=0,0.95,0.9);
    TEND:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42);

    DD:=TEND REF(TEND,1) AND REF(TEND,1) REF(TEND,2);{趋势线向上转折}
    GG2:=CROSS(WLT1,TEND);{均线与趋势线向上金叉}
    HRY1:=LLV(LOW,55);
    HRY2:=HHV(HIGH,21);
    GG3:=CHRY33;{股价高于牛熊线,低于21日内最高价的80%}
    JJ1:=C
    TJ1:=GG1;{均线向上金叉}
    TJ2:=GG2 AND JJ1;
    TJ3:=GG1 AND GG3 ;
    XG:=TJ1 OR TJ3 ;
    XG2:=C1;
    XG1:=XG AND XG2 AND C HRY33 AND JLP;
    XG3:=XG AND C
    XG11:=XG1 OR XG3;

    V1:=CLOSE/REF(CLOSE,3) =1.1;
    V2:=BACKSET(V1,2);
    XG22:=V2 AND COUNT(V2,2)=1;

    W18:XG11 OR XG22;

    ======================================================

    {股道}

    FF:=EMA(CLOSE,3);
    MA15:=EMA(CLOSE,21);
    TTJ:=CROSS(FF,MA15);
    TYP:= (HIGH + LOW + CLOSE)/3;
    CCI1:=(TYP-MA(TYP,6))/(0.015*AVEDEV(TYP,5));
    差值1:=ABS(REF(CCI1,1)-CCI1),LINETHICK0;
    CCI2:=(TYP-MA(TYP,10))/(0.015*AVEDEV(TYP,10));
    差值2:=ABS(REF(CCI2,1)-CCI2),LINETHICK0;
    CCI3:=(TYP-MA(TYP,20))/(0.015*AVEDEV(TYP,20));
    差值3:=ABS(REF(CCI3,1)-CCI3),LINETHICK0;
    CCI4:=(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));
    差值4:=ABS(REF(CCI4,1)-CCI4),LINETHICK0;
    CCI5:=(TYP-MA(TYP,60))/(0.015*AVEDEV(TYP,60));
    差值5:=ABS(REF(CCI5,1)-CCI5),LINETHICK0;
    CCI:=CCI1+CCI2+CCI3+CCI4+CCI5;
    AAA:=(3*C+H+L+O)/6;
    VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)
    +4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
    VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;
    VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;
    VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;
    VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;
    VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
    短线:=VAR1;
    中线:=VAR6;

    下跌:=IF(VAR1=VAR6,VAR6, DRAWNULL);
    TJ1:=CCI1
    立桩量:=FILTER(TJ1,0);
    TJ2:=IF(BARSLAST(立桩量)=1 ,1,0);
    成立1:=TJ2=1;
    条件成立1:=FILTER(成立1,5);
    TJ011:= CCI1 -差值4 ;
    立桩量2:=FILTER(TJ011,0);
    TJ022:=IF(BARSLAST(立桩量2)=1 AND CLOSE REF(HIGH,1),1,
    IF(BARSLAST(立桩量2)=2 AND CLOSE REF(HIGH,2),1,
    IF(BARSLAST(立桩量2)=3 AND CLOSE REF(HIGH,3),1,0)));
    TJ:=IF(BARSLAST(立桩量2)=1 AND CLOSE REF(LOW,1),1,0);
    成立2:=TJ=1;
    条件成立2:=FILTER(成立2,5);


    TJ111:=(ABS(CCI1) CCI AND ABS( 差值1) ABS(差值5))
    OR (VOL=HHV(VOL,10) AND VOL 2*REF(VOL,1) AND CLOSE VAR1);
    立桩量3:=FILTER(TJ111,5);
    TJ3:=IF(BARSLAST(立桩量3)=1 AND CLOSE REF(LOW,1),1,IF(BARSLAST(立桩量3)=2 AND CLOSE REF(LOW,2),1,IF(BARSLAST(立桩量3)=3 AND CLOSE REF(LOW,3),1,0)));
    成立:=TJ3=1;
    条件成立:=FILTER(成立,5);

    上:=EMA(C,3),COLORBLUE,LINETHICK1;
    中:=EMA(C,5),COLORWHITE,LINETHICK1;
    下:=EMA(中,5),COLOR00FF00,LINETHICK1;
    QQ:= C
    MM:=上 REF(上,1) AND REF(上,1)
    V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
    V2:=(1-7/100)*(DMA(CLOSE,V1));
    V3:=(1+7/100)*(DMA(CLOSE,V1));
    V5:=MA((LOW+HIGH+CLOSE)/3,5);
    MA1:=MEMA(CLOSE,5);
    MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
    MA3:=IF(MA2 0,MA2,MA2);
    MA5:=MA(CLOSE,5),COLOR888899;
    MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;
    VAR01:=CLOSE=HHV(C,4) AND (REF(C,1) =REF(C,2) OR REF(C,1) =REF(C,3))
    OR REF(C,1)=HHV(C,4) AND CLOSE =REF(C,2) OR REF(C,2)=HHV(C,4) AND
    REF(C,3)=LLV(C,4) AND C =REF(C,1) OR REF(C,3)=HHV(C,4) AND
    C =REF(C,1) AND C =REF(C,2);
    {收盘价=4日内收盘价的最高值 AND 昨收 =2日前的收盘价}
    VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);
    {收盘价=4日内收盘价的最高值 AND 昨收=4日内收盘价的最低值}
    VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)
    REF(C,1)=LLV(C,4) AND C
    REF(C,1)=HHV(C,4) AND C
    C
    {收盘价=4日内收盘价的最低值 AND (昨收 2日前的收盘价}
    VAR04:=REF(C,1)=LLV(C,4) AND C =REF(C,2) OR REF(C,2)=LLV(C,4) AND
    REF(C,1) =REF(C,3) AND REF(C,2)=REF(C,1);
    {昨收=4日内收盘价的最低值 AND 收盘价 =2日前的收盘价}
    VAR05:=REF(C,1)=HHV(C,4) AND C
    REF(C,1) REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1) REF(C,2)) AND
    REF(C,2) =REF(C,4) AND C
    {昨收=4日内收盘价的最高值 AND 收盘价 2日前的收盘价}
    VAR06:=V5 REF(V5,1) AND REF(V5,1)
    {今日V5向上形成拐点}
    VAR07:=LOWHHV(V5,13) AND CLOSE REF(C,1) AND CLOSE OPEN;
    VAR08:=VAR07 AND COUNT(VAR06,2);
    VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6);
    VAR10:=EMA(MA(C,13),13);
    VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09 0,2) AND
    CROSS(VAR09,MA(VAR09,2)))=1,5);
    VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09 50,2) AND
    CROSS(MA(VAR09,2),VAR09))=1,1);
    VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;
    VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3);
    VAR15:=MA(C,18) =REF(MA(C,18),3) AND CROSS(C,MA(C,18));
    VAR16:=VAR08 AND NOT(REF(VAR08,1));
    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;
    金叉:=CROSS(J,D);
    死叉:=CROSS(D,J);
    买1:=(VAR14 OR VAR15) AND VAR11;
    买2:=(VAR14 OR VAR15) AND VAR04;
    买3:=(VAR14 OR VAR15) AND VAR02;
    买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);
    买5:=(金叉 AND VAR04) OR (金叉 AND VAR02) OR (金叉 AND VAR11);

    TTJ0:=VAR16;
    TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;
    XG0:=TTJ AND TTJ0;
    XG1:=TTJ AND TTJ1;
    TTJ3:=条件成立 AND 下跌!= VAR6;
    XG3:=TTJ0 AND TTJ3;
    XG11:=XG0 OR XG1 OR XG3;

    PL5:=ZIG(3,5);
    EN1:=ZIG(3,5) REF(ZIG(3,5),1) AND REF(ZIG(3,5),1) =REF(ZIG(3,5),2) AND REF(ZIG(3,5),2) =REF(ZIG(3,5),3);
    EX1:=ZIG(3,5)=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2) =REF(ZIG(3,5),3);
    PL10:=ZIG(3,10);
    EN2:=ZIG(3,10) REF(ZIG(3,10),1) AND REF(ZIG(3,10),1) =REF(ZIG(3,10),2) AND REF(ZIG(3,10),2) =REF(ZIG(3,10),3);
    EX2:=ZIG(3,10)=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2) =REF(ZIG(3,10),3);
    PL20:=ZIG(3,20);
    EN3:=ZIG(3,20) REF(ZIG(3,20),1) AND REF(ZIG(3,20),1) =REF(ZIG(3,20),2) AND REF(ZIG(3,20),2) =REF(ZIG(3,20),3);
    EX3:=ZIG(3,20)=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2) =REF(ZIG(3,20),3);
    PL40:=ZIG(3,40);
    走强1:=BARSLAST(PL5
    走弱1:=BARSLAST(PL5 REF(PL5,1));
    走强2:=BARSLAST(PL10
    走弱2:=BARSLAST(PL10 REF(PL10,1));
    走强3:=BARSLAST(PL20
    走弱3:=BARSLAST(PL20 REF(PL20,1));
    ZTJZ5:=IF(PL10 REF(PL10,1),COUNT(EN1,走强2),0);
    ZTJD5:=IF(PL10 REF(PL10,1),COUNT(EX1,走强2),0);
    DTJZ5:=IF(PL10
    DTJD5:=IF(PL10
    ZTJZ10:=IF(PL20 REF(PL20,1),COUNT(EN2,走强3),0);
    ZTJD10:=IF(PL20 REF(PL20,1),COUNT(EX2,走强3),0);
    DTJZ10:=IF(PL20
    DTJD10:=IF(PL20
    TJ11:=EN2 AND ZTJZ5=1;
    TJ22:=EN1 AND PL10 REF(PL10,1) AND ZTJZ5=2;
    TJ33:=EN2 AND DTJZ10=1;
    TJ44:=EN3 AND ZTJZ10=1;
    TJ55:=EN2 AND PL20 REF(PL20,1) AND ZTJZ10=2;
    XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;

    XG:=XG11 OR XG22;
    W18:EXIST(XG,1);

    ======================================================

    {三宝}

    P:=5;
    N:=9;
    N1:=6;
    M:=14;
    TYP := (HIGH + LOW + CLOSE)/3;
    CC1:=(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M)),COLORFF00FF;
    C1:=SMA(CC1,3,1);
    C2:=SMA(C1,3,1);
    C3:=3*C1-2*C2;
    CB1:=EMA(C3,5);
    CB2:=REF(CB1,1);

    LC := REF(CLOSE,1);
    RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
    RSI:=(RSI1-50)*5,LINETHICK2,COLORFFFFFF;
    R1:=SMA(RSI,3,1);
    D1:=SMA(R1,3,1);
    J1:=3*R1-2*D1;
    RR1:=EMA(J1,5);
    RR2:=REF(RR1,1);
    RR:=RR1
    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
    K:=SMA(RSV,3,1);
    K1:=(K-50)*5,COLOR00FF00;
    K2:=SMA(K1,3,1);
    D2:=SMA(K2,3,1);
    J2:=3*K2-2*D2;
    BB1:=EMA(J2,5);
    BB2:=REF(BB1,1);
    买入:=RR AND NOT(REF(RR,1)) AND (RR1 -100 AND BB1 -100) AND CB1 -100,LINETHICK0;
    XG:EXIST(买入,P);

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信选股指标B源码 加入收藏