最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 看长做短(朋友要的自用的乖离率指标,源码,附图)

    正文概述    2024-04-13 12:05:27  

    {乖离率指标公式}

    BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
    BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
    BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
    BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
    乖离:=MA(BIAS,3);
    DRAWTEXT(CROSS(BIAS,乖离) AND 乖离<-9,0.5,'底'),COLORWHITE;
    STICKLINE(CROSS(BIAS,乖离) AND 乖离<-9,0,0.4,4,0),COLORLIGRAY;
    短买:IF(BIAS1<=-6,0.2,0),COLORYELLOW,LINETHICK2;
    中买:IF(BIAS2<=-10,0.4,0),COLORMAGENTA,LINETHICK2;
    长买:IF(BIAS3<=-16,0.6,0),COLORRED,LINETHICK2;
    短卖:IF(BIAS1>=6,0.8,1),COLORFF8000,LINETHICK2;
    中卖:IF(BIAS2>=10,0.6,1),COLORCYAN,LINETHICK2;
    长卖:IF(BIAS3>=16,0.4,1),COLORGREEN,LINETHICK2
     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 看长做短(朋友要的自用的乖离率指标,源码,附图) 加入收藏