最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 跟庄买入红线上穿买指标公式(中线底部买入指标公式)

    正文概述    2024-05-04 04:28:30  


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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图



    一、跟庄买入红线上穿买指标公式

     

    MID:=(3*CLOSE+LOW+OPEN+HIGH)/6; 

    :=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+ 

    16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+ 

    13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+ 

    10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+ 

    7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+ 

    4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210; 

    CROSS(庄家 REF(庄家,1),0.5); 

    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; 

    备钱:吸筹,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),65,0),colorFF00FF,linethick3; 

    DRAWTEXT(买入时机,70.1, 跟庄 ),COLOR00FF00; 

    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; 

    :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),color00FFFF; 

    秘密买点:IF(趋势 =3,20,0),color00ff00,linethick3; 

    建仓:IF(趋势 5,40,0),colorFFFFFF,linethick3; 

    EMA13:=EMA(C,13),COLORWHITE; 

    EMA21:=EMA(C,21),COLORYELLOW; 

    N1:=3;N2:=5;N3:=9;N4:=13;N5:=21;N6:=34; 

    DIFF:=EMA(CLOSE,N3)-EMA(CLOSE,N4); 

    DEA:=EMA(DIFF,N2); 

    A01:=DIFF  

    RSV1:=(CLOSE-LLV(LOW,N3))/(HHV(HIGH,N3)-LLV(LOW,N3))*100; 

    K0:=SMA(RSV1,N1,1); 

    D0:=SMA(K0,N1,1); 

    A02:=K0  

    LC0:=REF(CLOSE,1); 

    RSI1:=(SMA(MAX(CLOSE-LC0,0),N2,1))/(SMA(ABS(CLOSE-LC0),N2,1))*100; 

    RSI2:=(SMA(MAX(CLOSE-LC0,0),N4,1))/(SMA(ABS(CLOSE-LC0),N4,1))*100; 

    A03:=RSI1 RSI2; 

    RSV0:=-(HHV(HIGH,N4)-CLOSE)/(HHV(HIGH,N4)-LLV(LOW,N4))*100; 

    LWR1:=SMA(RSV0,N1,1); 

    LWR2:=SMA(LWR1,N1,1); 

    A04:=LWR1 LWR2; 

    BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4; 

    A05:=CLOSE  

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

    MMS:=100*EMA(EMA(MTM,N2),N1)/EMA(EMA(ABS(MTM),N2),N1); 

    MMM:=100*EMA(EMA(MTM,N4),N3)/EMA(EMA(ABS(MTM),N4),N3); 

    A06:=MMS  

    BIAS:=(C-MA(C,N2))/MA(C,N2); 

    DIF:=(BIAS-REF(BIAS,16)); 

    DBCD:=SMA(DIF,76,1); 

    MM1:=MA(DBCD,5); 

    A07:=DBCD  

    持股:=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),LINETHICK0,COLORRED; 

    支撑:=LLV(持股,3),LINETHICK0,COLOR00FFFF; 

    下跌:=MA(持股,12),COLOR6B8E23,LINETHICK0; 

    转向:=CROSS(持股,下跌){AND下跌  

    MA1:=MA(持股,5); 

    向下:=CROSS(MA1,持股)ANDMA1  

    A08:=持股  

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

    ZLGJ:=100*EMA(EMA(MT,N3),N3)/EMA(EMA(ABS(MT),N3),N3); 

    MAZL:=MA(ZLGJ,5); 

    A09:=ZLGJ MAZL; 

    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)); 

    GJJ:=EMA(攻击流量,8); 

    LLJX:=EMA(攻击流量,3); 

    流量:=LLJX,LINETHICK0,COLOR0000FF; 

    A10:=资金流量  

    指导线:=(A01+A02+A03+A04+A05+A06+A07+A08+A09+A10),LINETHICK0,COLORFFFF00; 

    跟庄持股操作:IF(指导线 6,2.99,1),LINETHICK1,COLOR0000FF; 

    AA:=VOL; 

    BB:=REF(MA(VOL,5),1); 

    CC:=AA/BB; 

    A1:=CC =0.001ANDCC  

    A2:=CC =0.5ANDCC  

    A3:=CC =0.8ANDCC  

    A4:=CC =1.5ANDCC  

    A5:=CC =2.5ANDCC  

    A6:=CC =5.0ANDCC 10.0; 

    A7:=CC =10.0ANDCC 20.0; 

    关注线:1.5,COLOR00B0B0,LINETHICK1,DOTLINE; 

    DRAWTEXT(ISLASTBAR,1.5, 关注线 ),COLORFFFFFF; 

    放量线:2.5,COLORCA00CA,LINETHICK1,DOTLINE; 

    DRAWTEXT(ISLASTBAR,2.5, 放量线 ),COLORFFFFFF; 

    STICKLINE(A1,0,CC,2.5,0),COLOREAEAEA; 

    STICKLINE(A1,0,CC,1.5,0),COLOREBEBEB; 

    STICKLINE(A1,0,CC,0.8,0),COLOREDEDED; 

    STICKLINE(A1,0,CC,0.1,0),COLORE8E8E8; 

    严重缩量:A7,STICK,COLORFFFFFF; 

    STICKLINE(A2,0,CC,2.5,0),COLOR009900; 

    STICKLINE(A2,0,CC,1.5,0),COLOR00BB00; 

    STICKLINE(A2,0,CC,0.8,0),COLOR00DD00; 

    STICKLINE(A2,0,CC,0.1,0),COLOR00FF00; 

    缩量:A7,STICK,COLOR00FF00; 

    STICKLINE(A3,0,CC,2.5,0),COLOR009900; 

    STICKLINE(A3,0,CC,1.5,0),COLORBBBB00; 

    STICKLINE(A3,0,CC,0.8,0),COLORDDDD00; 

    STICKLINE(A3,0,CC,0.1,0),COLORFFFF00; 

    正常:A7,STICK,COLORFFFF00; 

    STICKLINE(A4,0,CC,2.5,0),COLOR00AAFF; 

    STICKLINE(A4,0,CC,1.5,0),COLOR00BBFF; 

    STICKLINE(A4,0,CC,0.8,0),COLOR00CCFF; 

    STICKLINE(A4,0,CC,0.1,0),COLOR00DDFF; 

    温和放量:A4,STICK,COLOR00CCFF; 

    STICKLINE(A5,0,CC,2.5,0),COLORFF00FF; 

    STICKLINE(A5,0,CC,1.5,0),COLORFF33FF; 

    STICKLINE(A5,0,CC,0.8,0),COLORFF66FF; 

    STICKLINE(A5,0,CC,0.1,0),COLORFF99FF; 

    明显放量:A5,STICK,COLORMAGENTA; 

    STICKLINE(A6,0,CC,2.8,0),COLOR000088; 

    STICKLINE(A6,0,CC,1.5,0),COLOR0000AA; 

    STICKLINE(A6,0,CC,0.8,0),COLOR0000CC; 

    STICKLINE(A6,0,CC,0.1,0),COLOR0000EE; 

    剧烈放量:A6,STICK,COLOR0000FF; 

    STICKLINE(A7,0,CC,2.8,0),COLOR995500; 

    STICKLINE(A7,0,CC,1.5,0),COLORBB6600; 

    STICKLINE(A7,0,CC,0.8,0),COLORDD7700; 

    STICKLINE(A7,0,CC,0.1,0),COLORFF8800; 

    反向操作:A7,STICK,COLORFF8800; 

    今日量比:VOL/REF(MA(VOL,5),1),COLORFFFFFF,NODRAW; 

    F:=100*(C-REF(C,1))/REF(C,1); 

    博尔:=IF(C REF(O,1)ANDF 0,1,0); 

    P1:=博尔; 

    量化:=IF(C REF(O,2)ANDF 0,1,0); 

    P2:=量化; 

    P1=0ANDREF(P1,1)=1ANDP2=0ANDREF(P2,1)=1,STICK,COLORFF00FF,LINETHICK1; 

    DRAWICON(P1=0 0,P1=0,38); 

    三日最低:=EMA((REF(L,4)+REF(L,3)+REF(L,2))/3,3); 

    三日最高:=EMA((REF(H,4)+REF(H,3)+REF(H,2))/3,3),COLORWHITE; 

    高:=CROSS(CROSS(三日最高,C),0.6),STICK,COLORWHITE; 

    DRAWTEXT(高,2.1, S ),COLORFFFF00; 

    DRAWICON(高 0,高,39); 

    EMA13:EMA(C,5),COLORWHITE;{13-21-34-60} 

    EMA21:EMA(C,13),COLORYELLOW; 

    EMA34:EMA(C,21),COLORFF00FF; 

    EMA60:MA(C,60),COLORFFCC66; 

    {及短期支撑} 

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

    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; 

    S2:=SMA(C,3,1); 

    S6:=SMA(C,5,1); 

    DK:=2*(S2-S6); 

    主力成本:EMA(X,13),LINETHICK1,COLORLIGRAY; 

    短期支撑:LLV(HIGH,30),LINETHICK2,COLORLIRED; 

    {上行和买入}; 

    多:EMA(C,3),COLORYELLOW; 

    空:EMA(C,5),COLOR00FF00; 

    均衡:EMA(空,5),COLORWHITE,; 

    VVARF1:=COUNT(CROSS(多,均衡),2)=1; 

    VVARF2:=COUNT(CROSS(空,均衡),2)=1; 

    ZAI:=FILTER(VVARF1ANDVVARF2,2); 

    DRAWTEXT(ZAI,均衡*0.985, ▲ ),COLORRED; 

    VV2:=REF(CLOSE,1); 

    VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100; 

    DRAWICON(REF(VV3,1) 81ANDVV3 80,HIGH,2); 

    VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2; 

    DRAWTEXT(IF(CLOSE VF1ANDVOL/240 MA(VOL,5)/240ANDCLOSE =REF(CLOSE,1)*1.08ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW, ☆ ),COLORRED; 

    VVARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100; 

    VVARB:=EMA(0.667*REF(VVARA,1)+0.333*VVARA,5); 

    DRAWTEXT(IF(VOL =1.3*MA(VOL,5)ANDCOUNT(VVARA =VVARBANDVVARA -17,3)ANDREF(LOW,1)=LLV(LOW,120),1,0),LOW, ★注意买入  

    VVARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100; 

    DRAWICON(CROSS(82,VVARR1),HIGH,2); 

    DRAWTEXT(CROSS(82,VVARR1),HIGH, ),COLORYELLOW; 

    VVAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5; 

    VVAR2:=REF(VVAR1,1); 

    VVAR3:=SMA(MAX(VVAR1-VVAR2,0),10,1)/SMA(ABS(VVAR1-VVAR2),10,1)*100; 

    HY3:=IF(COUNT(VVAR3 20,5) =1ANDCOUNT(VVAR1=LLV(VVAR1,10),10) =1ANDCLOSE =OPEN*1.038ANDVOL MA(VOL,5)*1.2,1,0); 

    DRAWTEXT(HY3,LOW, 注意买入 ),COLORRED; 

    {大阴线:大跌超2.3} 

    C2:=REF(C,1); 

    BG:=IF((C2-C)*100/C2 =2.3,1,0)ORIF((O-C)*100/O =5,1,0){ORIF((H-L)*100/REF(C,1) 5,1,0)};{第二个条件开盘价过高掉下来} 

    BG2:=IF((H-L)*100/C2 =3.58,1,0); 

    BB1:=L REF(L,1); 

    {卖点信号} 

    SELL1:=BGANDBB1; 

    {大阳线:升幅超2.64} 

    BR:=IF((C-C2)*100/C2 =2.59,1,0)ORIF((C-O)*100/O =4.5,1,0)ORIF((C-L)*100/L 5,1,0);{第二个条件开盘价太低升上来} 

    STICKLINE(BR,O,C,3,0),COLORRED; 

    {以下条件记住最近一次卖出点} 

    DAY1:=BARSLAST(SELL1); 

    JIA1:=REF(O,DAY1); 

    JIA2:=REF(O,1); 

    BB4:=C JIA2; 

    BB2:=H JIA1; 

    {买入信号} 

    BUY1:=BRANDBB2ANDBB4; 

    {记住最后一次买点} 

    DAY2:=BARSLAST(BUY1); 

    {谁先} 

    S1:=DAY1 DAY2; 

    B1:=DAY2 DAY1; 

    {画出卖出信号} 

    {DRAWTEXT(S1,H*1.05, S ),COLORGREEN;} 

    STICKLINE(S1,O,C,3,0),COLORGREEN; 

    {画出买入信号} 

    {DRAWTEXT(B1,L-0.2, B ),COLORRED;} 

    STICKLINE(B1,H,L,0.3,0),COLORRED; 

    STICKLINE(B1,O,C,3,1),LINETHICK2,COLORRED; 

    {其它补充1:买点} 

    AA2:=AMOUNT/VOL; 

    BB3:=L AA2*0.9; 

    CC2:=(C-REF(C,1))/REF(C,1)*100  

    DD2:=L MA(C,6)*0.921; 

    DD1:=L MA(C,5)*0.921; 

    EE2:=VOL MA(V,5)*1.5; 

    FF2:=BB3ANDCC2ANDDD2ANDEE2; 

    老鼠仓:=BB3ANDCC2ANDDD1ANDEE2,LINETHICK0,COLOR0099FF; 

    DRAWTEXT(老鼠仓,L*0.97, 老鼠仓 ),COLOR0099FF; 

    {DRAWTEXT(FF2,L*0.99, 买点 ),COLOR00FFFF;} 

    STICKLINE(FF2,H,L,0.3,0),COLOR00FFFF; 

    {STICKLINE(FF2,O,C,3,1),LINETHICK2,COLOR00FFFF;} 

    {检查买点是否成立} 

    B4:=BARSLAST(FF2);{底点日期} 

    E4:=B4 {5日内的线} 

    F4:=E4ANDC REF(C,1); 

    STICKLINE(F4,H,L,0.3,0),COLOR00FFFF; 

    {其它补充2:卖点} 

    A2:=(C-REF(C,1))/REF(C,1)*100 1.02; 

    A3:=H MA(C,5)*1.12; 

    AA:=A2ANDA3; 

    DRAWTEXT(AA,H*1.05, 卖点 ),COLORFF0000; 

    STICKLINE(AA,H,L,0.3,0),COLORFF0000; 

    {STICKLINE(AA,H,L,3,0),COLORFF0000;}; 

    {补充阳光买点} 

    VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 

    3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1); 

    VAR2:=8; 

    CC:=CROSS(VAR1,VAR2); 

    CCC:=CROSS(VAR1,VAR2)ANDH REF(H,1)ANDC REF(C,1); 

    DRAWICON(CCC,L*0.99,1); 

    STICKLINE(CC,H,L,0.3,0),COLORRED; 

    STICKLINE(CC,O,C,3,1),LINETHICK2,COLORRED; 

    {加强买点后续升势} 

    CF1:=BARSLAST(CC);{买点日期} 

    CF2:=CF1 {5日内的线} 

    CF3:=CF2ANDC REF(C,1); 

    STICKLINE(CF3,O,C,3,0),COLOR00FFFF; 

    CD:=CROSS(VAR2,VAR1); 

    STICKLINE(CD,H,L,0.3,0),COLORYELLOW; 

    STICKLINE(CD,O,C,3,1),LINETHICK2,COLORYELLOW; 

    DRAWTEXT(CD,H*1.01, 准备 ),COLORYELLOW; 

    DRAWTEXT(CC,L*0.98, 买 ),COLORFF00FF;{输出粉红色的买字}; 

    {牛窝} 

    VAR1A:=LLV(LOW,21); 

    VAR2A:=HHV(HIGH,21); 

    AK1:=EMA((((CLOSE-VAR1A)/(VAR2A-VAR1A))*100),5); 

    AK:=EMA((((CLOSE-VAR1A)/(VAR2A-VAR1A))*50),13); 

    AB:=CROSS(AK1,AK); 

    DRAWTEXT((AB=1),(LOW*0.95), ○牛窝 ),COLORYELLOW; 

    {大胆博、加仓、小心变盘、} 

    VAR3AA:=IF((CLOSE REF(CLOSE,1)),88,0); 

    VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1)) 1.05)AND((HIGH)/(CLOSE) 1.01)AND(VAR3AA 0),91,0); 

    DRAWTEXT(FILTER((VAR4AA 90),45),(LOW)*(0.93), ★大胆搏 ),COLOR00FFFF; 

    DRAWTEXT(FILTER((VAR4AA 90),35),(LOW)*(0.99000001), ★加仓 ),COLOR00FFFF; 

    A1AA:=9; 

    A2AA:=(REF(CLOSE,A1AA+1) CLOSE); 

    DRAWTEXT(FILTER((A2AA -0.5),84),(HIGH)*(1.05), 小心变盘 ),COLORFFFFFF; 

    VAR6:=REF(C,1); 

    VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100; 

    DRAWTEXT(CROSS(82,VAR7),H*1.02, 逃顶 ),COLORYELLOW; 

    {主力进场} 

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

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

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

    VAR12:=SMA(VAR11,3,1); 

    主力出现:DRAWICON(CROSS(VAR11,VAR12)AND(VAR11 40),L*0.98,1); 

    {} 

    A1A:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*1,5,1),COLOR330066; 

    A5A:=(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))*1; 

    DRAWTEXT(CROSS(A1A,EMA(A1A,5))ANDEMA(A1A,5) A5A,L*0.98, 黑马 ),COLORYELLOW;


    image.png

    公式解读:

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

    100*(收盘价-34日内最低价的最低值)/(34日内最高价的最高值-34日内最低价的最低值)的3日指数移动平均, 画红色,线宽为2

    100*(的收盘价-34日内大盘的最低价的最低值)/(34日内大盘的最高价的最高值-34日内大盘的最低价的最低值)的3日指数移动平均,画绿色,线宽为2

    20,POINTDOT,COLORF00FF0

    50,POINTDOT,画绿色

    80,POINTDOT,画白色



    推荐阅读:跟庄买进公式

     

    X_1:=EMA(CLOSE,12)-EMA(CLOSE,26); 

    X_2:=EMA(X_1,9); 

    X_3:=(X_1-X_2)*2; 

    X_4:=CROSS(X_2,X_1)ANDX_2  

    X_5:=REF(HIGH,BARSLAST(X_4)); 

    X_6:=CLOSE X_5ANDREF(CLOSE,1)  

    X_7:=X_3 0ANDREF(X_3,1) 0ANDREF(X_3,2) 0ANDX_3-REF(X_3,1) 0.01ANDREF(X_3,2)-REF(X_3,1) 0.01ANDREF(X_3,3)-REF(X_3,2) 0.01; 

    买进:X_6ORX_7; 

    VAT3:=REF(CLOSE,1); 

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

    我卖:(CROSS(80,VAT4))*82,STICK,LINETHICK3,COLOR9900CC; 

    DRAWTEXT(我卖,80, →我卖 ),COLORRED; 

    快逃:IF(CROSS((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)),90),60,0),STICK,LINETHICK4,COLORGREEN; 

    DRAWTEXT(快逃,50, →快逃 ),COLORWHITE; 

    VARO2:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26))*100; 

    VARO3:=SMA(SMA(VARO2,3,1),3,1); 

    去停牌:=DYNAINFO(17)  

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

    AO:=SMA(AL,6.18,1)-SMA(AL,16.18,1); 

    BBD:=(AO-SMA(AO,3.82,1))*100; 

    BBDA:=SMA(BBD,6.18,2); 

    RSV1:=BBD; 

    RSV2:=BBDA; 

    SV1:=BARSLAST(REF(CROSS(RSV1,RSV2),1)); 

    SV1A:=REF(CLOSE,SV1+1) CLOSEANDRSV1 REF(RSV1,SV1+1)AND 

    CROSS(RSV1,RSV2); 

    底:SV1AAND去停牌; 

    VARO4:=EMA(VARO3,5); 

    VARO5:=LLV(LOW,26); 

    VARO6:=HHV(HIGH,34); 

    VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25; 

    底部雷达:IF{STICKLINE}(CROSS(VARO4,10)ANDVARO4 10,25,0{,8,0}),STICK,COLORYELLOW,LINETHICK4; 

    建仓区:IF((VARO7 10),80,100),,LINETHICK2,COLOR00CCFF; 

    派发区:IF((VARO7 90),20,0),,LINETHICK2,COLOR00FF00; 

    DRAWTEXT(底部雷达,20, 底部雷达 ),COLORYELLOW; 

    买入:IF(CROSS((4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)- 

    3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1)),(8)),58,0),STICK,COLOR0099FF,LINETHICK3; 

    DRAWTEXT(买入,45, -我买 ),COLOR66FFCC; 

    VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100; 

    VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1); 

    VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100; 

    VAR1D:=SMA(VAR1C,4,1); 

    VAR1E:=SMA(VAR1D,3,1); 

    VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100; 

    VARE:=REF(LOW,1)*0.9; 

    VARF:=LOW*0.9; 

    VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL; 

    VAR11:=EMA(VAR10,30); 

    VAR12:=CLOSE-REF(CLOSE,1); 

    VAR13:=MAX(VAR12,0); 

    VAR14:=ABS(VAR12); 

    VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100; 

    VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100; 

    VAR17:=BARSCOUNT(CLOSE); 

    VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100; 

    VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100; 

    VAR20:=VAR18 =25ANDVAR19 -95ANDVAR1F 20ANDVAR1B -30ANDVAR1E 30ANDVAR11-CLOSE =-0.25ANDVAR15 22ANDVAR16 28ANDVAR17  

    STICKLINE(VAR20,0,95,5,0),LINETHICK2,COLORRED,; 

    DRAWTEXT(CROSS(VAR20,0.5)ANDCOUNT(VAR20=1,10)=1,60, 发射导弹 ),LINETHICK7,COLORWHITE; 

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

    买量:=IF(CLOSE OPEN,AA*(HIGH-LOW),IF(CLOSE OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)); 

    卖量:=IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-AA*(HIGH-LOW),0-VOL/2)); 

    进出量:=买量+卖量; 

    今DDX:进出量,COLORRED,NODRAW,LINETHICK1; 

    昨DDX:REF(今DDX,1),COLORGREEN,NODRAW,LINETHICK1; 

    倍DDX:今DDX/昨DDX,COLOR00FFFF,NODRAW,LINETHICK1; 

    STICKLINE(进出量 0,0,进出量,1.9,0),COLORFF6600; 

    STICKLINE(进出量 0,0,进出量,1.4,0),COLORFF9900; 

    STICKLINE(进出量 0,0,进出量,0.9,0),COLORFFCC00; 

    STICKLINE(进出量 0,0,进出量,0.4,0),COLORCYAN; 

    {仿指南针机构} 

    DC:=(2*CLOSE+HIGH+LOW+OPEN)/5; 

    EMDC:=EMA(EMA(EMA(DC,4),4),4); 

    AA3:=(EMDC-REF(EMDC,1))/REF(EMDC,1)*100,; 

    BA:=MA(AA3,2); 

    机构:(AA3-BA)*30000,COLORRED,NODRAW; 

    昨机:REF(机构,1),COLORGREEN,NODRAW,LINETHICK1; 

    前机:REF(昨机,1),COLOR00FFFF,NODRAW,LINETHICK1; 

    STICKLINE(进出量 0,0,进出量,1.9,0),COLOR000099; 

    STICKLINE(进出量 0,0,进出量,1.4,0),COLOR0000CC; 

    STICKLINE(进出量 0,0,进出量,0.9,0),COLOR0000FF; 

    STICKLINE(进出量 0,0,进出量,0.4,0),COLORCC66FF; 

    {仿指南针} 

    CC3:=EMA(CLOSE,5)-EMA(CLOSE,55); 

    DD3:=EMA(CC3,10); 

    散户:(CC3-DD3)*20000,COLORRED,NODRAW; 

    昨散:REF(散户,1),COLORGREEN,NODRAW,LINETHICK1; 

    前散:REF(昨散,1),COLOR00FFFF,NODRAW,LINETHICK1; 

    {用法:双方资金流向一致看涨} 

    {满仓} 

    MA2:=EMA(C,2); 

    MA5:=EMA(C,5); 

    EMA13:=EMA(C,13); 

    EMA30:=EMA(C,30); 

    YCX:=MA5 =REF(MA5,1); 

    H5:=MAX(MAX(MA5,EMA13),EMA30); 

    L5:=MIN(MIN(MA5,EMA13),EMA30); 

    一阳穿三线:=H5 CANDO L5ANDYCXANDMA2 REF(MA2,1); 

    IF(一阳穿三线,18,0),COLORFFFF00,DOTLINE,LINETHICK1; 

    DRAWTEXT(一阳穿三线,10, 满仓 ),COLORFFFF00; 

    {青云} 

    AA05:=MA(C,5); 

    五日乖离率:=(C-AA05)/AA05*100; 

    AA30:=MA(C,30); 

    三拾日乖离率:=(C-AA30)/AA30*100; 

    MR:=COUNT(CROSS(五日乖离率,0),3) =1AND三拾日乖离率 REF(三拾日乖离率,1)ANDAA05 REF(AA05,1)AND(C/REF(C,1)-1)*100 5ANDREF(C,1) AA30; 

    IF(FILTER(MR,10),-18,0),COLOR00FFFF,DOTLINE,LINETHICK1; 

    DRAWTEXT(FILTER(MR,10),-10, 青云 ),COLOR00FFFF; 

    0,COLORCBCBC0;

    image.png


    每日公式解答:

    股票公式编写要求:

    5日、10日、20日三条多头排列5日的选股公式

    股票公式编写结果:

    AA:=MA(C,5) MA(C,10) AND MA(C,10) MA(C,20);
    XG:EVERY(AA,5);


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 跟庄买入红线上穿买指标公式(中线底部买入指标公式) 加入收藏