最新公告
  • 欢迎您光临九毛八公式指标网www.9m8.cn,本站全新改版试运行,期间内容全部免费,欢迎下载!欢迎加入本站VIP
  • 把机构买卖改成飞狐可用的

    正文概述    2024-04-14 08:05:58  

    九毛八公式指标

    公式模块:

    求助,请老师把机构买卖改成飞狐可用的,谢谢!

    {机构买卖}
    A1:=SUM(IF(CLOSE>REF(CLOSE,1),vol/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0);
    成交额:=V*C/100,NODRAW;{万元}
    A2:=SUM((IF(((成交额/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
    A3:=SUM((IF(((成交额/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
    A4:=SUM((IF(((成交额/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交额,0)),0);
    A5:=SUM((IF(((成交额/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交额,0)),0);
    A6:=((A2+A3)+A4)+A5;
    A7:=IF((ISLASTBAR),((100*A2)/A6),0);
    A8:=IF((ISLASTBAR),((100*A3)/A6),0);
    A9:=IF((ISLASTBAR),((100*A4)/A6),0);
    A10:=IF((ISLASTBAR),((100*A5)/A6),0);
    增减仓%:A1;
    机构买盘:(A2),LINETHICK6,COLORRED;
    机构卖盘:(A3),LINETHICK6,COLORFFFF55;
    机构进出:机构买盘-机构卖盘,NODRAW;
    散户买盘:(A4),COLOR5555FF;{细红线}
    散户卖盘:(A5),COLOR55FF55;{细绿线}
    强势:((100*A2)/A6>50);
    STICKLINE(强势,机构买盘*1.02,机构买盘*1.1,1,0),COLORYELLOW;
    拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
    STICKLINE(拉升,机构买盘*1.1,机构买盘*1.2,1,0),COLORFF00FF;
    DRAWTEXT(ISLASTBAR=1,机构买盘*0.95,'●机构买盘'),LINETHICK2,COLORRED;
    DRAWTEXT(ISLASTBAR=1,机构卖盘*0.95,'○机构卖盘'),LINETHICK2,COLORFFFF55;
    DRAWTEXT(机构进出>0 AND REF(机构进出,1)<=0,机构买盘*1.02,'●机买'),COLORRED;
    DRAWTEXT(机构进出<0 AND REF(机构进出,1)>=0,机构买盘*0.98,'○机卖'),COLORFFFF55;

    A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL/CAPITAL*100,IF(CLOSE<REF(CLOSE,1),-VOL/CAPITAL*100,0)),0);
    成交:=V*C/100;{万元}
    A2:=SUM((IF(((成交/8>20) AND (CLOSE>(REF(CLOSE,1)))),成交,0)),0);
    A3:=SUM((IF(((成交/8>20) AND (CLOSE<(REF(CLOSE,1)))),成交,0)),0);
    A4:=SUM((IF(((成交/8<20) AND (CLOSE>(REF(CLOSE,1)))),成交,0)),0);
    A5:=SUM((IF(((成交/8<20) AND (CLOSE<(REF(CLOSE,1)))),成交,0)),0);
    A6:=((A2+A3)+A4)+A5;
    A7:=IF((ISLASTBAR),((100*A2)/A6),0);
    A8:=IF((ISLASTBAR),((100*A3)/A6),0);
    A9:=IF((ISLASTBAR),((100*A4)/A6),0);
    A10:=IF((ISLASTBAR),((100*A5)/A6),0);
    增减仓%:A1;
    机构买盘:(A2),LINETHICK6,COLORRED;
    机构卖盘:(A3),LINETHICK6,COLORFFFF55;
    机构进出:机构买盘-机构卖盘,linethick;
    散户买盘:(A4),COLOR5555FF;{细红线}
    散户卖盘:(A5),COLOR55FF55;{细绿线}
    强势:((100*A2)/A6>50);
    STICKLINE(强势,机构买盘*1.02,机构买盘*1.1,1,0),COLORYELLOW;
    拉升:((100*A2)/A6-(100*A3)/A6)>18 AND (100*A2)/A6-(100*A5)/A6>18;
    STICKLINE(拉升,机构买盘*1.1,机构买盘*1.2,1,0),COLORFF00FF;
    DRAWTEXT(ISLASTBAR=1,机构买盘*0.95,'●机构买盘'),LINETHICK2,COLORRED;
    DRAWTEXT(ISLASTBAR=1,机构卖盘*0.95,'○机构卖盘'),LINETHICK2,COLORFFFF55;
    DRAWTEXT(机构进出>0 AND REF(机构进出,1)<=0,机构买盘*1.02,'●机买'),COLORRED;
    DRAWTEXT(机构进出<0 AND REF(机构进出,1)>=0,机构买盘*0.98,'○机卖'),COLORFFFF55;

    九毛八公式指标,一个优质的公式指标平台!
    九毛八公式指标 » 把机构买卖改成飞狐可用的 加入收藏