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

    正文概述    2024-05-04 04:17:59  
        通达信公式函数涨跌幅


      {涨幅:-30,30,3。TP转换PW:0,1,1。}

        移动线:IF(LLVBARS(V,5),REF(C,LLVBARS(V,5)),C),COLORGREEN,DOTLINE;

        TP线:PEAK(移动线,0.2,1),COLORLIRED,NODRAW;

        STICKLINE(TP线 0,TP线,TP线,4,-1),COLORLIRED;

        PW线:TROUGH(移动线,0.2,1),COLORCYAN,NODRAW;

        STICKLINE(PW线 0,PW线,PW线,4,-1),COLORCYAN;

        PW:=CONST(PW线);

        TP:=CONST(TP线);

        ZH:=IF(TP转换PW=1,PW,TP);

        最低:=TROUGHBARS(移动线,0.2,1);

        幅度:=1+(涨幅/100);

        涨幅尺%:DRAWLINE(最低=0,ZH*幅度,ISLASTBAR,ZH*幅度,1),COLOR00BBFF;

        DRAWTEXT(ISLASTBAR,涨幅尺%, 涨幅尺 ),COLOR00BBFF;

        SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));

        饱和:=IF(SAT 1,1,SAT)*100,NODRAW;

        获利:=WINNER(C)*100,NODRAW;

        LC:=REF(CLOSE,1);

        RSI值:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;

        WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;

        活跃:=(RSI值-WR10);

        活跃度比:=IF(活跃 =0,(活跃+100)/2,100-ABS((活跃-100)/2)),NODRAW;

        DRAWRECTREL(80,10,240,60,RGB(0,75,200));

        DRAWRECTREL(80,10,160,60,RGB(0,100,0));

        DRAWRECTREL(80,10,80+CONST(活跃度比*160/100),60,RGB(200,0,50));

        DRAWTEXT_FIX(1,0.00,0.01,0,STRCAT(STRCAT( 活跃度比: ,CON2STR(活跃

        度比,2)), % )),COLORYELLOW;

        DRAWRECTREL(80,70,240,120,RGB(0,75,200));

        DRAWRECTREL(80,70,160,120,RGB(0,100,0));

        DRAWRECTREL(80,70,80+CONST(获利筹码*160/100),120,RGB(200,0,50));

        DRAWTEXT_FIX(1,0.00,0.07,0,STRCAT(STRCAT( 获利筹码: ,CON2STR(获利

        筹码,2)), % )),COLORYELLOW;

        DRAWRECTREL(80,130,240,180,RGB(0,75,200));

        DRAWRECTREL(80,130,160,180,RGB(0,100,0));

        DRAWRECTREL(80,130,80+CONST(量能饱和*160/100),180,RGB(200,0,50));

        DRAWTEXT_FIX(1,0.00,0.13,0,STRCAT(STRCAT( 量能饱和: ,CON2STR(量能

        饱和,2)), % )),COLORYELLOW;

        N:=27;

        {预测当天最低价公式}

        A1:=REF(O,1);

        A2:=ABS((REF(C,1)-A1)/A1);

        A3:=ABS((REF(H,1)-A1)/A1);

        A4:=ABS((REF(L,1)-A1)/A1);

        B1:=ABS((A2+A3+A4)/3);

        B2:=O*B1;

        预测低一:=O-B2;

        预测高一:=O+B2;

        开盘价1:=OPEN;

        开盘价2:=REF(OPEN,1);

        最高价1:=HIGH;

        最高价2:=REF(HIGH,1);

        最低价1:=LOW;

        最低价2:=REF(LOW,1);

        收盘价1:=CLOSE;

        收盘价2:=REF(CLOSE,1);

        AA:=最高价2;

        BB:=最低价2;

        CC:=开盘价2;

        DD:=收盘价2;

        EE:=(AA+BB+CC+2*DD)/5;

        AAA:=EE+(AA-BB);

        BBB:=2*EE-BB;

        CCC:=2*EE-AA;

        DDD:=EE-(AA-BB);

        上升价:=AAA;

        上升阻力价:=BBB;

        下跌支撑价:=CCC;

        下跌价:=DDD;

        EEE:=(EE+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;

        心理价:=EEE;

        FFF:=(EEE+开盘价1)/2;

        GGG:=(预测低一+FFF)/2;

        预测低二:=GGG;

        预测高二:=MA(REF(HIGH,1)/REF(CLOSE,2),N)*REF(CLOSE,1);

        买回价:=预测低二*1.015;

        卖出价:=买回价*(1+0.03);

        DRAWTEXT_FIX(1,0.085,0.21,1, 买回价格: ),COLOR8080FF;

        DRAWNUMBER_FIX(1,0.15,0.21,1,CONST(买回价)),COLOR8080FF;

        DRAWTEXT_FIX(1,0.17.5,0.21,1, 元 ),COLOR8080FF,LINETHICK1;

        DRAWTEXT_FIX(1,0.085,0.25,1, 预测低一: ),COLORYELLOW;

        DRAWNUMBER_FIX(1,0.15,0.25,1,CONST(预测低一)),COLORYELLOW;

        DRAWTEXT_FIX(1,0.17,0.25,1, 元 ),COLORYELLOW,LINETHICK1;

        DRAWTEXT_FIX(1,0.085,0.29,1, 预测低二: ),COLORYELLOW;

        DRAWNUMBER_FIX(1,0.15,0.29,1,CONST(预测低二)),COLORYELLOW;

        DRAWTEXT_FIX(1,0.17,0.29,1, 元 ),COLORYELLOW,LINETHICK1;

        DRAWTEXT_FIX(1,0.085,0.33,1, 卖出价格: ),COLOR8080FF;

        DRAWNUMBER_FIX(1,0.15,0.33,1,CONST(卖出价)),COLOR8080FF;

        DRAWTEXT_FIX(1,0.17,0.33,1, 元 ),COLOR8080FF,LINETHICK1;

        DRAWTEXT_FIX(1,0.085,0.37,1, 预测高一: ),COLORFFFFFF;

        DRAWNUMBER_FIX(1,0.15,0.37,1,CONST(预测高一)),COLORFFFFFF;

        DRAWTEXT_FIX(1,0.17,0.37,1, 元 ),COLORFFFFFF,LINETHICK1;

        DRAWTEXT_FIX(1,0.085,0.41,1, 预测高二: ),COLORFFFFFF;

        DRAWNUMBER_FIX(1,0.15,0.41,1,CONST(预测高二)),COLORFFFFFF;

        DRAWTEXT_FIX(1,0.17,0.41,1, 元 ),COLORFFFFFF,LINETHICK1;

        红色雷

        达:IF(CLOSE SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORRED,CIRCLEDOT;

        绿色雷

        达:IF(CLOSE =SAR(4,2,20),SAR(4,2,20),DRAWNULL),COLORGREEN,CIRCLED

        OT;

     image.png

       通达信涨幅公式


        涨幅:(H-REF(C,1))/(REF(C,1))*100;

        跌幅:(-(REF(C,1)-L)/(REF(C,1)))*100;

        STICKLINE(跌幅 0,0,跌幅,10,0),COLORRED;

        STICKLINE(涨幅 0,0,涨幅,10,0),COLORBLUE;

        %:VOL/CAPITAL*100,LINETHICK0,COLORYELLOW;

        :V/(REF(MA(V,5),1)),LINETHICK0,COLORRED;

        VVOL:=IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;

        虚拟量比:VVOL/(REF(MA(V,5),1)),LINETHICK0,COLORRED;

        获利比例%:WINNER(C)*100,COLORLIBLUE;

        涨幅%:(C-REF(C,1))/REF(C,1)*100,LINETHICK0;

        换手率%1:=换手率% 5;

        量比1:=量比 1.5OR虚拟量比 1.5;

        获利比例%1:=获利比例% 70;

        涨幅%1:=涨幅% 3;

        启动:=换手率%1AND量比1AND获利比例%1AND涨幅%1;

        起涨点:IF(启动,101,0)COLORRED,LINETHICK2;


       image.png


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 通达信公式函数涨跌幅 通达信涨幅公式 加入收藏