最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 主图中的两条线之间颜色填充

    正文概述    2024-04-08 00:53:01  
    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,COLORRED;
    中线:VAR6,COLORBLUE;
    下跌:IF(VAR1=VAR6,VAR6, DRAWNULL),COLORGREEN;

    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;

    VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12) 0 AND EMA(CLOSE,12)/LOW 1.15,4),LOW,'☆'),COLORFF00FF;

    VARA:=((AMOUNT)/(VOL))/(100);
    VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
    VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
    VARD:=DMA(VARB,(VOL)/(VARC));
    VARE:=((CLOSE-VARD)/(VARD))*(100);
    VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
    VARJ:=MA(VARE,20)+STD(VARE,20);
    BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
    AA:=SMA(VARF,3,1);
    SS:=(REF(BIAS18,1) =5) AND CROSS(VARJ,VARE) AND (AA

    V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
    V2:=EMA(V1,300);
    V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
    操盘线:=SMA(V3,2,1),LINETHICK3;
    V5:=SMA(操盘线,2,1);

    STICKLINE(操盘线 REF(操盘线,1) AND REF(操盘线,1) REF(操盘线,2) AND 操盘线 23 AND V5 REF(V5,1) AND AAF=BBF AND MA18 REF(MA18,1),C,O,2,0),COLORMAGENTA,LINETHICK2;{底位红色}
    STICKLINE(操盘线 REF(操盘线,1) AND CROSS(操盘线,V5) AND V5 50 AND (AAF=BBF OR AAF BBF) AND MA18 REF(MA18,1),C,O,2,0),COLORMAGENTA,LINETHICK2;{底位红色}
    STICKLINE(操盘线 REF(操盘线,1) AND CROSS(操盘线,V5) AND V5 50 AND MA18 REF(MA18,1),C,O,2,0),COLORMAGENTA,LINETHICK2;{底位红色};


    DRAWICON(CROSS(操盘线,V5) AND MA6 REF(MA6,1),L,5),NODRAW;
    DRAWICON(操盘线 REF(操盘线,1) AND REF(操盘线,1) REF(操盘线,2) AND MA30 REF(MA30,1) AND REF(操盘线,1) 40 AND CROSS(V5,操盘线),H*1.01,4),NODRAW;
    STICKLINE((REF(BIAS18,1) =5) AND CROSS(VARJ,VARE) AND (AA SS) AND CROSS(84,RSI) AND CROSS(76,VAR28),C,O,2,0),COLOR00FF00,LINETHICK2;{底位红色};

    RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
    K24:=SMA(RSV24,3,1);
    D24:=SMA(K24,3,1);
    J24:=3*K24-2*D24;


    A0:=(L+H+C*2)/4;
    A1:EMA(A0,14)COLORBLUE,NODRAW;
    A2:=EMA(A0,25)COLORLIBLUE,NODRAW;
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
    A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;


    LB:=REF(CLOSE,1);
    RSI5:=((SMA(MAX((CLOSE - LB),0),5,1) / SMA(ABS((CLOSE - LB)),5,1)) * 100);
    TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
    HD:=(HIGH - REF(HIGH,1));
    LD:=(REF(LOW,1) - LOW);
    DMP:=SUM(IF(((HD 0) AND (HD LD)),HD,0),10);
    DMM:=SUM(IF(((LD 0) AND (LD HD)),LD,0),10);
    PDI:=((DMP * 100) / TR1);
    MDI:=((DMM * 100) / TR1);
    ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
    AV:=(RSI5 + ADX);
    DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
    WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
    NEWVOL:=(RSI5 - WR10);




    公式模块:


    MA6:MA(C,6),COLOR0000FF,NODRAW;
    MA18:MA(C,18),COLOR0096FF,NODRAW;
    MA30:MA(C,30),COLOR00FF99,NODRAW;
    MA60:MA(C,60),COLORFF00FF,NODRAW;
    AAF:=LLV(LOW,34),LINETHICK1,COLORFFFFCC;
    BBF:=MA(AAF,4),LINETHICK1,COLORYELLOW;
    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;
    W短线:=VAR1,COLORRED;
    W中线:=VAR6,COLORBLUE;
    DRAWBAND(W短线,RGB(255,0,0),W中线,RGB(0,200,0));
    短线:VAR1,COLORRED;
    中线:VAR6,COLORBLUE;
    下跌:IF(VAR1=VAR6,VAR6, DRAWNULL),COLORGREEN;

    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;

    VAR28:=SMA(MAX(CLOSE-LC,0),5.5,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    DRAWTEXT(FILTER(EMA(CLOSE,60)-EMA(CLOSE,12) 0 AND EMA(CLOSE,12)/LOW 1.15,4),LOW,'☆'),COLORFF00FF;

    VARA:=((AMOUNT)/(VOL))/(100);
    VARB:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);
    VARC:=((SUM(AMOUNT,7))/(VARA))/(100);
    VARD:=DMA(VARB,(VOL)/(VARC));
    VARE:=((CLOSE-VARD)/(VARD))*(100);
    VARF:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);
    VARJ:=MA(VARE,20)+STD(VARE,20);
    BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);
    AA:=SMA(VARF,3,1);
    SS:=(REF(BIAS18,1) =5) AND CROSS(VARJ,VARE) AND (AA

    V1:=EMA(CLOSE,60)-EMA(CLOSE,300);
    V2:=EMA(V1,300);
    V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
    操盘线:=SMA(V3,2,1),LINETHICK3;
    V5:=SMA(操盘线,2,1);

    STICKLINE(操盘线 REF(操盘线,1) AND REF(操盘线,1) REF(操盘线,2) AND 操盘线 23 AND V5 REF(V5,1) AND AAF=BBF AND MA18 REF(MA18,1),C,O,2,0),COLORMAGENTA,LINETHICK2;{底位红色}
    STICKLINE(操盘线 REF(操盘线,1) AND CROSS(操盘线,V5) AND V5 50 AND (AAF=BBF OR AAF BBF) AND MA18 REF(MA18,1),C,O,2,0),COLORMAGENTA,LINETHICK2;{底位红色}
    STICKLINE(操盘线 REF(操盘线,1) AND CROSS(操盘线,V5) AND V5 50 AND MA18 REF(MA18,1),C,O,2,0),COLORMAGENTA,LINETHICK2;{底位红色};


    DRAWICON(CROSS(操盘线,V5) AND MA6 REF(MA6,1),L,5),NODRAW;
    DRAWICON(操盘线 REF(操盘线,1) AND REF(操盘线,1) REF(操盘线,2) AND MA30 REF(MA30,1) AND REF(操盘线,1) 40 AND CROSS(V5,操盘线),H*1.01,4),NODRAW;
    STICKLINE((REF(BIAS18,1) =5) AND CROSS(VARJ,VARE) AND (AA SS) AND CROSS(84,RSI) AND CROSS(76,VAR28),C,O,2,0),COLOR00FF00,LINETHICK2;{底位红色};

    RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
    K:=SMA(RSV,3,1);
    D:=SMA(K,3,1);
    J:=3*K-2*D;
    RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
    K24:=SMA(RSV24,3,1);
    D24:=SMA(K24,3,1);
    J24:=3*K24-2*D24;


    A0:=(L+H+C*2)/4;
    A1:EMA(A0,14)COLORBLUE,NODRAW;
    A2:=EMA(A0,25)COLORLIBLUE,NODRAW;
    A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
    A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;


    LB:=REF(CLOSE,1);
    RSI5:=((SMA(MAX((CLOSE - LB),0),5,1) / SMA(ABS((CLOSE - LB)),5,1)) * 100);
    TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
    HD:=(HIGH - REF(HIGH,1));
    LD:=(REF(LOW,1) - LOW);
    DMP:=SUM(IF(((HD 0) AND (HD LD)),HD,0),10);
    DMM:=SUM(IF(((LD 0) AND (LD HD)),LD,0),10);
    PDI:=((DMP * 100) / TR1);
    MDI:=((DMM * 100) / TR1);
    ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
    AV:=(RSI5 + ADX);
    DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
    WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
    NEWVOL:=(RSI5 - WR10);



    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 主图中的两条线之间颜色填充 加入收藏