最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 主动性买盘指标公式 主动性买卖盘指标

    正文概述    2024-05-04 04:31:56  

     

    通达信指标公式源码概况:


    指标类别: 通达信指标公式


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图


    主动性买盘指标公式


    AVPRICE:=(((2)*(OPEN) + (2)*(CLOSE) + (2)*(HIGH) + (2)*(LOW))/(8));

    INDEXAVP:=(((2)*(INDEXH) + (2)*(INDEXL) + (2)*(INDEXO) + (2)*(INDEXC))/(8));

    F:=(AVPRICE - REF(AVPRICE,1))/(REF(AVPRICE,1));

    F1:=(INDEXAVP - REF(INDEXAVP,1))/(REF(INDEXAVP,1));

    类比参数3:=(((SUM(F,10) + SUM(F1,10))/(10))*(1000));

    类比参数:=IF((类比参数3  0),类比参数3,0);

    类比参数2:=IF((类比参数3  0),(-类比参数3),0);

    STICKLINE(类比参数2,150,150 - 类比参数2,11,0),Color008000;

    STICKLINE(类比大盘参数,150,150 - 类比大盘参数,11,0),ColorFF00FF;

    AA:=AVPRICE;

    BB:=((VOL)*((AA)*(2) - HIGH - LOW))/(HIGH - LOW);

    CC:=IF((HIGH = LOW) AND (AA  REF(AA,1)),((-1))*(VOL),VOL);

    A:=IF((HIGH = LOW),CC,BB);

    B:=SUM(A,11);

    BBD:=(((B)/((CAPITAL)*(11)))*(10000));

    BB1:=IF((BBD  150) AND (BBD  (-150)),BBD,150);

    买方能量指标:=IF((BB1  0),BB1,0);

    STICKLINE((BB1  0),0,买方能量指标,5,0),coloryellow;

    STICKLINE((BB1  0),0,(-BB1),5,0),Color008000;

    A16:=(SUM((AVPRICE)*(VOL),16))/(SUM(VOL,16));

    A11:=(SUM((AVPRICE)*(VOL),11))/(SUM(VOL,11));

    A6:=(SUM((AVPRICE)*(VOL),6))/(SUM(VOL,6));

    A7:=(SUM((AVPRICE)*(VOL),7) - (AVPRICE)*(VOL))/(SUM(VOL,7) - VOL);

    A0:=((A11 - A16)/(AVPRICE))*(1000);

    A00:=IF((A0  50),50,IF((A0  (-50)),(-50),A0));

    A1:=((A6 - A11)/(AVPRICE))*(1000);

    AA11:=IF((A1  50),50,IF((A1  (-50)),(-50),A1));

    A2:=((((A6 - A7)/(A7))*(5))/(4))*(1000);

    A22:=IF((A2  50),50,IF((A2  (-50)),(-50),A2));

    刻度线3:=(A00 + AA11 + A22);

    线:=IF((刻度线3  0),刻度线3,0);

    兰刻度线:=IF((刻度线3  0),刻度线3,0);

    红柱线:趋势线,ColorFFFF00;

    兰柱线:(-兰刻度线),colorred;

    STICKLINE(趋势线,0,趋势线,3,0),colorred;

    STICKLINE(兰刻度线,0,(-兰刻度线),3,0),ColorFF0000;

    强弱分界:50,Color000080;

    Var1:=HHV(HIGH,3);

    Var2:=(IF(WINNER(1.1*CLOSE)0,0,WINNER(1.1*CLOSE))-IF(WINNER(0.9*CLOSE)0,0,WINNER(0.9*CLOSE)))*100;

    Var3:=IF(Var10,0,Var1);

    Var4:=IF(Var20,0,Var2);

    动向:WINNER(Var3),COLORFF00FF;

    主力震仓:WINNER(Var4),colorwhite;

    Var5:=COST(10);

    Var6:=(CLOSE-Var5)/Var5*100;

    Var7:=COUNT(Var6-2.05,3);

    主力蓄势大本营: IF(Var7=3,0.20,0),COLORFFCC66;

    风险区域: 1,colorred,POINTDOT;

    0.9,COLOR0099FF,POINTDOT;

    Var8:=(CLOSE-MA(CLOSE,10))/STD(CLOSE,35)*0.3;

    强弱动向: EMA(Var8,1),COLOR00FF00;

    VAR9:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);

    VAR10:=SMA(VAR9,3,1);

    var11:=SMA(VAR10,3,1),Color0000FF;

    var12:=SMA(var11,3,1),Color00FFFF;

    金:IF(CROSS(var11,var12) AND (var1140),0.9,0),Color0000FF,linethick2;

    STICKLINE(金,0,0.5,8,0),colorred;

    STICKLINE(金,0.45,0.6,2,0),colorred;


    image.png



    主动性盘指标


    VAR1:=1;

    VAR2:=((((2*CLOSE)+HIGH)+LOW) / 4);

    低位跟进:20;

    高位死叉小心:90,COLORFFFF00;

    VAR4:=LLV(LOW,5);

    VAR5:=HHV(HIGH,4);

    C1:(EMA((((VAR2-VAR4)/(VAR5-VAR4))*100),4)*VAR1),COLORFF00FF;

    C2:(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*VAR1),COLORFFFFFF;

    条件:=CROSS(C1,C2) AND C140;

    条件0:=CROSS(C2,C1) AND C190;

    DRAWICON(条件,20,5);

    DRAWICON(条件0,80,3);

    主力持仓:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),colorff00ff,linethick2;

    指数趋势:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;

    强弱分界: 80,coloryellow;

    主力集中度:WINNER(C)*100 ,colorred,linethick2;

    散筹筹码集中度:(WINNER(C*1.1)-WINNER(C*0.9))*100 ,colorgreen,linethick2

    SHORT=26;LONG=12;M=9;P1=19;P2=120;K= -40;G=-26;

    DIF:=((EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)))*-1;

    DEA:=EMA(DIF,M),COLORFF00FF;

    MACD:=2*(DIF-DEA);

    HH:=MA(CLOSE,10);

    GG:=MA(CLOSE,12);

    上:=EMA((MA(HIGH,3) * 1.05),30);

    下:=EMA((MA(LOW,3) * 0.96),30);

    决战:STICKLINE((((CROSS(DIF,DEA) AND ((下 - REF(下,1))  0)) AND (MACD = REF(MACD,1))) AND (DIF  0)),DIF,0.4,3,0),color0000FF;

    DRAWICON((((CROSS(DIF,DEA) AND ((下 - REF(下,1))  0)) AND (MACD = REF(MACD,1))) AND (DIF  0)),0.4,0);

    DRAWTEXT((((CROSS(DIF,DEA) AND ((下 - REF(下,1))  0)) AND (MACD = REF(MACD,1))) AND (DIF = 0)),0.4, #39;DIFF金叉 #39;),color0000FF;

    STICKLINE(FILTER(((((MACD = REF(MACD,5)) AND ((下 - REF(下,1))  0)) AND (MACD = 0)) AND ((GG - REF(GG,1)) = 0)),3),0,0.5,3,0),color00FF00;

    DRAWICON(FILTER(((((MACD = REF(MACD,5)) AND ((下 - REF(下,1))  0)) AND (MACD = 0)) AND ((GG - REF(GG,1)) = 0)),3),0.5,0);

    DRAWTEXT(FILTER(((((MACD = REF(MACD,5)) AND ((下 - REF(下,1))  0)) AND (MACD = 0)) AND ((GG - REF(GG,1)) = 0)),3),0.5, #39;绝佳买入 #39;),color00FF00;

    VCF1:=LLV(LOW,5);

    VCF2:=HHV(HIGH,5);

    VCF3:=EMA((((CLOSE - VCF1) / (VCF2 - VCF1)) * 100),4);

    VCF4:=EMA(((0.667 * REF(VCF3,1)) + (0.333 * VCF3)),2);

    VCF5:=((HIGH + LOW) / 2);

    VCF6:=DMA(VCF5,(VOL / SUM(VOL,5)));

    VCF7:=DMA(VCF5,(VOL / SUM(VOL,13)));

    VCF8:=DMA(VCF5,(VOL / SUM(VOL,34)));

    VCF9:=DMA(VCF5,(VOL / SUM(VOL,75)));

    VCFA:=EMA(WINNER((0.9 * CLOSE)),5);

    VCFB:=(1 - EMA(WINNER((1.2 * CLOSE)),5));

    VCFC:=EMA(WINNER(CLOSE),5);

    VCFD:=((100 * (CLOSE - VCF6)) / VCF6);

    VCFE:=((100 * (CLOSE - VCF7)) / VCF7);

    VCFF:=((100 * (MIN(CLOSE,OPEN) - VCF8)) / VCF8);

    VCF10:=BARSLAST(((VCF8  VCF9) AND (REF(VCF8,1) = REF(VCF9,1))));

    VCF11:=((((COUNT(((WINNER(CLOSE)  0.11) AND (EMA(WINNER(CLOSE),5)  0.15)),2)  0) OR (((1 - WINNER((1.2 * CLOSE))) = 0.8) AND (WINNER(CLOSE)  0.05))) AND (COUNT((VCFE  (0 - 16)),2)  0)) AND (COUNT((VCFF  (0 - 20)),2)  0));

    VCF12:=((((COUNT((VCFD  (0 - 10)),2)  0) AND (COUNT((VCFE  (0 - 15)),2)  0)) AND (COUNT((VCFF  (0 - 15)),2)  0)) AND (COUNT((VCFA  0.8),VCF10) = 0));

    VCF13:=(((COUNT((VCF11 OR VCF12),2)  0) AND (VCF3  REF(VCF3,1))) AND (((1 - WINNER((1.15 * CLOSE))) * 100)  80));

    出击1:=IF((VCF13 AND (COUNT(VCF13,3) = 1)),0.1,0);

    出击:IF((VCF13 AND (COUNT(VCF13,3) = 1)),0.37,0),LINETHICK3,color0000FF;

    DRAWICON((黑马出击  0),0.37,1);

    DRAWTEXT((黑马出击  0),0.35, #39;★黑马 #39;),colorFFFFFF;

    DRAWTEXT((黑马出击  0),0.35, #39;出击 #39;),color00FF00;

    VAR26:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);

    VAR27:=((EMA(CLOSE,12) - EMA(CLOSE,26)) * 100);

    VAR28:=EMA(VAR27,9);

    VAR29:=(2 * (VAR27 - VAR28));

    STICKLINE(((VAR27  (0 - 50)) AND (VAR26  7)),0,(0 - 0.1),5,0),color0000FF;

    DRAWTEXT((((VAR27  (0 - 50)) AND (VAR26  7)) AND (VAR27  VAR28)),(0 - 0.09), #39;底 #39;),colorFFFFFF;

    DRAWTEXT((((VAR27  (0 - 50)) AND (VAR26  7)) AND (VAR27 = VAR28)),(0 - 0.1), #39;追 #39;),colorFFFFFF;

    VAR1:=1;

    VAR2:=MA(CLOSE,18);

    VAR3:=(((CLOSE - VAR2) / VAR2) * 100);

    VAR4:=MA(VAR3,1);

    升跌:=(VAR4 * VAR1);

    VAR5:=BARSLAST((CROSS((0 - 10),VAR4) = 1));

    VAR6:=BARSLAST((CROSS(VAR4,10) = 1));

    VAR7:=((VAR4  (0 - 10)) AND (VAR5 = 5));

    VAR8:=((VAR4  10) AND (VAR6 = 5));

    {C1:(0.01 * (IF(((VAR4  (0 - 10)) AND (VAR5 = 5)),VAR4,0) * VAR1)),LINETHICK1,color0000FF;

    C2:=C1;}

    C3:=(IF(((VAR4  10) AND (VAR6 = 5)),VAR4,0) * VAR1);

    C4:=C3;

    D1:=((((升跌  REF(升跌,1)) AND VAR7) * 0.2) * VAR1);

    中期底部:=LLV(CLOSE,30);

    D:(FILTER(((((((升跌  REF(升跌,1)) AND (LOW = 中期底部)) AND (CLOSE  中期底部)) AND VAR7) * 0.5) * VAR1),3) * 0.5),LINETHICK2,color0000FF;

    DRAWTEXT((D = 0.25),D, #39;★铁底 #39;),color00FFFF;

    STICKLINE(((CROSS(MACD,DIF) AND (MACD = (0 - 0.05))) AND (MACD = 0.02)),MACD,0.23,0,0),LINETHICK2,color00FFFF;

    DRAWTEXT(((CROSS(MACD,DIF) AND (MACD = (0 - 0.05))) AND (MACD = 0.02)),0.23, #39;^MACD #39;),color0000FF;

    DRAWTEXT(((CROSS(MACD,DIF) AND (MACD = (0 - 0.05))) AND (MACD = 0.02)),0.23, #39;金叉 #39;),LINETHICK4,colorFFFFFF;

    DRAWICON(((CROSS(MACD,DIF) AND (MACD = (0 - 0.05))) AND (MACD = 0.02)),0.23,1);

    DIFF2:=(EMA(CLOSE,2) - EMA(OPEN,5));

    操盘手:=DIFF2;

    (0.4 * ((CROSS(操盘手,MACD) AND (MACD = (0 - 0.11))) AND (LOW = 下))),LINETHICK2,colorFFFFFF;

    DRAWTEXT(((CROSS(操盘手,MACD) AND (LOW = 下)) AND (MACD = (0 - 0.11))),0.6, #39;5% #39;),colorB7D16F;

    MA1:=MA(CLOSE,5);

    MA2:=MA(CLOSE,10);

    BB:(0.7 * ((((((CROSS(DIF,DEA) AND (CLOSE  上)) AND ((下 - REF(下,1))  0)) AND CROSS(MACD,0)) AND (MACD = 0)) AND (DIF  0)) AND (((HH - REF(HH,1))  0) AND (VOL  REF(VOL,1)))));

    DRAWTEXT((((BB = 0.7) AND (CLOSE  上)) AND ((下 - REF(下,1))  0)),0.7, #39;。量价配合完美 #39;),color00FF00;

    DRAWTEXT((((BB = 0.7) AND (CLOSE  上)) AND ((下 - REF(下,1))  0)),0.7, #39;。(追) #39;),color0000FF;


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 主动性买盘指标公式 主动性买卖盘指标 加入收藏