最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 飞狐提示K线主图指标

    正文概述    2024-04-14 15:27:54  

    源码

    dat:=ISLASTBAR;
    jia1:=100-100*(C-COST(1))/(COST(99)-COST(1));
    jia2:=100*winner((2*c+h+l)/4);
    jia:=jia2>=jia1;
    DRAWNUMBER(dat=1,l*0.98,100*v/capital,2),coloryellow;
    DRAWNUMBER(c>=ref(c,1) and dat,h*1.03,100*(c-ref(c,1))/ref(c,1),2),colorred;
    DRAWNUMBER(c=o and jia=1,c,o,8,0),color0000ff;
    STICKLINE(c>=o and jia=1,c,o,7,0),color0033ff;
    STICKLINE(c>=o and jia=1,c,o,6,0),color0066ff;
    STICKLINE(c>=o and jia=1,c,o,5,0),color0099ff;
    STICKLINE(c>=o and jia=1,c,o,4,0),color00ccff;
    STICKLINE(c>=o and jia=1,c,o,2,0),color00ffff;
    STICKLINE(c>=o and jia=1,h,l,1,0),color00ffff;
    STICKLINE(c
    STICKLINE(c
    STICKLINE(c
    STICKLINE(c
    STICKLINE(c
    STICKLINE(c
    STICKLINE(c
    forcast(c,5);
    forcast(c,10);
    forcast(c,20);
    dma(c,if(capital>0,v/capital,v/sum(v,120))),linethick1,colorffff00;
    大盘涨跌:indexc-ref(indexc,1),linethick0,PRECISION2;
    Var11:=winner(c);
    Var21:=winner(o);
    Var31:=winner(h);
    Var41:=winner(l);
    aa1:=1-ABS(sqrt((CLOSE-MA(CLOSE,15))/MA(CLOSE,5))),coloryelloow;
    bb1:=winner(cost(100*aa1));
    c11:=if(var11>=bb1,var11,bb1);
    c21:=if(var21>=bb1,var21,bb1);
    c31:=if(var31>=bb1,var31,bb1);
    c41:=if(var41>=bb1,var41,bb1);
    c1011:=max(c11,c21);
    c1021:=max(c21,c31);
    c1031:=max(c1011,c1021);
    c2011:=min(c11,c21);
    c2021:=min(c21,c41);
    c2031:=min(c2011,c2021);
    c3031:=BETWEEN(var11,1.0001,bb1) or BETWEEN(var21,1.0001,bb1) or BETWEEN(var31,1.0001,bb1) or BETWEEN(var41,1.0001,bb1);
    STICKLINE(c3031=1,cost(100*c2031),cost(100*c1031),2,0),colorred;

    Var1:=winner(c);
    Var2:=winner(o);
    Var3:=winner(h);
    Var4:=winner(l);
    aa:=1-ABS((CLOSE-MA(CLOSE,15))/MA(CLOSE,5)),coloryelloow;
    bb:=winner(cost(100*aa));
    c1:=if(var1>=bb,var1,bb);
    c2:=if(var2>=bb,var2,bb);
    c3:=if(var3>=bb,var3,bb);
    c4:=if(var4>=bb,var4,bb);
    c101:=max(c1,c2);
    c102:=max(c2,c3);
    c103:=max(c101,c102);
    c201:=min(c1,c2);
    c202:=min(c2,c4);
    c203:=min(c201,c202);
    c303:=BETWEEN(var1,1.0001,bb) or BETWEEN(var2,1.0001,bb) or BETWEEN(var3,1.0001,bb) or BETWEEN(var4,1.0001,bb);
    STICKLINE(c303=1,cost(100*c203),cost(100*c103),3,0),colormagenta;
    留意该价位:cost(100*aa),linethick0,PRECISION2,coloryellow;
    %≈:-100*(留意该价位-c)/c,,linethick0,PRECISION2,coloryellow;
    STICKLINE(c303=1,1.001*cost(100*aa),0.999*cost(100*aa),14,0);
    DRAWTEXT(c303=1 and dat=1 and c>=cost(100*aa),l,'★★★'),colorred;
    DRAWTEXT(c303=1 and dat=1 and c/(sum(c,6)-c)>ref(c/(sum(c,6)-c),1) and c>=cost(100*aa) ,l,'★★★★★'),colorred;

     


    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 飞狐提示K线主图指标 加入收藏