最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 主力状态副图指标公式(主力博弈副图指标公式)

    正文概述    2024-05-04 03:57:13  

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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、状态副图指标公式

     

    X_1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100; 

    短多:SMA(X_1,3,1),COLORRED; 

    短空:SMA(短多,3,1),COLORYELLOW; 

    X_2:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; 

    中多:SMA(X_2,5,1),COLORMAGENTA; 

    中空:SMA(中多,10,1),COLORGREEN; 

    K线公式指标:DRAWNULL,COLORRED; 

    多方风险线:85,COLORBLUE; 

    空方风险线:18,COLORWHITE; 

    STICKLINE(短多 短空,短多,短空,1,0),COLORRED; 

    STICKLINE(短多 =短空,短多,短空,1,0),COLORYELLOW; 

    STICKLINE(中多 中空,中多,中空,1,0),COLORMAGENTA; 

    STICKLINE(中多 =中空,中多,中空,1,0),COLORGREEN; 

    X_3:=REF(LOW,1); 

    X_4:=SMA(ABS(LOW-X_3),3,1)/SMA(MAX(LOW-X_3,0),3,1)*100; 

    X_5:=EMA(IF(CLOSE*1.2,X_4*10,X_4/10),3); 

    X_6:=LLV(LOW,38); 

    X_7:=HHV(X_5,38); 

    X_8:=IF(LLV(LOW,90),1,0); 

    X_9:=EMA(IF(LOW =X_6,(X_5+X_7*2)/2,0),3)/618*X_8; 

    X_10:=X_9  

    X_11:=IF(COUNT(X_10,2)=2,(-20),0); 

    X_12:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); 

    DRAWTEXT_FIX(C O,0.01,0.9,0, 

    X_13:=SMA(ABS(LOW-X_12),13,1)/SMA(MAX(LOW-X_12,0),10,1); 

    X_14:=EMA(X_13,10); 

    X_15:=LLV(LOW,33); 

    X_16:=EMA(IF(LOW =X_15,X_14,0),3); 

    X_17:=IF(X_16 REF(X_16,1),X_16,0)*1.1; 

    STICKLINE(X_16 REF(X_16,1),0,X_16,4,1),COLORRED; 

    X_18:=IF(X_16 REF(X_16,1),X_16,0); 

    低买:IF(CROSS(X_18,X_17)ANDX_11=(-20),100,0),STICK,COLORFF9150,LINETHICK3; 

    VAR1:=REF(LOW,1); 

    VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100; 

    VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3); 

    VAR4:=LLV(LOW,38); 

    VAR5:=HHV(VAR3,38); 

    VAR6:=IF(LLV(LOW,90),1,0); 

    K线公式指标:DRAWNULL,COLORRED; 

    VAR7:=EMA(IF(LOW =VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6; 

    VAR8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100; 

    VAR9:=SMA(VAR8,13,8); 

    底线:0,COLOR00FFFF; 

    主力吸货:VAR7,COLOR0000FF; 

    吸筹1:STICKLINE(VAR7,0,VAR7,6,0),COLOR0000FF; 

    吸筹2:STICKLINE(VAR7,0,VAR7,5,0),COLOR6600FF; 

    吸筹3:STICKLINE(VAR7,0,VAR7,4,0),COLORBB00FF; 

    吸筹4:STICKLINE(VAR7,0,VAR7,3,0),COLORFF00FF; 

    吸筹5:STICKLINE(VAR7,0,VAR7,2,0),COLORFF33FF; 

    吸筹6:STICKLINE(VAR7,0,VAR7,1,0),COLORFF66FF; 

    吸筹7:STICKLINE(VAR7,0,VAR7,0,0),COLORFF99FF; 

    风险:CEILING(SMA(VAR9,13,8)),LINETHICK2,COLORGREEN; 

    涨跌:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2* 

    SMA(SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3,1),5),LINETHICK2,COLORRED; 

    MA30:=MA(CLOSE,30); 

    BBIBOLL:=MA(CLOSE,22); 

    UB:=BBIBOLL+2*STD(CLOSE,20); 

    LB:=BBIBOLL-2*STD(CLOSE,20); 

    DIF:EMA(CLOSE,12)-EMA(CLOSE,26); 

    DEA:EMA(DIF,9); 

    :(DIF-DEA)*2,COLORSTICK; 

    IF(CROSS(DIF,DEA) MA30 =REF(MA30,1),2,0),COLORWHITE;N1N2NMP:= 

    1109AND1105AND8012095AND243AND1509; 

    MTM:=C-REF(C,1); 

    ZLGJ:100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1),COLORYELL 

    OW; 

    MAZL:MA(ZLGJ,N2),LINETHICK2,COLORGREEN; 

    IF(MAZL REF(MAZL,1),MAZL,DRAWNULL),LINETHICK2,COLORRED; 

    IF(MAZL REF(MAZL,1),MAZL,DRAWNULL),LINETHICK2,COLORBLUE; 

    IF(ZLGJ =MA(ZLGJ,1)AND 

    ZLGJ MAZL,ZLGJ,DRAWNULL),LINETHICK2,COLORCYAN; 

    IF(ZLGJ REF(ZLGJ,1),ZLGJ,DRAWNULL),LINETHICK1,COLORGREEN; 

    A:-49,COLORYELLOW; 

    W:=0; 

    B:49,COLORWHITE;


    image.png



    二、主力博弈副图指标公式


     

    万:/10000,LINETHICK0; 

    AA:=IF(CURRBARSCOUNT=1 

    PERIOD=5,VOL*240/FROMOPEN,DRAWNULL); 

    预测:AA/10000; 

    BB:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN)); 

    主动买:=IF(CLOSE OPEN,BB*(HIGH￾LOW),IF(CLOSE OPEN,BB*((HIGH-OPEN)+(CLOSE￾LOW)),VOL/2)); 

    主买:主动买/10000,COLORRED; 

    主动卖:=IF(CLOSE OPEN,0-BB*((HIGH-CLOSE)+(OPEN￾LOW)),IF(CLOSE OPEN,0-BB*(HIGH-LOW),0-VOL/2)); 

    主卖:-主动卖/10000,COLORLIBLUE; 

    主力净买:(主动买+主动卖)/10000,COLORmaGENTA; 

    持币:IF(SAR(10,2,20) =H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,CO 

    LORBLUE; 

    持股:IF(SAR(10,2,20) =L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COL 

    ORRED; 

    上涨家:INDEXADV,COLOR0080FF,NODRAW; 

    下跌家:INDEXDEC,COLORGREEN,NODRAW; 

    :DYNAINFO(3)*1.1,COLORRED,NODRAW; 

    跌停:DYNAINFO(3)*0.9,COLORGREEN,NODRAW; 

    stICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE; 

    STICKLINE(CLOSE REF(CLOSE,1),0,VOL,3.5,0),COLORRED; 

    STICKLINE(CLOSE REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN; 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,3.5, 

    0),COLOR00FFFF; 

    AND 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,3.2, 

    0),COLOR007777; 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,2.7, 

    0),COLOR009999; 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,2.1, 

    0),COLOR00BBBB; 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,1.5, 

    0),COLOR00ddeE; 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,0.9, 

    0),COLOR66FFFF; 

    STICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,AA,1,0.2, 

    0),COLORFFFFFF; 

    STICKLINE(主动买 =0,VOL,-主动卖,3.2,0),COLOR000033; 

    STICKLINE(主动买 =0,VOL,-主动卖,2.7,0),COLOR000066; 

    STICKLINE(主动买 =0,VOL,-主动卖,2.1,0),COLOR000099; 

    STICKLINE(主动买 =0,VOL,-主动卖,1.5,0),COLOR0000CC; 

    STICKLINE(主动买 =0,VOL,-主动卖,0.9,0),COLOR0000FF; 

    STICKLINE(主动买 =0,VOL,-主动卖,0.2,0),COLORCC66FF; 

    STICKLINE(主动卖 =0,0,-主动卖,3.2,0),COLOR990000; 

    STICKLINE(主动卖 =0,0,-主动卖,2.7,0),COLORCC0000; 

    STICKLINE(主动卖 =0,0,-主动卖,2.1,0),COLORFF4400; 

    STICKLINE(主动卖 =0,0,-主动卖,1.5,0),COLORFF8800; 

    STICKLINE(主动卖 =0,0,-主动卖,0.9,0),COLORFFCC00; 

    STICKLINE(主动卖 =0,0,-主动卖,0.2,0),COLORCYAN; 

    AA01:=VOL REF(V,1)*1.9; 

    STICKLINE(AA01,0,V,0.5,0),COLORYELLOW; 

    五日:=MA(V,5),COLOR40FF00,LINETHICK2; 

    三五日:=MA(V,35),COLORYELLOW; 

    一三五日:=MA(V,135),COLOR0080FF; 

    NOTEXT强:=IF(五日 MA(五日,2),五 

    日,DRAWNULL),COLORRED,LINETHICK2; 

    N:=IF(TOTALBARSCOUNT =120,120,TOTALBARSCOUNT); 

    HH0:=HHV(H,N); 

    LL0:=LLV(L,N); 

    MM0:=CONST((HH0+LL0)*0.5); 

    S01:=CONST(IF(REF(C,N-15) MM0,1.00,-0.08)); 

    S02:=CONST(IF(REF(C,N-15) MM0,-1,1)); 

    S1:=IF(FINDSTR(EXTERNSTR(0,13),  

    ),S01+(0.08*S02),S01),NODRAW; 

    S2:=IF(FINDSTR(EXTERNSTR(0,12),  

    ),S1+(0.08*S02),S1),NODRAW; 

    S3:=IF(FINDSTR(EXTERNSTR(0,8),  

    ),S2+(0.08*S02),S2),NODRAW; 

    S4:=IF(FINDSTR(EXTERNSTR(0,10), , ),S3+(0.08*S02),S3); 

    S5:=IF(FINDSTR(EXTERNSTR(0,15), - ),S4+(0.08*S02),S4); 

    S6:=IF(FINDSTR(EXTERNSTR(0,1), , ),S5+(0.08*S02),S5); 

    S7:=IF(FINDSTR(EXTERNSTR(0,14), - ),S6+(0.08*S02),S6); 

    S8:=IF(FINDSTR(EXTERNSTR(0,11), - ),S7+(0.08*S02),S7); 

    S9:=IF(FINDSTR(EXTERNSTR(0,9), - ),S8+(0.08*S02),S8); 

    K:=IF(S1 =0,0.05,IF(S1 =0,-0.05,0)); 

    量_价:=1; 

    CTKG:=1; 

    W:=量_价; 

    EPSL:=0.0001; 

    ZZ:=(C+H+L)/3; 

    TJA:=ZZ =MAX(C,O)ANDCTKG=1; 

    TJB:=ZZ =MIN(C,O)ANDCTKG=1; 

    ZF:=IF(TJA,1,IF(TJB,-1,0)); 

    TJ0:=TJAORTJB; 

    TJ1:=H=LANDC REF(C,1); 

    TJ2:=H=LANDC REF(C,1); 

    TJ3:=H=LANDC=REF(C,1); 

    量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE; 

    EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0)); 

    ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE)); 

    JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL; 

    差:=JGL_DX*量_价,COLOR13AADD,NODRAW; 

    DX%:JGL_DX*100,NODRAW,COLORGREEN,LINETHICK0; 

    DX 

    买盘:=量_价*(1+JGL_DX)/2,COLOR1133AA,NODRAW; 

    卖盘:=量_价*(1-JGL_DX)/2,COLORFFFF00,NODRAW; 

    VAR11:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 

    ddx:=买盘-卖盘; 

    MADDX:=MA(DDX,5)*15; 

    DDX1:SMA(MADDX,3,1),COLORRED,LINETHICK1; 

    DDX2:SMA(DDX1,3,1),COLORGREEN,LINETHICK1; 

    DDX3:SMA(DDX2,3,1),COLORYELLOW,LINETHICK1; 

    连红:BArslASTCOUNT(DX% 0),COLORRED,NODRAW,LINETHICK0; 

    买线:=EMA(C,2); 

    卖线:=EMA(SLOPE(C,21)*20+C,42); 

    STICKLINE(买线 =卖线,-50+REFDATE(HHV(H,0),DATE)/5,-50+REFDATE(LLV(L,0),DATE)/5,6,0),COLORLIMAG 

    ENTA; 

    STICKLINE(买线 卖线,-50+REFDATE(HHV(H,0),DATE)/5,-50+REFDATE(LLV(L,0),DATE)/5,6,0),COLORLIBLU 

    E; 

    RSV:=((((HHV(HIGH,10)-CLOSE)/(HHV(HIGH,10)-LLV(LOW,10)))*200)-125); 

    :=SMA(RSV,5,1)+15{,COLORGREEN,LINETHICK1}; 

    RSV1:=((((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*200)-105); 

    主力:SMA(RSV1,5,1)+15,COLORLIRED,LINETHICK1; 

    买进:IF(主力 REF(主力,1),主力,DRAWNULL),COLORMAGENTA,LINETHICK3; 

    {持币:IF(散户 REF(散户,1),散户,DRAWNULL),COLORGREEN,LINETHICK3;} 

    持币:IF(主力 REF(主力,1),主力,DRAWNULL),COLORGREEN,LINETHICK3; 

    {P(10,1,100),A(5,1,100);} 

    SVOL:=INTPART(SUM(V,0)/CAPITAL); 

    TJ0:=SVOL REF(SVOL,1)ORBARSSINCE(CLOSE)=0; 

    S1:=BARSLAST(TJ0)+1; 

    TJ2:=S1 REF(S1,1); 

    S2:=IF(TJ2,REF(S1,1)+1,S1); 

    S3:=SUM(TJ2,0); 

    ZK1:= KD.K#WEEK (9,3,3); 

    ZD2:= KD.D#WEEK (9,3,3); 

    Z,1:= MACD.DIF#WEEK (12,26,9); 

    ZA2:= MACD.DEA#WEEK (12,26,9); 

    换手:=V/CAPITAL*100,LINETHICK0; 

    JCD:=FILTER(CROSS(ZK1,ZD2)ANDREF(ZD2,1) 30,13),NODRAW; 

    取点:=BARSLAST(JCD); 

    吸筹区:=IF(取点 0AND取点 61,取点,0); 

    ZS1:=吸筹区; 

    ZS2:=吸筹区+1; 

    ZS3:=换手/5; 

    ZSA:=IF(ZS1 0,SUM((ZS3),吸筹区+1),0),NODRAW; 

    主力%:ZSA,NODRAW; 

    建仓天数:ZS1,NODRAW; 

    阶段总额(万):=SUM(AMOUNT/10000,S2)*100,NODRAW; 

    阶段总量(手):=SUM(V,S2)*100,NODRAW; 

    阶段(元):(阶段总额(万)/(阶段总量(手)/100)),NODRAW; 

    换手冷清:STICKLINE(换手 3,-80,(换手+5-40)*2,0.0,0),COLORCYAN; 

    青换手冷清:(换手 3,-80,(换手-6)*4,0.0,0),COLORCYAN; 

    换手活跃:STICKLINE(换手 =3AND换手 7,-80,(换手+5-40)*2,0.0,0),COLORYELLOW; 

    黄换手活跃:(换手 =3AND换手 7,-80,(换手-6)*4,0.0,0),COLORYELLOW; 

    换手热烈:STICKLINE(换手 =7,-80,(换手+5-40)*2,0.5,0),COLORRED; 

    红换手热烈:(换手 =7,-80,(换手-6)*4,0.5,0),COLORRED; 

    STICKLINE(JCD,(0-6)*4,6*6,0.5,0),COLORGREEN; 

    DRAWTEXT(建仓天数,40, 建仓 ),COLORGREEN; 

    LL:=REF(CLOSE,1); 

    MM:=SMA(MAX(CLOSE-LL,0),6,1)/SMA(ABS(CLOSE-LL),6,1)*100; 

    出:IF(CROSS(80,MM),90,100),COLORCYAN; 

    DRAWTEXT(CROSS(80,MM),MM, 卖 ),COLORWHITE; 

    DRAWTEXT(CROSS(主力,散户),0, 买 ),COLORRED; 

    AA:=(WINNER((CLOSE+((CLOSE*15)/100)))*100); 

    BB:=(WINNER((CLOSE+((CLOSE*0)/100)))*100); 

    CC:=(AA-BB); 

    DD:=((WINNER((CLOSE-((CLOSE*0.1)/100)))-WINNER((CLOSE-((CLOSE*15)/ 

    100))))*100); 

    EE:=(((CC 3)AND(DD 0.5))AND(OPEN LOW)); 

    A1:=DYNAINFO(6); 

    A22:=IF((LOW A1),0,IF((HIGH A1),1,(((A1-LOW)+0.01)/((HIGH-LOW)+ 

    0.01)))); 

    A3:=(VOL/WINNER(LOW)); 

    A4:=REF(HHV(CLOSE,120),1); 

    A5:=REF(LLV(CLOSE,120),1); 

    A6:=((100*(CLOSE-A5))/(A4-A5)); 

    A7:=((A22 0)OR(A22=1)); 

    A8:=((A7AND((A3/REF(A3,3)) =3))AND(A6 80)); 

    A9:=(((REF(A8,1)ORREF(A8,2))ORREF(A8,3))ORREF(A8,4)); 

    A10:=(A8ANDA9); 

    A11:=IF(FILTER(A8,3),5,0); 

    A12:=IF((FILTER(A10,3)OREE),10,0); 

    进场:STICKLINE(A11,-48,-33,2.5,0),COLORFF7700; 

    加仓:STICKLINE(A12,-48,-20,2.5,0),COLORFF00FF; 

    STICKLINE(A11,-48,-33,2.2,0),COLORFF7700; 

    STICKLINE(A11,-48,-33,1.7,0),COLORFFDD00; 

    STICKLINE(A11,-48,-33,0.7,0),COLORFFEE00; 

    STICKLINE(A12,-48,-20,2.2,0),COLOR102066; 

    STICKLINE(A12,-48,-20,1.7,0),COLOR1020AA; 

    STICKLINE(A12,-48,-20,0.7,0),COLOR1020FF; 

    DRAWTEXT(进场=5,-33, 进场 ),COLORFFFF00; 

    DRAWTEXT(加仓=10,-20, 加仓 ),COLORFFFFFF; 

    VAR2L:=REF(LOW,1); 

    VAR3L:=SMA(ABS(LOW-VAR2L),3,1)/SMA(MAX(LOW-VAR2L,0),3,1)*110; 

    VAR4L:=EMA(IF(CLOSE*1.3,VAR3L*10,VAR3L/10),3); 

    VAR5L:=LLV(LOW,13); 

    VAR6L:=HHV(VAR4L,13); 

    VAR7L:=IF(MA(CLOSE,34),1,0); 

    VAR8L:=EMA(IF(LOW =VAR5L,(VAR4L+VAR6L*2)/2,0),3)/618*VAR7L; 

    VAR9LL:=IF(VAR8L 110,110,VAR8L); 

    STICKLINE(VAR9LL REF(VAR9LL,1),48,48+VAR9LL,0.5,0),COLORYELLOW; 

    RSV2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 

    K:=SMA(RSV2,2,1); 

    D:=SMA(K,2,1); 

    J:=3*K-2*D; 

    J1:=REVERSE(J); 

    AA1:=REF(MA(C,1),10) REF(MA(C,60),10); 

    买点:CROSS(J,J1)ANDAA1,NODRAW; 

    STICKLINE(买点,0,30,5,0),COLOR0000FF; 

    STICKLINE(买点,30,55,3,0),COLORWHITE; 

    STICKLINE(买点,55,80,1,0),COLORYELLOW; 

    DRAWTEXT(买点,40, 庄现! ),COLORFF00FF; 

    买:IF(CROSS(K,D)ANDAA1,10,0),COLORLIMAGENTA; 

    庄筹估算值:EMA(WINNER(C)*70,3),COLORFFCC66,LINETHICK2; 

    散筹估算值:EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3),COLOR0099FF,LINETHICK2; 

    获利线:EMA(WINNER(C)*100,3),COLORWHITE; 

    K线公式指标:DRAWNULL,COLORRED; 

    庄筹线:=EMA(WINNER(C)*70,5),COLORRED,LINETHICK2; 

    散筹线:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5),COLORYELLOW,LINETHICK2; 

    收:=WINNER(C)*100; 

    开:=WINNER(O)*100; 

    博弈K线长:MAX(ABS(收-开),ABS(收-REF(收,1))),POINTDOT,COLORWHITE{FF00FF}; 

    STICKLINE(庄筹线 散筹线,庄筹线,散筹线,0,0),COLORWHITE; 

    STICKLINE(收 =REF(收,1),0,博弈K线长,0,0),COLORRED; 

    STICKLINE(收 =REF(收,1),0,博弈K线长,0,0),COLOR00FF00; 

    {庄筹线:EMA(WINNER(C)*70,5),COLORRED,LINETHICK2; 

    散筹线:EMA((WINNER(C*1.1)-WINNER(C*0.9))*80,5),COLORGREEN,LINETHICK2;} 

    5,COLORWHITE,POINTDOT; 

    20,COLORYELLOW,POINTDOT; 

    40,COLORFFCC66,POINTDOT; 

    60,COLORFF00FF,POINTDOT; 

    CC:FILTER((CROSS(5,庄筹线)AND散筹线 20)*60,10),COLORGREEN; 

    DRAWTEXT(CC,60, 海底捞活鱼() ),COLORFF00FF; 

    AA:=REF(庄筹线,30) 40ORREF(庄筹线,20)  

    AA1:=CROSS(庄筹线,散筹线); 

    DRAWTEXT(AA1,70, 鸡雀升天 ),COLOR00FF00; 

    BB:=CROSS(28,庄筹线)AND散筹线 40ANDAA=1ANDLLV(L,60) LLV(L,250); 

    DRAWTEXT(BB,60, 决战诱空 ),COLORWHITE; 

    IF(BB,30,60),COLORGREEN; 

    公式1: 

    庄筹线:=EMA(WINNER(C)*70,5); 

    散筹线:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5); 

    CC:=FILTER((CROSS(5,庄筹线)AND散筹线 20)*60,10); 

    海底捞活鱼:CC; 

    选股公式2: 

    庄筹线:=EMA(WINNER(C)*70,5); 

    散筹线:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,5); 

    AA:=REF(庄筹线,30) 40ORREF(庄筹线,20)  

    AA1:=CROSS(庄筹线,散筹线); 

    鸡雀升天:AA1; 


    image.png


    [源码注释]通达信公式动态公式解读

    RSV赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100

    K赋值:RSV的3日[1日权重]移动平均

    D赋值:K的3日[1日权重]移动平均

    J赋值:3*K-2*D

    CV赋值:收盘价

    BBIBOLL赋值:(CV的3日简单移动平均+CV的6日简单移动平均+CV的12日简单移动平均+CV的24日简单移动平均)/4

    UPR赋值:BBIBOLL+6*BBIBOLL的11日估算标准差

    DWN赋值:BBIBOLL-6*BBIBOLL的11日估算标准差

    HJ1赋值:UPR/收盘价

    WR1赋值:100*(10日内最高价的最高值-收盘价)/(10日内最高价的最高值-10日内最低价的最低值)

    WR2赋值:100*(6日内最高价的最高值-收盘价)/(6日内最高价的最高值-6日内最低价的最低值)

    HH赋值:HJ1 1.3 AND WR2 90

    B赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4

    BB赋值:B/收盘价

    输出起死回生:收盘价 1日前的收盘价 AND 1日前的HH=1 AND BB =1.02 AND 收阳线



    推荐阅读:主力形态副图指标

     

    PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9); 

    JJ:=REF(EMA(PJJ,3),1); 

    QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 

    XVL:=IF(CLOSE OPEN,QJJ*(HIGH-LOW),IF(CLOSE OPEN,QJJ*(HIGH-OPEN+CLOSE￾LOW),VOL/2))+IF(CLOSE OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE OPEN,0- 

    QJJ*(HIGH-LOW),0-VOL/2)); 

    HSL:=(XVL/20)/1.15; 

    攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)); 

    STICKLINE(HSL*0.4 =0,HSL*0.4*10,0,1,0),COLOR808080; 

    STICKLINE(HSL*0.4 0,HSL*0.4*10,0,1,0),COLOR808080; 

    GJJ:=EMA(攻击,8); 

    LLJX:=EMA(攻击,3); 

    流量:LLJX,LINETHICK0,COLOR0000FF; 

    STICKLINE(流量 0,流量*10,0,3,0),COLOR0000FF; 

    STICKLINE(流量 0,流量*10,0,3,0),COLORCYAN; 

    量线:GJJ*10,COLOR00FFFF; 

    ZJLL:=REF(LLJX,1); 

    QZJJ:=((LLJX-ZJLL)/ZJLL)*1; 

    增幅:IF(LLJX 0ANDZJLL 0,ABS(QZJJ),IF(LLJX 0ANDZJLL 0ANDLLJX ZJLL,- 

    QZJJ,QZJJ)),LINETHICK0; 

    ⼒度:HSL/1000,LINETHICK0; 

    周流量:SUM(LLJX,5),LINETHICK0; 

    BB:=REF(周流量,1); 

    ZQZJJ:=((周流量-BB)/BB)*1; 

    周增幅:IF(周流量 0ANDBB 0,ABS(ZQZJJ),IF(周流量 0ANDBB 0AND周流量 BB,- 

    ZQZJJ,ZQZJJ)),LINETHICK0; 

    ABC:=(3*C+H+L+O)/6; 

    :=EMA(ABC,8); 

    介⼊:(CROSS(流量,0)ANDC 短线),LINETHICK0,COLORYELLOW; 

    DRAWICON(介⼊,L,10); 

    PJJ:=DMA((HIGH+LOW+CLOSE*2)/4,0.9); 

    JJ:=REF(EMA(PJJ,3),1); 

    QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 

    XVL:=IF(CLOSE OPEN,QJJ*(HIGH-LOW),IF(CLOSE OPEN,QJJ*(HIGH-OPEN+CLOSELOW),VOL/2))+IF(CLOSE OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE OPEN,0- 

    QJJ*(HIGH-LOW),0-VOL/2)); 

    HSL:=(XVL/20)/1.15; 

    攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22)); 

    STICKLINE(HSL*0.4 =0,HSL*0.4*10,0,1,0),COLOR808080; 

    STICKLINE(HSL*0.4 0,HSL*0.4*10,0,1,0),COLOR808080; 

    GJJ:=EMA(攻击,8); 

    LLJX:=EMA(攻击,3); 

    流量:LLJX,LINETHICK0,COLOR0000FF; 

    STICKLINE(流量 0,流量*10,0,3,0),COLOR0000FF; 

    STICKLINE(流量 0,流量*10,0,3,0),COLORCYAN; 

    量线:GJJ*10,COLOR00FFFF; 

    ZJLL:=REF(LLJX,1); 

    QZJJ:=((LLJX-ZJLL)/ZJLL)*1; 

    增幅:IF(LLJX 0ANDZJLL 0,ABS(QZJJ),IF(LLJX 0ANDZJLL 0ANDLLJX ZJLL,- 

    QZJJ,QZJJ)),LINETHICK0; 

    ⼒度:HSL/1000,LINETHICK0; 

    周流量:SUM(LLJX,5),LINETHICK0; 

    BB:=REF(周流量,1); 

    ZQZJJ:=((周流量-BB)/BB)*1; 

    周增幅:IF(周流量 0ANDBB 0,ABS(ZQZJJ),IF(周流量 0ANDBB 0AND周流量 BB,- 

    ZQZJJ,ZQZJJ)),LINETHICK0; 

    ABC:=(3*C+H+L+O)/6; 

    短线:=EMA(ABC,8); 

    介⼊:(CROSS(流量,0)ANDC 短线),LINETHICK0,COLORYELLOW; 

    DRAWICON(介⼊,L,10); 

    DRAWGBK(1, 

    COLORRGB(100,100,100),COLORRGB(50,50,5 

    0),0); 

    {换手100%} 

    svol:=INTPART(SUM(V,0)/CAPITAL); 

    tj0:=svol REF(svol,1)or 

    BARSSINCE(CLOSE)=0; 

    S1:=BARSLAST(tj0)+1,PRECISION,COLORWHI 

    TE;//时间1 

    tj2:=S1 ref(S1,1);//取点 

    S2:=if(tj2,ref(S1,1)+1,S1),PRECISION,C 

    OLORMAGENTA;//时间2 

    S3:=sum(tj2,0),COLORMAGENTA; 

    阶段总额万 

    元:=SUM(AMOUNT/10000,S2)*100,PRECISI 

    ON,LINETHICK,Color008BFA;//换手100%成 

    交额 

    阶段总量 

    手:=SUM(V,S2)*100,PRECISION,LINETH 

    ICK,COLORCYAN;//换手100% 

    阶段成本元:=(阶段总额万元/(阶段 

    总量手 

    /100)),LINETHICK,PRECISION2,COLORRED; 

    DRAWTEXT(BARPOS=SYSPARAM(2),h, ■阶段 

    平均成本: +NUMTOSTR(阶段成本元 

    [SYSPARAM(1)],2)+ (元) ),align4,COLORC 

    YAN; 

    {取点} 

    Zk1:=STKINDI( , .k ,0,7); 

    Zd2:=STKINDI( , kdj.d ,0,7); 

    ZF1:=STKINDI( , macd.diff ,0,7); 

    ZA2:=STKINDI( , macd.dea ,0,7); 

    {------------------☆功能开关 

    --------------------} 

    {建仓统计} 

    换手 

    率:v/FINANCE(7),LINETHICK,PRECISION2,C 

    OLORCYAN;{} 

    JCD:=FILTER(CROSS(Zk1,Zd2) Zd2 30,13) 

    ;{周KD位置} 

    取点:=barslast(JCD); 

    吸筹区:=if(取点 0and取点 61,取点,0); 

    ZS1:=吸筹区; 

    ZS2:=吸筹区+1; 

    ZS3:=换手率/5;{筹码估算} 

    ZSA:=IF(ZS1 0,sum((ZS3),吸筹区 

    +1),0);{统计庄家筹码} 

    {控制画线高度} 

    n1:=sysparam(3); 

    nn:=n1-sysparam(2)+1; 

    hh:=hhv(换手率,nn); 

    ll:=llv(换手率,nn); 

    最高:=hh[n1]; 

    最低:=ll[n1]; 

    中:=最低+(最高-最低)*0.5; 

    {换手率} 

    换手冷清:STICKLINE(换手率 3,0,换手 

    率,4,1),COLORWHITE;//冷清 

    换手活跃:STICKLINE(换手率 =3and换手 

    率 7,0,换手率,4,1),COLORYELLOW;//活跃 

    换手热烈:STICKLINE(换手率 =7,0,换手 

    率,4,1),COLORRED;//热烈 

    {换手MA} 

    PARTLINE(C,MA(换手率,13)),Color0089FF; 

    PARTLINE(C,MA(换手率,55)),COLOR009900; 

    PARTLINE(RANGE(BARPOS,SYSPARAM(2),SYSP 

    ARAM(1)+1) ZS1 0,中),COLORCYAN;//建仓 

    横线 

    VERTLINE(JCD),LINEDOT,COLORGREEN;//建 

    仓点竖线 

    DRAWTEXT(BARSCOUNT(C)=SYSPARAM(1) SYS 

    PARAM(1) ZS1,中*2, 主力建仓天 

    数: +NUMTOSTR(ZS1[SYSPARAM(1)],0)+ (天) 

    ),PXDN30,align2,COLORGREEN; 

    DRAWTEXT(BARSCOUNT(C)=SYSPARAM(1) SYS 

    PARAM(1) ZS1,中*2, n估算主力筹 

    码: +NUMTOSTR(ZSA[SYSPARAM(1)],2)+ % 

    ),PXDN30,align2,COLORMAGENTA; 

    DRAWICON(FILTER(CROSS(ZF1,ZA2),5),0,4) 

    ,align5; 

    DRAWICON(FILTER(CROSS(Zk1,Zd2),5),0,8) 

    ,align5; 

    DRAWICON(FILTER(CROSS(Zd2,Zk1),5),0,9) 

    ,align5;


    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 主力状态副图指标公式(主力博弈副图指标公式) 加入收藏