C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- N:=5;
- XDLR:="SJLY.XDLR#day";
- XDLC:="SJLY.XDLC#day";
- ZDLR:="SJLY.ZDLR#day";
- ZDLC:="SJLY.ZDLC#day";
- DDLR:="SJLY.DDLR#day";
- DDLC:="SJLY.DDLC#day";
- TDLR:="SJLY.TDLR#day";
- TDLC:="SJLY.TDLC#day";
- ZLLR:="SJLY.ZLLR#day";
- ZLLC:="SJLY.ZLLC#day";
- XDMR:=AMOUNT*XDLR/10000;
- XDMC:=AMOUNT*XDLC/10000;
- ZDMR:=AMOUNT*ZDLR/10000;
- ZDMC:=AMOUNT*ZDLC/10000;
- DDMR:=AMOUNT*DDLR/10000;
- DDMC:=AMOUNT*DDLC/10000;
- TDMR:=AMOUNT*TDLR/10000;
- TDMC:=AMOUNT*TDLC/10000;
- ZLMR:=AMOUNT*ZLLR/10000;
- ZLMC:=AMOUNT*ZLLC/10000;
- ZLJM:=SUM(ZLMR-ZLMC,N);
- XDJM:=SUM(XDMR-XDMC,N);
- ZDJM:=SUM(ZDMR-ZDMC,N);
- DDJM:=SUM(DDMR-DDMC,N);
- TDJM:=SUM(TDMR-TDMC,N);
- ZLJM:=SUM(ZLMR-ZLMC,N);
- 散户:XDJM,COLOR3D,COLOR00ff00;
- 中户:ZDJM,COLOR3D,COLORff9900;
- 大户:DDJM,COLOR3D,COLOR11FFFF;
- 机构:TDJM,COLOR3D,COLORFF11FF;
- 主力:ZLJM,COLOR3D,COLORRED;
- DRAWTEXTREL(0,997,'买入(万)');
- DRAWTEXTREL(0,998,'卖出(万)');
- DRAWTEXTREL(0,999,'分 类');
- drawtextrel(10,997,numtostrn(SUM(XDMR,N),1)),COLOR00ff00;
- drawtextrel(20,997,numtostrn(SUM(ZDMR,N),1)),COLORff9900;
- drawtextrel(30,997,numtostrn(SUM(DDMR,N),1)),COLOR11FFFF;
- drawtextrel(40,997,numtostrn(SUM(TDMR,N),1)),COLORff00ff;
- drawtextrel(50,997,numtostrn(SUM(ZLMR,N),1)),COLORRED;
- drawtextrel(10,998,numtostrn(SUM(XDMC,N),1)),COLOR00ff00;
- drawtextrel(20,998,numtostrn(SUM(ZDMC,N),1)),COLORff9900;
- drawtextrel(30,998,numtostrn(SUM(DDMC,N),1)),COLOR11FFFF;
- drawtextrel(40,998,numtostrn(SUM(TDMC,N),1)),COLORff00ff;
- drawtextrel(50,998,numtostrn(SUM(ZLMC,N),1)),COLORRED;
- DRAWTEXTABS(1,10,'【雨扬数据】' ),COLORff00ff;