最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信操盘手至尊公式

    正文概述    2024-04-13 13:31:54  

    源码

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

    BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;

    速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);

    SJTJ:=DATE<1590301;

    加速度5:=EMA((速度5-REF(速度5,1)),3),LINETHICK0;

    AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;

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

    VAR1:=(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);

    VAR2:=(AA30-AA20)

    BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;

    强势狙击:=FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);

    加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1  AND SJTJ AND AA05>REF(AA05,1)  AND 三拾日乖离率>REF(三拾日乖离率,1) AND

    AA10>REF(AA10,1) AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1)  ,10) ;

    清仓:=FILTER(COUNT(CROSS(30,BB05),5)>=1 AND (C>AA30 OR O>AA30)  AND SJTJ AND

    AA05

    DRAWTEXT(加仓 ,LOW*0.98,50),COLORMAGENTA;

    JC:=CROSS(0,五日乖离率) AND 三拾日乖离率REF(AA10,1) ;

    减仓:=FILTER(JC,10);

    MR:=COUNT(CROSS(五日乖离率,0),3)>=1

    AND 三拾日乖离率>REF(三拾日乖离率,1)  AND SJTJ AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5

    AND REF(C,1)

    买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*1.01,51),COLORCYAN;

    DRAWTEXT(买入  AND SJTJ,LOW*0.99,52),COLORYELLOW;

    DRAWTEXT(清仓  AND SJTJ ,HIGH*1.02,53),COLORGREEN;

    DRAWTEXT(强势狙击  AND SJTJ,LOW*0.98,54),COLORYELLOW;

    VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW));

    VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;

    Z:=REF(CLOSE,4);

    Q:=REF(CLOSE,10);

    XX1:=MIN(Z,Q);

    DD1:=MAX(Z,Q);

    XX2:=(LLV(LOW,5)+XX1)/2;

    DD2:=(HHV(HIGH,5)+DD1)/2;

    XXX:=MIN(XX1,XX2);

    DDD:=MAX(DD1,DD2);

    KK8:=BARSLAST(CROSS(XXX,CLOSE));

    KD8:=BARSLAST(CROSS(CLOSE,DDD));

    DK11:=KK8>KD8;

    KK11:=KD8>KK8;

    MAH:=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171;

    MAL:=(L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171;

    DK12:=  CLOSE>=MAH ;KK12:=  MAL>CLOSE;

    DK:= SJTJ&&((DK11 AND C<=12000) ||(DK12 AND C>12000));

    KK:= SJTJ&&((KK11 AND C<=12000) ||(KK12 AND C>12000));

    DK1:=BARSLAST(DK);

    KK1:=BARSLAST(KK);

    DK2:=BARSLAST(CROSS(KK1,DK1));

    KK2:=BARSLAST(CROSS(DK1,KK1));

    HS:=DK2

    LS:=KK2

    W2:=OPEN-CLOSE;

    HT:=IF(OPEN>CLOSE,OPEN,CLOSE);

    LT:=IF(OPEN

    STICKLINE(HS,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR001050;

    STICKLINE(LS,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLORBLACK;

    STICKLINE(W2>0 AND HS,OPEN,CLOSE,2,0),COLORRED;

    STICKLINE(W2>0 AND HS,OPEN,H,0.0,0),COLORRED;

    STICKLINE(W2>0 AND HS,C,L,0.0,0),COLORRED;

    STICKLINE(W2<=0 AND HS,OPEN,CLOSE,2,1),COLORRED;

    STICKLINE(W2<=0 AND HS,O,L,0.0,0),COLORRED;

    STICKLINE(W2<=0 AND HS,C,H,0.0,0),COLORRED;

    STICKLINE(W2>0 AND LS,OPEN,CLOSE,2,0),COLORGREEN;

    STICKLINE(W2>0 AND LS,OPEN,H,0.0,0),COLORGREEN;

    STICKLINE(W2>0 AND LS,C,L,0.0,0),COLORGREEN;

    STICKLINE(W2<=0 AND LS,OPEN,CLOSE,2,1),COLORGREEN;

    STICKLINE(W2<=0 AND LS,C,H,0.0,0),COLORGREEN;

    STICKLINE(W2<=0 AND LS,O,L,0.0,0),COLORGREEN;

    DRAWTEXT(HS=1 AND REF(LS,1),LOW*0.995,20),COLORYELLOW;

    DRAWTEXT(LS=1 AND REF(HS,1),H*1.005,21),COLORYELLOW;

    趋势线:=(MAH+MAL)/2 COLORGREEN,,LINETHICK2;

    趋势线上升:IF(HS,趋势线,DRAWNULL),LINETHICK2,COLORRED;

    趋势线下降:IF(LS,趋势线,DRAWNULL),LINETHICK2,COLORGREEN;

    DRAWNUMBER(ISLASTBAR AND LS AND C>12000,MAH,MAH),COLORYELLOW;

    DRAWNUMBER(ISLASTBAR AND HS AND C>12000,MAL,MAL),COLORYELLOW;

    DRAWNUMBER(ISLASTBAR AND LS AND C<=12000,DDD,DDD),COLORYELLOW;

    DRAWNUMBER(ISLASTBAR AND HS AND C<=12000,XXX,XXX),COLORYELLOW;

    DRAWNUMBER(ISLASTBAR  ,C,C),COLORMAGENTA;

    最新价:IF(SJTJ, C,DRAWNULL),LINETHICK0,COLORYELLOW;
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信操盘手至尊公式 加入收藏