最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 通达信适合短期波段指标一根线快线上拐就可以+主图虚拟成交量

    正文概述    2024-04-14 15:01:49  

    适合短期做波段的指标,一根线快线上拐就可以。不上拐与我无关。
    另有主图成交量,新版通达信可以用。(感谢任我行2010老师)
    方便参考放在副图中,个人改成主图叠加即可。
     


    {指标源码}
    快线:EMA(C,3),COLORYELLOW;
    中线:EMA(C,5),COLOR00FF00;
    均衡:EMA(中线,5),COLORWHITE;
    VARF1:=COUNT(CROSS(快线,均衡),2)=1;
    VARF2:=COUNT(CROSS(中线,均衡),2)=1;
    ZAI:=FILTER(VARF1 AND VARF2,2);
    DRAWTEXT(ZAI,均衡*0.98,' 主升'),COLOR00FF00;
    VV2:=REF(CLOSE,1);
    VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;
    DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);
    DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH,' 沽空↓'),COLORYELLOW;
    VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;
    DRAWTEXT(IF(CLOSEMA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
    VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);
    DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');
    VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
    DRAWICON(CROSS(82,VARR1),HIGH*1.01,2);
    DRAWTEXT(CROSS(FILTER(82,VARR1),5),HIGH*1.01,'短空↓'),COLORYELLOW;
    VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
    VAR2:=REF(VAR1,1);
    VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
    HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
    DRAWTEXT(HY3,LOW,' 注意买入'),COLORYELLOW;
    S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;
    A:=MA(S,5),COLORGREEN,,LINETHICK2;
    BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;
    F:=MA(S,121);
    RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
    K:=SMA(RSV,15,1);
    D:=SMA(K,15,1);
    J:=3*K-2*D;
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    DRAWTEXT(CROSS(84,RSI) , HIGH*1.04,'逃顶!'),COLORYELLOW ;
    S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLOR00FF00;
    DRAWTEXT(S1=2,LOW,'关注!'), COLORGREEN;
    中轨:HHV(MA(H,13),13),COLORRED,DOTLINE;
    趋势:LLV(MA(H,13),1),COLORGREEN,DOTLINE;
    {主图成交量}
    TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
    MTIME:=MOD(FROMOPEN,TOTAL);
    CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
    VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL);
    MAXV:=CONST(HHV(VOL,21));
    MAXS:=CONST(HHV(HIGH,21));
    BS:=MAXV/MAXS;
    VOLUME:=VOL/BS*0.10;
    ORIGIN:=CONST(LLV(LOW,0))-CONST(0.5*HHV(VOLUME,0)),;
    STICKLINE(CLOSE>=OPEN,ORIGIN,ORIGIN+VOLUME,0.2,0),COLORRED;
    STICKLINE(CLOSE STICKLINE(CURRBARSCOUNT=1 && (SETCODE=0 || SETCODE=1),VVOL/BS*0.10+ORIGIN,ORIGIN+VOLUME,0.2,-1),COLOR00C0C0;
    NOTEXT1:MA(VOLUME,5)+ORIGIN;
    NOTEXT2:MA(VOLUME,10)+ORIGIN;
    NOTEXT3:MA(VOLUME,20)+ORIGIN;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信适合短期波段指标一根线快线上拐就可以+主图虚拟成交量 加入收藏