通达信资金博弈指标源码

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

通达信资金博弈指标源码{今日资金搏弈根据通达信自带系统指标编制的}超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=-L2_AMO(0,3)/10000.0;大S:=-L2_AMO(1,3)/10000.0;中S:=-L2_AMO(2,3)/10000.0;小S:=-L2_AMO(3,3)/10000.0;净流入额:(超B+大B+中B+小B)+(超S+大S+中S+小S),COLORFFFFFF,NODRAW;超大单:(超B)+(超S),COLOR00FFFF,NODRAW;大单:(大B)+(大S),COLORFF00FF,NODRAW;大宗流入:(超大单+大单),COLOR00FF00,NODRAW;中单:(中B)+(中S),COLOR0085FF,NODRAW;小单:(小B)+(小S),COLOR0000FF,NODRAW;成交金额X10万元:AMOUNT/100000,COLOR00FFFF,NODRAW;DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,65,60),CONST(净流入额),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,50),CONST(超大单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,40),CONST(大单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,35,30),CONST(大宗流入),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,20),CONST(中单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,10),CONST(小单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,5,0),CONST(成交金额X10万元),DRAWNULL),RGB(238,250,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,65,60),CONST(-净流入额),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,50),CONST(-超大单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,40),CONST(-大单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,35,30),CONST(-大宗流入),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,20),CONST(-中单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,10),CONST(-小单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWTEXT(CURRBARSCOUNT=110,20,'绿柱流出。大宗流入=超大单+单'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=110,20,'说明:红柱流入,'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=65,-40,'净流入额'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=54,-40,'超大单'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=44,-40,'大单'),COLORFF00FF;DRAWTEXT(CURRBARSCOUNT=35,-40,'大宗流入'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=24,-40,'中单'),COLOR0085FF;DRAWTEXT(CURRBARSCOUNT=14,-40,'小单'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=7,-20,'总成交金额'),COLORFFFFFF;2.资金博弈指标进行改编的,超B:=L2_AMO(0,0)/10000.0;大B:=L2_AMO(1,0)/10000.0;中B:=L2_AMO(2,0)/10000.0;小B:=L2_AMO(3,0)/10000.0;超S:=-L2_AMO(0,1)/10000.0;大S:=-L2_AMO(1,1)/10000.0;中S:=-L2_AMO(2,1)/10000.0;小S:=-L2_AMO(3,1)/10000.0;净流入额:(超B+大B+超S+大S),COLORFFFFFF,NODRAW;超大单:(超B)+(超S),COLOR00FFFF,NODRAW;大单:(大B)+(大S),COLORFF00FF,NODRAW;大宗流入:(超大单+大单),COLOR00FF00,NODRAW;中单:(中B)+(中S),COLOR0085FF,NODRAW;小单:(小B)+(小S),COLOR0000FF,NODRAW;成交金额X10万元:AMOUNT/100000,COLOR00FFFF,NODRAW;DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,65,60),CONST(净流入额),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,50),CONST(超大单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,40),CONST(大单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,35,30),CONST(大宗流入),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,20),CONST(中单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,10),CONST(小单),DRAWNULL),RGB(150,10,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,5,0),CONST(成交金额X10万元),DRAWNULL),RGB(238,250,0),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,65,60),CONST(-净流入额),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,55,50),CONST(-超大单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,45,40),CONST(-大单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,35,30),CONST(-大宗流入),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,25,20),CONST(-中单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWBAND(IF(BETWEEN(CURRBARSCOUNT,15,10),CONST(-小单),DRAWNULL),RGB(0,255,255),0,DRAWNULL);DRAWTEXT(CURRBARSCOUNT=110,20,'绿柱流出。大宗流入=超大单+大单'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=110,20,'说明:红柱流入,'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=66,-20,'净流入额'),COLORFFFFFF;DRAWTEXT(CURRBARSCOUNT=55,-20,'超大单'),COLOR00FFFF;DRAWTEXT(CURRBARSCOUNT=45,-20,'大单'),COLORFF00FF;DRAWTEXT(CURRBARSCOUNT=35,-20,'大宗流入'),COLOR00FF00;DRAWTEXT(CURRBARSCOUNT=25,-20,'中单'),COLOR0085FF;DRAWTEXT(CURRBARSCOUNT=15,-20,'小单'),COLOR0000FF;DRAWTEXT(CURRBARSCOUNT=7,-20,'总成交金额'),COLORFFFFFF;

1 / 7
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功