最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 涨跌幅度(主图,源码,贴图)

    正文概述    2024-04-07 18:48:18  

    此指标是利用近期的低高点(也可是波段)的涨跌幅度研判来做止跌止盈操作
    {涨跌幅度ZD: 0 550J: 020ZG:0 255 0J2: 0 2 0}
    最低:=TROUGHBARS(L,ZD,1);
    低价:=REF(L,BARSLAST(最低=0));
    低价_:DRAWLINE(最低=0 AND ZD 0,L,ISLASTBAR,低价,0),COLORFFFF00;
    FU:=C-低价_;
    低到当前幅度:FU/低价_*100,NODRAW,COLOR00FFFF;
    _3%:DRAWLINE(最低=0 AND J =1,L*1.03,ISLASTBAR,低价*1.03,0),COLOR999999;
    _5%:DRAWLINE(最低=0 AND J =1,L*1.05,ISLASTBAR,低价*1.05,0),COLOR999999;
    _8%:DRAWLINE(最低=0 AND J =1,L*1.08,ISLASTBAR,低价*1.08,0),COLOR999999;
    _13%:DRAWLINE(最低=0 AND J =1,L*1.13,ISLASTBAR,低价*1.13,0),COLOR999999;
    _18%:DRAWLINE(最低=0 AND J =2,L*1.18,ISLASTBAR,低价*1.18,0),COLOR999999;
    _25%:DRAWLINE(最低=0 AND J =2,L*1.25,ISLASTBAR,低价*1.25,0),COLOR999999;
    最高:=PEAKBARS(H,ZG,1);
    高价:=REF(H,BARSLAST(最高=0));
    高价_:DRAWLINE(最高=0 AND ZG 0,H,ISLASTBAR,高价,0),COLORFFFF00;
    _3%A:DRAWLINE(最高=0 AND J2 =1,H*0.97,ISLASTBAR,高价*0.97,0),COLOR999900;
    _5%A:DRAWLINE(最高=0 AND J2 =1,H*0.95,ISLASTBAR,高价*0.95,0),COLOR999900;
    _8%A:DRAWLINE(最高=0 AND J2 =1,H*0.92,ISLASTBAR,高价*0.92,0),COLOR999900;
    _13%A:DRAWLINE(最高=0 AND J2 =1,H*0.87,ISLASTBAR,高价*0.87,0),COLOR999900;
    _18%A:DRAWLINE(最高=0 AND J2 =1,H*0.82,ISLASTBAR,高价*0.82,0),COLOR999900;
    _28%A:DRAWLINE(最高=0 AND J2 =2,H*0.72,ISLASTBAR,高价*0.72,0),COLOR999900;
    _36%A:DRAWLINE(最高=0 AND J2 =2,H*0.64,ISLASTBAR,高价*0.64,0),COLOR999900;
    DRAWTEXT(最低=0 AND _3%,_3%*1.009,'3%'),COLOR208FFF;
    DRAWTEXT(最低=0 AND _5%,_5%*1.009,'5%'),COLOR208FFF;
    DRAWTEXT(最低=0 AND _8%,_8%*1.009,'8%'),COLOR208FFF;
    DRAWTEXT(最低=0 AND _13%,_13%*1.009,'13%'),COLOR208FFF;
    DRAWTEXT(最低=0 AND _18%,_18%*1.009,'18%'),COLOR208FFF;
    DRAWTEXT(最低=0 AND _25%,_25%*1.009,'25%'),COLOR208FFF;
    DRAWTEXT(最高=0 AND _3%A,_3%A*1.0099,' 3%'),COLOR00DDDD;
    DRAWTEXT(最高=0 AND _5%A,_5%A*1.0099,' 5%'),COLOR00DDDD;
    DRAWTEXT(最高=0 AND _8%A,_8%A*1.0099,' 8%'),COLOR00DDDD;
    DRAWTEXT(最高=0 AND _13%A,_13%A*1.0099,' 13%'),COLOR00DDDD;
    DRAWTEXT(最高=0 AND _18%A,_18%A*1.0099,' 18%'),COLOR00DDDD;
    DRAWTEXT(最高=0 AND _28%A,_28%A*1.0099,' 28%'),COLOR00DDDD;
    DRAWTEXT(最高=0 AND _36%A,_36%A*1.0099,' 36%'),COLOR00DDDD;
    LC := REF(CLOSE,1);
    RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    GB:IF(RSI1 76,H*1.001,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORFFFF00;
    GBB:IF(RSI1 80,H*1.002,DRAWNULL),CROSSDOT,LINETHICK3,COLOR0000FF;
    AS:=(O+H+L+C)/4;
    BL:EMA(AS,17),LINETHICK2,COLORFF6000;
    DRAWNUMBER(ISLASTBAR AND BL,BL*1.005,BL);
    XGM:=CROSS(C,BL);
    DRAWICON(XGM,BL,9);
    IF(BL REF(BL,1),BL,DRAWNULL),LINETHICK2,COLORYELLOW;


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 涨跌幅度(主图,源码,贴图) 加入收藏