最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 改“跟庄利器”为飞狐可用指标

    正文概述    2024-04-14 08:10:07  

    九毛八公式指标

    公式模块:

    各位老师好,麻烦请将下面这个通达信的分时公式改写为飞狐的,并写一个当出现“机构”买点(也就是图中的红线上穿绿线,出现红色实心圆点)时的预警公式,适用周期:1分钟。适用软件:飞狐。谢谢!!

    {跟庄利器}
    A1:=(Dvol/C)/2,NODRAW;
    A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
    A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
    A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
    A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
    A6:=A2+A3+A4+A5;
    机买:(A2/A6)*100,LINETHICK2,COLORRED;
    机卖:(A3/A6)*100,LINETHICK2,COLORGREEN;
    散买:(A4/A6)*100,LINETHICK0;
    散卖:(A5/A6)*100,LINETHICK0;
    主力差:机买-机卖,LINETHICK2,NODRAW;
    散户差:散买-散卖,LINETHICK0,NODRAW;
    DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*0.85,'●机构'),COLORRED;
    DRAWTEXT(主力差<0 AND REF(主力差,1)>=0,-C*0.85,'○机构'),COLORWHITE;
    DRAWTEXT(散户差>0 AND REF(散户差,1)<=0,C*0.15,'▲散户'),COLORCYAN;
    DRAWTEXT(散户差<0 AND REF(散户差,1)>=0,-C*0.15,'△散户'),COLORWHITE;

    A1:=(VOL/C)/2;
    A2:=SUM(IF(A1>100 AND CLOSE>REF(CLOSE,1),A1,0),0);
    A3:=SUM(IF(A1>100 AND CLOSE<REF(CLOSE,1),A1,0),0);
    A4:=SUM(IF(A1<100 AND CLOSE>REF(CLOSE,1),A1,0),0);
    A5:=SUM(IF(A1<100 AND CLOSE<REF(CLOSE,1),A1,0),0);
    A6:=A2+A3+A4+A5;
    机买:(A2/A6)*100,LINETHICK2,COLORRED;
    机卖:(A3/A6)*100,LINETHICK2,COLORGREEN;
    散买:(A4/A6)*100,LINETHICK0;
    散卖:(A5/A6)*100,LINETHICK0;
    主力差:机买-机卖,LINETHICK0;
    散户差:散买-散卖,LINETHICK0;
    DRAWTEXT(主力差>0 AND REF(主力差,1)<=0,C*0.85,'●机构'),COLORRED;
    DRAWTEXT(主力差<0 AND REF(主力差,1)>=0,-C*0.85,'○机构'),COLORWHITE;
    DRAWTEXT(散户差>0 AND REF(散户差,1)<=0,C*0.15,'▲散户'),COLORCYAN;
    DRAWTEXT(散户差<0 AND REF(散户差,1)>=0,-C*0.15,'△散户'),COLORWHITE;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 改“跟庄利器”为飞狐可用指标 加入收藏