最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 出手就赢主图指标公式(庄家成本主图指标公式)

    正文概述    2024-05-04 03:58:00  

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


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


    授权方式: 免费版


    指标评级: ★★★★★


    指标分类: 策略


    画线方法: 副图

    公式解读:


    二、主图指标公式

     

    X_1:=FROMOPEN  

    X_2:=X_1  

    X_3:=1; 

    X_4:=1281210; 

    X_5:=IF(DATE X_4,X_2,X_3); 

    X_6:=IF(DATE X_4,0,1); 

    X_7:=IF(DATE X_4,1,0); 

    CLOSE; 

    DRAWGBK(OPEN CLOSE,RGB(1,88,92),RGB(1,22,28),0,7,0); 

    X_8:=1ANDX_6; 

    X_9:=(XMA(XMA(HIGH,25),25)- 

    XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25); 

    X_10:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)- 

    XMA(XMA(LOW,25),25))*1; 

    X_11:=X_8*(XMA(XMA(HIGH,60),60)- 

    XMA(XMA(LOW,60),60))*2.2+XMA(XMA(HIGH,60),60); 

    X_12:=X_8*XMA(XMA(LOW,60),60)- 

    (XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.8; 

    X_13:=X_8*(X_9+X_11)/2; 

    X_14:=X_8*(X_10+X_12)/2; 

    DRAWBAND(X_13,RGB(0,100,0),X_11,RGB(0,100,0)); 

    DRAWBAND(X_14,RGB(150,0,150),X_12,RGB(150,0,150)); 

    收盘价:CLOSE,NODRAW,COLORWHITE; 

    涨最 

    DRAWKLINE(HIGH,OPEN,LOW,CLOSE); 

    跌幅:(CLOSE- 

    新 

    REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW; 

    价:IF(CLOSE,CONST(CLOSE),DRAWNULL),DOTLINE,COLORRED; 

    X_15:=(HIGH+LOW)/2; 

    X_16:=X_15; 

    X_17:=XMA(X_15,3); 

    X_18:=XMA(X_15,5); 

    X_19:=XMA(X_15,10); 

    X_20:=XMA(X_15,15); 

    X_21:=XMA(X_15,20); 

    X_22:=XMA(X_15,25); 

    X_23:=XMA(X_15,30); 

    X_24:=XMA(X_15,35); 

    X_25:=XMA(X_15,40); 

    X_26:=XMA(X_15,45); 

    X_27:=XMA(X_15,50); 

    X_28:=XMA(X_15,55); 

    X_29:=XMA(X_15,60); 

    X_30:=(X_17+X_18+X_19+X_20+X_21+X_22+X_23+X_24+X_ 

    25+X_26+X_27+X_28+X_29)/13; 

    X_31:=(X_16+X_17+X_18)/3; 

    X_32:=PLOYLINE(2 1,X_30); 

    X_33:=X_16 X_17ANDX_16 X_18ANDX_16 X_19AND 

    X_16 X_20ANDX_16 X_21ANDX_16 X_22ANDX_16 X_23 

    ANDX_16 X_24ANDX_16 X_25ANDX_16 X_26AND 

    X_16 X_27ANDX_16 X_28ANDX_16 X_29ANDX_17 X_18 

    ANDX_17 X_19ANDX_17 X_20ANDX_17 X_21AND 

    X_17 X_22ANDX_17 X_23; 

    X_34:=X_17 X_24ANDX_17 X_25ANDX_17 X_26AND 

    X_17 X_27ANDX_17 X_28ANDX_17 X_29ANDX_18 X_19 

    ANDX_18 X_20ANDX_18 X_21ANDX_18 X_22AND 

    X_18 X_23ANDX_18 X_24ANDX_18 X_25ANDX_18 X_26 

    ANDX_18 X_27ANDX_18 X_28ANDX_18 X_29AND 

    X_19 X_20ANDX_19 X_21ANDX_19 X_22ANDX_19 X_23 

    ANDX_19 X_24ANDX_19 X_25ANDX_19 X_26AND 

    X_19 X_27ANDX_19 X_28ANDX_19 X_29; 

    X_35:=X_20 X_21ANDX_20 X_22ANDX_20 X_23AND 

    X_20 X_24ANDX_20 X_25ANDX_20 X_26ANDX_20 X_27 

    ANDX_20 X_28ANDX_20 X_29ANDX_21 X_22AND 

    X_21 X_23ANDX_21 X_24ANDX_21 X_25ANDX_21 X_26 

    ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29AND 

    X_22 X_23ANDX_22 X_24ANDX_22 X_25ANDX_22 X_26 

    ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29AND 

    X_23 X_24ANDX_23 X_25; 

    X_36:=X_23 X_26ANDX_23 X_27ANDX_23 X_28AND 

    X_23 X_29ANDX_24 X_25ANDX_24 X_26ANDX_24 X_27 

    ANDX_24 X_28ANDX_24 X_29ANDX_25 X_26AND 

    X_25 X_27ANDX_25 X_28ANDX_25 X_29ANDX_26 X_27 

    ANDX_26 X_28ANDX_26 X_29ANDX_27 X_28AND 

    X_27 X_29ANDX_28 X_29; 

    X_37:=X_33ANDX_34ANDX_35ANDX_36; 

    X_38:=X_16 X_17ANDX_16 X_18ANDX_16 X_19AND 

    X_16 X_20ANDX_16 X_21ANDX_16 X_22ANDX_16 X_23 

    ANDX_16 X_24ANDX_16 X_25ANDX_16 X_26AND 

    X_16 X_27ANDX_16 X_28ANDX_16 X_29ANDX_17 X_18 

    ANDX_17 X_19ANDX_17 X_20ANDX_17 X_21AND 

    X_17 X_22ANDX_17 X_23; 

    X_39:=X_17 X_24ANDX_17 X_25ANDX_17 X_26AND 

    X_17 X_27ANDX_17 X_28ANDX_17 X_29ANDX_18 X_19 

    ANDX_18 X_20ANDX_18 X_21ANDX_18 X_22AND 

    X_18 X_23ANDX_18 X_24ANDX_18 X_25ANDX_18 X_26 

    ANDX_18 X_27ANDX_18 X_28ANDX_18 X_29AND 

    X_19 X_20ANDX_19 X_21; 

    X_40:=X_19 X_22ANDX_19 X_23ANDX_19 X_24AND 

    X_19 X_25ANDX_19 X_26ANDX_19 X_27ANDX_19 X_28 

    ANDX_19 X_29ANDX_20 X_21ANDX_20 X_22AND 

    X_20 X_23ANDX_20 X_24ANDX_20 X_25ANDX_20 X_26 

    ANDX_20 X_27ANDX_20 X_28ANDX_20 X_29AND 

    X_21 X_22; 

    X_41:=X_21 X_23ANDX_21 X_24ANDX_21 X_25AND 

    X_21 X_26ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29 

    ANDX_22 X_23ANDX_22 X_24ANDX_22 X_25AND 

    X_22 X_26ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29 

    ANDX_23 X_24ANDX_23 X_25ANDX_23 X_26AND 

    X_23 X_27; 

    X_42:=X_23 X_28ANDX_23 X_29ANDX_24 X_25AND 

    X_24 X_26ANDX_24 X_27ANDX_24 X_28ANDX_24 X_29 

    ANDX_25 X_26ANDX_25 X_27ANDX_25 X_28AND 

    X_25 X_29ANDX_26 X_27ANDX_26 X_28ANDX_26 X_29 

    ANDX_27 X_28ANDX_27 X_29ANDX_28 X_29; 

    X_43:=X_38ANDX_39ANDX_40ANDX_41ANDX_42; 

    X_44:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)- 

    LLV(LOW,36))*100; 

    X_45:=SMA(X_14,3,1); 

    X_46:=SMA(X_45,3,1); 

    X_47:=SMA(X_46,3,1); 

    X_48:=X_46; 

    X_49:=X_47; 

    X_50:=X_46  

    X_51:=X_46  

    X_52:=X_50ORX_51; 

    STICKLINE(X_37ANDCLOSE =OPENANDCLOSE X_13*1.1 

    ANDX_52,HIGH,LOW,0.6,0),COLORRED; 

    STICKLINE(X_37ANDCLOSE =OPENANDCLOSE X_13*1.1 

    ANDX_52,CLOSE,OPEN,3,0),COLORRED; 

    STICKLINE(X_43ANDCLOSE =OPENANDCLOSE X_13*1.1 

    ANDX_52,HIGH,LOW,0.6,0),COLORRED; 

    STICKLINE(X_43ANDCLOSE =OPENANDCLOSE X_13*1.1 

    ANDX_52,CLOSE,OPEN,3,0),COLORRED; 

    STICKLINE(X_37ANDCLOSE OPENANDCLOSE X_14*1.1 

    ANDX_52,HIGH,LOW,0.6,0),COLORGREEN; 

    STICKLINE(X_37ANDCLOSE OPENANDCLOSE X_14*1.1 

    ANDX_52,CLOSE,OPEN,3,0),COLORGREEN; 

    STICKLINE(X_43ANDCLOSE OPENANDCLOSE X_14*1.1 

    ANDX_52,HIGH,LOW,0.6,0),COLORGREEN; 

    STICKLINE(X_43ANDCLOSE OPENANDCLOSE X_14*1.1 

    ANDX_52,CLOSE,OPEN,3,0),COLORGREEN; 

    X_53:=(HIGH+XMA(HIGH,3)+XMA(HIGH,5)+XMA(HIGH,10) 

    +XMA(HIGH,15)+XMA(HIGH,20)+XMA(HIGH,25)+XMA(HIGH,30 

    )+XMA(HIGH,35)+XMA(HIGH,40)+XMA(HIGH,45)+XMA(HIGH,5 

    0)+XMA(HIGH,55)+XMA(HIGH,60))/14; 

    X_54:=(LOW+XMA(LOW,3)+XMA(LOW,5)+XMA(LOW,10)+X 

    MA(LOW,15)+XMA(LOW,20)+XMA(LOW,25)+XMA(LOW,30)+XM 

    A(LOW,35)+XMA(LOW,40)+XMA(LOW,45)+XMA(LOW,50)+XMA( 

    LOW,55)+XMA(LOW,60))/14; 

    X_55:=X_20 X_21ANDX_20 X_22ANDX_20 X_23AND 

    X_20 X_24ANDX_20 X_25ANDX_20 X_26ANDX_20 X_27 

    ANDX_20 X_28ANDX_20 X_29ANDX_21 X_22AND 

    X_21 X_23ANDX_21 X_24ANDX_21 X_25ANDX_21 X_26 

    ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29AND 

    X_22 X_23ANDX_22 X_24ANDX_22 X_25ANDX_22 X_26 

    ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29AND 

    X_23 X_24ANDX_23 X_25ANDX_23 X_26ANDX_23 X_27 

    ANDX_23 X_28ANDX_23 X_29ANDX_24 X_25AND 

    X_24 X_26ANDX_24 X_27ANDX_24 X_28ANDX_24 X_29 

    ANDX_25 X_26ANDX_25 X_27ANDX_25 X_28AND 

    X_25 X_29ANDX_26 X_27ANDX_26 X_28ANDX_26 X_29 

    ANDX_27 X_28ANDX_27 X_29ANDX_28 X_29; 

    X_56:=X_20 X_21ANDX_20 X_22ANDX_20 X_23AND 

    X_20 X_24ANDX_20 X_25ANDX_20 X_26ANDX_20 X_27 

    ANDX_20 X_28ANDX_20 X_29ANDX_21 X_22AND 

    X_21 X_23ANDX_21 X_24ANDX_21 X_25ANDX_21 X_26 

    ANDX_21 X_27ANDX_21 X_28ANDX_21 X_29AND 

    X_22 X_23ANDX_22 X_24ANDX_22 X_25ANDX_22 X_26 

    ANDX_22 X_27ANDX_22 X_28ANDX_22 X_29AND 

    X_23 X_24ANDX_23 X_25ANDX_23 X_26ANDX_23 X_27 

    ANDX_23 X_28ANDX_23 X_29ANDX_24 X_25AND 

    X_24 X_26ANDX_24 X_27ANDX_24 X_28ANDX_24 X_29 

    ANDX_25 X_26ANDX_25 X_27ANDX_25 X_28AND 

    X_25 X_29ANDX_26 X_27ANDX_26 X_28ANDX_26 X_29 

    ANDX_27 X_28ANDX_27 X_29ANDX_28 X_29; 

    X_57:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30),10); 

    X_58:=XMA(X_54/X_53*X_30-(X_30-X_54/X_53*X_30),10); 

    X_59:=IF(REF(X_30,1) X_30 

    NOT(X_55),X_57,DRAWNULL); 

    X_60:=IF(REF(X_30,1) X_30 

    NOT(X_56),X_58,DRAWNULL); 

    X_61:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30)/2,10); 

    X_62:=XMA(X_54/X_53*X_30-0.5*(X_30-X_54/X_53*X_30),10); 

    X_63:=IF(REF(X_30,1) X_30,X_61,DRAWNULL); 

    X_64:=IF(REF(X_30,1) X_30,X_62,DRAWNULL); 

    X_65:=X_53/X_54*X_30+(X_53/X_54*X_30-X_30)*1.5; 

    X_66:=X_54/X_53*X_30-1.5*(X_30-X_54/X_53*X_30); 

    AND 

    AND 

    X_67:=PLOYLINE(2 1,X_65); 

    X_68:=PLOYLINE(2 1,X_66); 

    X_69:=IF(REF(X_30,1) X_30ANDX_55,X_65,DRAWNULL); 

    X_70:=IF(REF(X_30,1) X_30ANDX_56,X_66,DRAWNULL); 

    X_71:=IF(X_37,X_65,DRAWNULL); 

    X_72:=IF(X_43,X_66,DRAWNULL); 

    交时1:=FROMOPEN  

    交时2:=交时1  

    交时3:=1; 

    DAYN1:=1281210; 

    定时1:=IF(DATE DAYN1,交时2,交时3); 

    定时2:=IF(DATE DAYN1,0,1); 

    定时3:=IF(DATE DAYN1,1,0); 

    所属:=STRCAT( 【所属板块】 ,STRCAT(STRCAT(STRCAT(  

    【行业】 ,HYBLOCK),STRCAT( 【地域】 ,DYBLOCK)),STRCAT( 【概 

    念】 ,GNBLOCK))); 

    DRAWTEXT_FIX(ISLASTBAR,0,0,0,所属板块),COLORYELLOW; 

    DRAWTEXT_FIX(1AND定时3,0.30,0.75,0, 如果看到这些文字, 

    说明【印钞机3代】指标公式试用已到期,如果认为对你炒股,炒原 

    油,炒外汇黄金 ),COLORYELLOW; 

    DRAWTEXT_FIX(1AND定时3,0.30,0.81,0, 等期货有用,请加设 

    计编写QQ:2679426676,或者到股票公式指标群重新下载,(**号: 

    303313976) ),COLORYELLOW; 

    DRAWTEXT_FIX(1AND定时3,0.30,0.87,0, 【印钞机3代】必须 

    与副图的【印钞机副图3】MACD指标同步使用,则神效更准, 

    高胜算率。 ),COLORYELLOW; 

    鬼头鬼脸鬼脚:IF(定时3,0,DRAWNULL),COLORBLUE; 

    KS:=(C-MA(C,13))/MA(C,13)*(-100); 

    RKS:=REF(KS,1); 

    MLS:=RKS/KS =1.23ANDRKS =8ANDC/REF(C,1) =1.02; 

    反弹:STICKLINE(MLS=1,H,L,0,1),COLORMAGENTA,LINETHICK1; 

    STICKLINE(MLS=1,O,C,7,1),COLORMAGENTA,LINETHICK1; 

    顶:COST(98),COLORYELLOW; 

    拉升:COST(75),COLOR0066CC; 

    平均成本:COST(50),COLORGREEN; 

    控盘成本30:COST(30),COLORLIGRAY; 

    成本5:COST(5),COLORCYAN; 

    底:COST(0.05)COLORBLUE; 

    N:=10; 

    V1:=ISLASTBAR; 

    V2:=REF(HIGH,N)=HHV(HIGH,2*N+1); 

    V3:=FILTER(V2,N); 

    V4:=BACKSET(V3,N+1); 

    V5:=FILTER(V4,N); 

    V6:=V5ORV1; 

    V7:=REF(LOW,N)=LLV(LOW,2*N+1); 

    V8:=FILTER(V7,N); 

    V9:=BACKSET(V8,N+1); 

    VA:=FILTER(V9,N); 

    VB:=VAANDNOT(V5); 

    VC:=BACKSET(V6,REF(BARSLAST(VB),1)+1); 

    VD:=VC REF(VC,1); 

    VE:=BACKSET(VD,2); 

    VF:=VE REF(VE,1); 

    V10:=BACKSET(VF 

    V11:=V10 REF(V10,1); 

    V12:=BACKSET(V11AND 

    COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2); 

    AND 

    COUNT(V6,REF(BARSLAST(VB),1)+2)=0,REF(BARSLAST(VB),1)+2); 

    V13:=V12 REF(V12,1); 

    V14:=IF(V6,COUNT(VB,REF(BARSLAST(V6),1)+1),0); 

    V15:=IF(V14=1ANDV6,BARSLAST(VF),0); 

    V16:=IF(V6 

    T(V11),BARSLAST(VF)); 

    V17:=IF(V14=2ANDV6,V16,0); 

    V18:=IF(V14 =3 

    ,0); 

    V19:=V15+V17+V18; 

    V1A:=BACKSET(V6,V19); 

    V1B:=V1A REF(V1A,1); 

    V1C:=BACKSET(V1B,2); 

    V1D:=V1C REF(V1C,1); 

    V1E:=V1DORV1; 

    V1F:=BACKSET(V1E,REF(BARSLAST(V6),1)+1); 

    V20:=V1F REF(V1F,1); 

    V21:=BACKSET(V20,2); 

    V22:=V21 REF(V21,1); 

    V23:=BACKSET(V22 

    2); 

    V24:=V23 REF(V23,1); 

    V25:=BACKSET(V24 

    2); 

    V26:=V25 REF(V25,1); 

    V27:=IF(V1E,COUNT(V5,REF(BARSLAST(V1E),1)+1),0); 

    V28:=IF(V27=1ANDV1E,BARSLAST(V22),0); 

    AND 

    COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+ 

    AND 

    COUNT(V1E,REF(BARSLAST(V6),1)+2)=0,REF(BARSLAST(V6),1)+ 

    ANDV6,IF(V6AND 

    REF(LOW,V16) =REF(LOW,BARSLAST(V13)),BARSLAST(V13),V16) 

    AND 

    REF(LOW,BARSLAST(VF)) =REF(LOW,BARSLAST(V11)),BARSLAS 

    V29:=IF(V1E 

    AST(V24),BARSLAST(V22)); 

    V2A:=IF(V27=2ANDV1E,V29,0); 

    V2B:=IF(V27 =3 

    9),0); 

    V2C:=V28+V2A+V2B; 

    V2D:=BACKSET(V1E,V2C); 

    V2E:=V2D REF(V2D,1); 

    V2F:=BACKSET(V2E,2); 

    V30:=V2F REF(V2F,1); 

    DRAWLINE(V1D,LOW,V30,HIGH,0),LINETHICK3; 

    DRAWLINE(V30,HIGH,V1D,LOW,0),LINETHICK3; 

    V31:=BACKSET(V1,BARSLAST(V1D)+1); 

    V32:=V31 REF(V31,1); 

    V33:=BACKSET(V1,BARSLAST(V30)+1); 

    V34:=V33 REF(V33,1); 

    V35:=IF(BARSLAST(V32) BARSLAST(V34),V32,V34); 

    V36:=IF(BARSLAST(V32) BARSLAST(V34),LOW,HIGH); 

    DRAWLINE(V35,V36,V1,CLOSE,0); 

    V37:=BACKSET(V1,BARSLAST(V1D)+1); 

    V38:=V37 REF(V37,1); 

    V39:=BACKSET(V38,REF(BARSLAST(V1D),1)+2); 

    V3A:=V39 REF(V39,1); 

    {DRAWLINE(V3A,LOW,V38,LOW,1);} 

    V3B:=BACKSET(V1,BARSLAST(V30)+1); 

    V3C:=V3B REF(V3B,1); 

    V3D:=BACKSET(V3C,REF(BARSLAST(V30),1)+2); 

    V3E:=V3D REF(V3D,1); 

    ANDV1E,IF(V1E 

    AND 

    REF(HIGH,BARSLAST(V22)) =REF(HIGH,BARSLAST(V24)),BARSL 

    AND 

    REF(HIGH,V29) =REF(HIGH,BARSLAST(V26)),BARSLAST(V26),V2 

    {DRAWLINE(V3E,HIGH,V3C,HIGH,1);} 

    {前一低:REF(LOW,BARSLAST(V38)),COLORCCFF99,DOTLINE; 

    前二低: 

    REF(LOW,BARSLAST(V3A)),COLORMAGENTA,DOTLINE; 

    前一高:REF(HIGH,BARSLAST(V3C)),COLORCCFF99; 

    前二高:REF(HIGH,BARSLAST(V3E)),COLORMAGENTA;} 

    {以下语句是指数显示} 

    A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); 

    C1:=BACKSET(B1,3+1);D1:=FILTER(C1,3);{高点} 

    A2:=REF(LOW,3)=LLV(LOW,2*3+1); 

    C2:=BACKSET(B2,3+1);D2:=FILTER(C2,3);{低点} 

    E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; 

    E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍} 

    H1:=(D1ANDNOT(D2ANDE1 =E2))ORISLASTBAROR 

    BARSCOUNT(CLOSE)=1; 

    L1:=(D2ANDNOT(D1ANDE1 E2));H2:=D1ANDNOT(D2 

    ANDE1 =E2); 

    X1:=REF(BARSLAST(H1),1)+1;F1:=BACKSET(H1AND 

    COUNT(L1,X1) 0,LLVBARS(IF(L1,LOW,10000),X1)); 

    G1:=F1 REF(F1,1);I1:=BACKSET(G1,2);LD:=I1 REF(I1,1);{过 

    滤后低点} 

    L2:=LDORISLASTBARORBARSCOUNT(CLOSE)=1; 

    X2:=REF(BARSLAST(L2),1)+1;F2:=BACKSET(L2AND 

    COUNT(H2,X2) 0,HHVBARS(IF(H2,HIGH,0),X2)); 

    G2:=F2 REF(F2,1);I2:=BACKSET(G2,2);HD:=I2 REF(I2,1);{过 

    滤后高点} 

    UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1); 

    VV:=UU REF(UU,1); 

    WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2); 

    XX:=WW REF(WW,1); 

    B2:=FILTER(A2,3); 

    B1:=FILTER(A1,3); 

    常 

    1:=REF(INDEXC,BARSLAST(VV))/REF(CLOSE,BARSLAST(VV)); 

    常 

    2:=REF(INDEXC,BARSLAST(XX))/REF(CLOSE,BARSLAST(XX)); 

    {DRAWNUMBER(HD,HIGH*(1+0.002),2),COLORFF00FF; 

    数数 

    DRAWNUMBER(LD,LOW*(1.001-0.002),2),COLORFF00FF;}{有 

    未来函数}; 

    {源码如下} 

    ZT:=C REF(C,1)*1.098ANDC=HANDPERIOD=5; 

    DT:=C REF(C,1)*0.902ANDC=LANDPERIOD=5; 

    STICKLINE(ZT,C,O,3.0,0),COLOR00BBFF; 

    STICKLINE(ZT,C,O,2.4,0),COLOR00CCFF; 

    STICKLINE(ZT,C,O,1.8,0),COLOR00DDFF; 

    STICKLINE(ZT,C,O,1.2,0),COLOR00EEFF; 

    STICKLINE(ZT,C,O,0.6,0),COLOR00FFFF; 

    STICKLINE(ZT,H,L,0.0,0),COLOR00FFFF; 

    STICKLINE(DT,C,O,3.0,0),COLOR00BB00; 

    STICKLINE(DT,C,O,2.4,0),COLOR00CC00; 

    STICKLINE(DT,C,O,1.8,0),COLOR00DD00; 

    STICKLINE(DT,C,O,1.2,0),COLOR00EE00; 

    STICKLINE(DT,C,O,0.6,0),COLOR00FF00; 

    STICKLINE(DT,H,L,0.0,0),COLOR00FF00; 

    STICKLINE(H=ZTPRICE(REF(C,1),0.1) 

    STICKLINE(L=DTPRICE(REF(C,1),0.1) 

    AND 

    AND 

    C H 

    C L 

    AND 

    AND 

    PERIOD=5,C,O,1,0),COLOR00FFFF;{盘中实体K线上画细黄柱} 

    PERIOD=5,C,O,1,0),COLOR00FF00;{盘中跌停实体K线上画细绿柱}; 

    N,1,100,30M,1,300,95} 

    V1:EMA(CLOSE,5),COLORYELLOW; 

    V2:=EMA(EMA(CLOSE,29)*1.01,10),COLORFFCC66; 

    DRAWICON(CROSS(V1,V2),V2,1); 

    V3:EMA(CLOSE,10),COLORFF00FF; 

    V4:EMA(EMA(CLOSE,60)*0.99,10),COLOR0099FF; 

    DRAWICON(CROSS(V3,V4),V4,1); 

    VAR1:=AMOUNT/VOL/100; 

    庄家运作成本:MA(CLOSE,18),COLORWHITE; 

    庄家平均成本:EMA(EMA(VAR1,2),N),COLOR00FF00; 

    庄家底仓成本:EMA(EMA(VAR1,13),M),COLORBLUE; 

    无穷成本:DMA(CLOSE,VOL/CAPITAL),COLORBLUE; 

    STICKLINE(C =O,C,O,3,0),COLOR00009F; 

    STICKLINE(C =O,C,O,1.5,0),,COLOR0E21C8{B0B0FF}; 

    {STICKLINE(C =O,C,O,1,0),COLORYELLOW;} 

    STICKLINE(C =O,H,L,0,0),,COLOR0E21FC; 

    STICKLINE(C =O,C,O,3,0),,,COLORC35924; 

    {STICKLINE(C =O,C,O,2,0),COLORFF6600;} 

    STICKLINE(C =O,C,O,1.5,0),{COLORCYAN;},COLORF37A2B; 

    STICKLINE(C =O,H,L,0,0),{COLORCYAN},COLORF37A89; 

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

    VAR327:=IF(CLOSE/REF(CLOSE,1) 1.050ANDHIGH/CLOSE 1.010andvar326 0,91, 

    0); 

    {STICKLINE(VAR327 90,L*0.99,L*0.95,4,0),COLORYELLOW;} 

    DRAWTEXT(VAR327 90,LOW*0.99, 追涨 

    ),COLORYELLOW;


    image.png



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


    输出开盘换手:开盘金额/开盘价/自由流通股本(股)*100

    输出开盘:开盘金额/开盘价/100/前5日每分钟均量

    输出竞价量:开盘金额/开盘价/1000000

    输出开盘首量:(当前离开盘分钟数+1日前的(手))[取日线数据]/10000

    输出封单额:买量(即买一量)*收盘价/100





    推荐阅读:赢家主力进场指标公式

     

    N:=9;M1:=3;M2:=3;P:=9; 

    RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; 

    K:=SMA(RSV,M1,1),COLORRED,LINETHICK2; 

    D:=SMA(K,M2,1),COLOR00FF00; 

    JJ:=P*(3*D-2*K),COLOR00FF00; 

    J:=((3*K)-(2*D)); 

    MAIRU:=CROSS(K,D)ANDK  

    MAICHU:=CROSS(D,K)ANDD  

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

    VAR6:=HHV(VAR4,30); 

    VAR7:=IF(MA(CLOSE,58),1,0); 

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

    VAR9:=IF(VAR8 100,100,VAR8); 

    吸筹:STICKLINE(VAR9 -120,0,VAR9,6,1),COLORF00FF0; 

    快线:(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,COLORFF937F; 

    慢线:SMA(快线,M1,1),COLORRED,LINETHICK2; 

    空:SMA(慢线,M2,1),COLOR00FF00; 

    :IF(BARSLAST(CROSS(慢线,空)) PANDBARSLAST(CROSS(空,慢线)) PAND 

    CROSS(慢线,空)AND慢线 20,90,0),STICK,COLORFF937F; 

    STICKLINE(牛股,0,90,6,1),LINETHICK4,STICK,COLORFF937F; 

    BB:=IF(BARSLAST(CROSS(慢线,快线)) =3ANDCROSS(快线,慢线)AND慢线 30,20,0); 

    买:STICKLINE(BB,0,20,7,1),COLORYELLOW; 

    AA:=IF(BARSLAST(CROSS(快线,慢线)) =4ANDCROSS(慢线,快线)AND快线 50,20,0); 

    卖:STICKLINE(AA,80,100,7,1),COLOR00FF00; 

    参数:N1(1,100,9),N2(1,100,5) 

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

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

    MAZL:MA(ZLGJ,N2),COLORYELLOW; 

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

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

    VAR3:=EMA(VAR2,10); 

    VAR4:=LLV(LOW,33); 

    VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3); 

    主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED,NODRAW; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR000055; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR000077; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR000099; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR0000BB; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR0000DD; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR0000FF; 

    洗盘:IF(VAR5 REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLOR005500; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.6,0),COLOR007700; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,2.1,0),COLOR009900; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00; 

    STICKLINE(VAR5 REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;

    image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 出手就赢主图指标公式(庄家成本主图指标公式) 加入收藏