{DRAWGBK(C>0,RGB(00,0,150),RGB(0,00,0),0,'',0);}
{DRAWRECTREL(0,0,999,999.4,IF(120,RGB(10,0,0),0));}超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);总量:=ABS(超B+大B+中B+小B)+(超S+大S+中S+小S);机构净%:=((超B+大B)-(超S+大S))*100/总量;散户净%:=((中B+小B)-(中S+小S))*100/总量;总成交额:=(超B+大B+中B+小B)+(超S+大S+中S+小S);总净流额:=(超B+大B+中B+小B)-(超S+大S+中S+小S);机构净流:=(超B+大B)-(超S+大S);散户净流:=(中B+小B)-(中S+小S);超大净:=(超B)-(超S);大单净:=(大B)-(大S);中单净:=(中B)-(中S);小单净:=(小B)-(小S);N:=3;N1:=5;N2:=10;N3:=20;N4:=60;{N5:=144;N6:=233;}近N净入:=SUM(净流入,N);近N机构净:=SUM(机构净流,N);近N超大净:=SUM(超大净,N);近N大单净:=SUM(大单净,N);近N中单净:=SUM(中单净,N);近N小单净:=SUM(小单净,N);近N散户净:=SUM(散户净流,N);近N总成交额:=SUM(总成交额,N);三净%:=近N机构净*100/近N总成交额;三净额:=SUM(净流入,N);近N1净入:=SUM(净流入,N1);近N1机构净:=SUM(机构净流,N1);近N1超大净:=SUM(超大净,N1);近N1大单净:=SUM(大单净,N1);近N1中单净:=SUM(中单净,N1);近N1小单净:=SUM(小单净,N1);近N1散户净:=SUM(散户净流,N1);近N1总成交额:=SUM(总成交额,N1);五净%:=近N1机构净*100/近N1总成交额;五净额:=SUM(净流入,N1);近N2净入:=SUM(净流入,N2);近N2机构净:=SUM(机构净流,N2);近N2超大净:=SUM(超大净,N2);近N2大单净:=SUM(大单净,N2);近N2中单净:=SUM(中单净,N2);近N2小单净:=SUM(小单净,N2);近N2散户净:=SUM(散户净流,N2);近N2总成交额:=SUM(总成交额,N2);十三净%:=近N2机构净*100/近N2总成交额;十三净额:=SUM(净流入,N2);近N3净入:=SUM(净流入,N3);近N3机构净:=SUM(机构净流,N3);近N3超大净:=SUM(超大净,N3);近N3大单净:=SUM(大单净,N3);近N3中单净:=SUM(中单净,N3);近N3小单净:=SUM(小单净,N3);近N3散户净:=SUM(散户净流,N3);近N3总成交额:=SUM(总成交额,N3);二一净%:=近N3机构净*100/近N3总成交额;二一净额:=SUM(净流入,N3);近N4净入:=SUM(净流入,N4);近N4机构净:=SUM(机构净流,N4);近N4超大净:=SUM(超大净,N4);近N4大单净:=SUM(大单净,N4);近N4中单净:=SUM(中单净,N4);近N4小单净:=SUM(小单净,N4);近N4散户净:=SUM(散户净流,N4);近N4总成交额:=SUM(总成交额,N4);五五净%:=近N4机构净*100/近N4总成交额;五五净额:=SUM(净流入,N4);{近N5净入:=SUM(净流入,N5);近N5机构净:=SUM(机构净流,N5);近N5散户净:=SUM(散户净流,N5);近N5总成交额:=SUM(总成交额,N5);一四四净%:=近N5机构净*100/近N5总成交额;一四四净额:=SUM(净流入,N5);}{近N6净入:=SUM(净流入,N6);近N6机构净:=SUM(机构净流,N6);近N6散户净:=SUM(散户净流,N6);近N6总成交额:=SUM(总成交额,N6);二三三净%:=近N6机构净*100/近N6总成交额;二三三净额:=SUM(净流入,N6);}DAZHI:=CONST(MAX(ABS(净流入),MAX(ABS(超大净),MAX(ABS(大单净),MAX(ABS(中单净),ABS(小单净)))))),NODRAW;{表头}DRAWRECTREL(40,40,150,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.06,0.076,0,'资金搏弈 (万元) '),COLORYELLOW;DRAWRECTREL(150,40,250,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.17,0.076,0,'超大单(万元) 占比'),COLORYELLOW;DRAWRECTREL(250,40,350,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.27,0.076,0,'大单(万元) 占比'),COLORYELLOW;DRAWRECTREL(350,40,450,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.37,0.076,0,'中单(万元) 占比'),COLORYELLOW;DRAWRECTREL(450,40,550,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.47,0.076,0,'小单(万元) 占比'),COLORYELLOW;DRAWRECTREL(550,40,650,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.56,0.076,0,'机构净流入(万元) 占比'),COLORYELLOW;DRAWRECTREL(650,40,750,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.66,0.076,0,'散户净流(万元) 占比'),COLORYELLOW;DRAWRECTREL(750,40,850,150.4,IF(120,RGB(323,125,175),0));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.76,0.076,0,'整体净流入(万元) 占比'),COLORYELLOW;{表栏}DRAWRECTREL(40,260,150,151.4,IF(120,RGB(323,125,175),0));{第二行第一}DRAWRECTREL(150,260,250,151.4,IF(120,RGB(0,0,0),0));{第二行第二}DRAWRECTREL(250,260,350,151.4,IF(120,RGB(0,0,0),0));{第二行第三}DRAWRECTREL(350,260,450,151.4,IF(120,RGB(0,0,0),0));{第二行第四}DRAWRECTREL(450,260,550,151.4,IF(120,RGB(0,0,0),0));{第二行第五}DRAWRECTREL(550,260,650,151.4,IF(120,RGB(0,0,0),0));{第二行第六}DRAWRECTREL(650,260,750,151.4,IF(120,RGB(0,0,0),0));{第二行第七}DRAWRECTREL(750,260,850,151.4,IF(120,RGB(0,0,0),0));{第二行第七}DRAWRECTREL(40,380,150,263.4,IF(120,RGB(323,125,175),0));{第三行第一}DRAWRECTREL(150,380,250,263.4,IF(120,RGB(0,0,0),0));{第三行第二}DRAWRECTREL(250,380,350,263.4,IF(120,RGB(0,0,0),0));{第三行第三}DRAWRECTREL(350,380,450,263.4,IF(120,RGB(0,0,0),0));{第三行第四}DRAWRECTREL(450,380,550,263.4,IF(120,RGB(0,0,0),0));{第三行第五}DRAWRECTREL(550,380,650,263.4,IF(120,RGB(0,0,0),0));{第三行第六}DRAWRECTREL(650,380,750,263.4,IF(120,RGB(0,0,0),0));{第三行第七}DRAWRECTREL(750,380,850,263.4,IF(120,RGB(0,0,0),0));{第三行第七}DRAWRECTREL(40,500,150,386,IF(120,RGB(323,125,175),0));{第四行第一}DRAWRECTREL(150,500,250,386,IF(120,RGB(0,0,0),0));{第四行第二}DRAWRECTREL(250,500,350,386,IF(120,RGB(0,0,0),0));{第四行第三}DRAWRECTREL(350,500,450,386,IF(120,RGB(0,0,0),0));{第四行第四}DRAWRECTREL(450,500,550,386,IF(120,RGB(0,0,0),0));{第四行第五}DRAWRECTREL(550,500,650,386,IF(120,RGB(0,0,0),0));{第四行第六}DRAWRECTREL(650,500,750,386,IF(120,RGB(0,0,0),0));{第四行第七}DRAWRECTREL(750,500,850,386,IF(120,RGB(0,0,0),0));{第四行第七}DRAWRECTREL(40,620,150,505,IF(120,RGB(323,125,175),0));{第五行第一}DRAWRECTREL(150,620,250,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(250,620,350,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(350,620,450,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(450,620,550,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(550,620,650,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(650,620,750,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(750,620,850,505,IF(120,RGB(0,0,0),0));{第五行第一}DRAWRECTREL(40,740,150,625,IF(120,RGB(323,125,175),0));{第六行第一}DRAWRECTREL(150,740,250,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(250,740,350,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(350,740,450,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(450,740,550,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(550,740,650,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(650,740,750,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(750,740,850,625,IF(120,RGB(0,0,0),0));{第六行第一}DRAWRECTREL(40,860,150,745,IF(120,RGB(323,125,175),0));{第七行第一}DRAWRECTREL(150,860,250,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWRECTREL(250,860,350,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWRECTREL(350,860,450,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWRECTREL(450,860,550,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWRECTREL(550,860,650,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWRECTREL(650,860,750,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWRECTREL(750,860,850,745,IF(120,RGB(0,0,0),0));{第七行第一}DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.19,0,'当日'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.31,0,'三日'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.42,0,'五日'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.54,0,'十日'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.66,0,'二十日'),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.08,0.78,0,'六十日'),COLORYELLOW;{当日}CJZJ1:=STRCAT(CON2STR(超大净,2),'万元 ');CJZJ2:=STRCAT(CON2STR((100*超大净)/总成交额,0),'% ');CJZJ3:=STRCAT(CON2STR(大单净,2),'万元 ' );CJZJ4:=STRCAT(CON2STR((100*大单净)/总成交额,0),'% ');CJZJ5:=STRCAT(CON2STR(中单净,2),'万元 ');CJZJ6:=STRCAT(CON2STR((100*中单净)/总成交额,0),'% ');CJZJ7:=STRCAT(CON2STR(小单净,2),'万元 ');CJZJ8:=STRCAT(CON2STR((100*小单净)/总成交额,0),'% ');CJZJ9:=STRCAT(CON2STR(机构净%,2),'万元 ');CJZJ10:=STRCAT(CON2STR((100*机构净%)/总成交额,0),'% ');CJZJ11:=STRCAT(CON2STR(散户净流,2),'万元 ');CJZJ12:=STRCAT(CON2STR((100*散户净流)/总成交额,0),'% ');CJZJ13:=STRCAT(CON2STR(净流入,2),'万元 ');CJZJ14:=STRCAT(CON2STR((100*净流入)/总成交额,0),'%');第一行结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJ1, CJZJ2),CJZJ3),CJZJ4),CJZJ5),CJZJ6),CJZJ7),CJZJ8),CJZJ9),CJZJ10),CJZJ11),CJZJ12),CJZJ13),CJZJ14);DRAWTEXT_FIX(1 AND 第一行结果>0,0.17,0.19,0,第一行结果),COLORFFFFFF;{三日}CJZJS1:=STRCAT(CON2STR(近N超大净,2),'万元 ');CJZJS2:=STRCAT(CON2STR((100*近N超大净)/近N总成交额,0),'% ');CJZJS3:=STRCAT(CON2STR(近N大单净,2),'万元 ' );CJZJS4:=STRCAT(CON2STR((100*近N大单净)/近N总成交额,0),'% ');CJZJS5:=STRCAT(CON2STR(近N中单净,2),'万元 ');CJZJS6:=STRCAT(CON2STR((100*近N中单净)/近N总成交额,0),'% ');CJZJS7:=STRCAT(CON2STR(近N小单净,2),'万元 ');CJZJS8:=STRCAT(CON2STR((100*近N小单净)/近N总成交额,0),'% ');CJZJS9:=STRCAT(CON2STR(近N机构净,2),'万元 ');CJZJS10:=STRCAT(CON2STR((100*近N机构净)/近N总成交额,0),'% ');CJZJS11:=STRCAT(CON2STR(近N散户净,2),'万元 ');CJZJS12:=STRCAT(CON2STR((100*近N散户净)/近N总成交额,0),'% ');CJZJS13:=STRCAT(CON2STR(近N净入,2),'万元 ');CJZJS14:=STRCAT(CON2STR((100*近N净入)/总成交额,0),'%');第二行结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJS1,CJZJS2),CJZJS3),CJZJS4),CJZJS5),CJZJS6),CJZJS7),CJZJS8),CJZJS9),CJZJS10),CJZJS11),CJZJS12),CJZJS13),CJZJS14);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 第二行结果>0,0.16,0.31,0,第二行结果),COLORFFFFFF;{五日}CJZJW1:=STRCAT(CON2STR(近N1超大净,2),'万元 ');CJZJW2:=STRCAT(CON2STR((100*近N1超大净)/近N1总成交额,0),'% ');CJZJW3:=STRCAT(CON2STR(近N1大单净,2),'万元 ' );CJZJW4:=STRCAT(CON2STR((100*近N1大单净)/近N1总成交额,0),'% ');CJZJW5:=STRCAT(CON2STR(近N1中单净,2),'万元 ');CJZJW6:=STRCAT(CON2STR((100*近N1中单净)/近N1总成交额,0),'% ');CJZJW7:=STRCAT(CON2STR(近N1小单净,2),'万元 ');CJZJW8:=STRCAT(CON2STR((100*近N1小单净)/近N1总成交额,0),'% ');CJZJW9:=STRCAT(CON2STR(近N1机构净,2),'万元 ');CJZJW10:=STRCAT(CON2STR((100*近N1机构净)/近N1总成交额,0),'% ');CJZJW11:=STRCAT(CON2STR(近N1散户净,2),'万元 ');CJZJW12:=STRCAT(CON2STR((100*近N1散户净)/近N1总成交额,0),'% ');CJZJW13:=STRCAT(CON2STR(近N1净入,2),'万元 ');CJZJW14:=STRCAT(CON2STR((100*近N1净入)/总成交额,0),'%');第三行结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJW1,CJZJW2),CJZJW3),CJZJW4),CJZJW5),CJZJW6),CJZJW7),CJZJW8),CJZJW9),CJZJW10),CJZJW11),CJZJW12),CJZJW13),CJZJW14);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 第三行结果>0,0.16,0.42,0,第三行结果),COLORFFFFFF;{十三日}CJZJSS1:=STRCAT(CON2STR(近N2超大净,2),'万元 ');CJZJSS2:=STRCAT(CON2STR((100*近N2超大净)/近N2总成交额,0),'% ');CJZJSS3:=STRCAT(CON2STR(近N2大单净,2),'万元 ' );CJZJSS4:=STRCAT(CON2STR((100*近N2大单净)/近N2总成交额,0),'% ');CJZJSS5:=STRCAT(CON2STR(近N2中单净,2),'万元 ');CJZJSS6:=STRCAT(CON2STR((100*近N2中单净)/近N2总成交额,0),'% ');CJZJSS7:=STRCAT(CON2STR(近N2小单净,2),'万元 ');CJZJSS8:=STRCAT(CON2STR((100*近N2小单净)/近N2总成交额,0),'% ');CJZJSS9:=STRCAT(CON2STR(近N2机构净,2),'万元 ');CJZJSS10:=STRCAT(CON2STR((100*近N2机构净)/近N2总成交额,0),'% ');CJZJSS11:=STRCAT(CON2STR(近N2散户净,2),'万元 ');CJZJSS12:=STRCAT(CON2STR((100*近N2散户净)/近N2总成交额,0),'% ');CJZJSS13:=STRCAT(CON2STR(近N2净入,2),'万元 ');CJZJSS14:=STRCAT(CON2STR((100*近N2净入)/总成交额,0),'%');第四行结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJSS1,CJZJSS2),CJZJSS3),CJZJSS4),CJZJSS5),CJZJSS6),CJZJSS7),CJZJSS8),CJZJSS9),CJZJSS10),CJZJSS11),CJZJSS12),CJZJSS13),CJZJSS14);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 第四行结果>0,0.16,0.54,0,第四行结果),COLORFFFFFF;{二十一日}CJZJESY1:=STRCAT(CON2STR(近N3超大净,2),'万元 ');CJZJESY2:=STRCAT(CON2STR((100*近N3超大净)/近N3总成交额,0),'% ');CJZJESY3:=STRCAT(CON2STR(近N3大单净,2),'万元 ' );CJZJESY4:=STRCAT(CON2STR((100*近N3大单净)/近N3总成交额,0),'% ');CJZJESY5:=STRCAT(CON2STR(近N3中单净,2),'万元 ');CJZJESY6:=STRCAT(CON2STR((100*近N3中单净)/近N3总成交额,0),'% ');CJZJESY7:=STRCAT(CON2STR(近N3小单净,2),'万元 ');CJZJESY8:=STRCAT(CON2STR((100*近N3小单净)/近N3总成交额,0),'% ');CJZJESY9:=STRCAT(CON2STR(近N3机构净,2),'万元 ');CJZJESY10:=STRCAT(CON2STR((100*近N3机构净)/近N3总成交额,0),'% ');CJZJESY11:=STRCAT(CON2STR(近N3散户净,2),'万元 ');CJZJESY12:=STRCAT(CON2STR((100*近N3散户净)/近N3总成交额,0),'% ');CJZJESY13:=STRCAT(CON2STR(近N3净入,2),'万元 ');CJZJESY14:=STRCAT(CON2STR((100*近N3净入)/总成交额,0),'%');第五行结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJESY1,CJZJESY2),CJZJESY3),CJZJESY4),CJZJESY5),CJZJESY6),CJZJESY7),CJZJESY8),CJZJESY9),CJZJESY10),CJZJESY11),CJZJESY12),CJZJESY13),CJZJESY14);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 第五行结果>0,0.16,0.66,0,第五行结果),COLORFFFFFF;{五十五日}CJZJWSW1:=STRCAT(CON2STR(近N4超大净,2),'万元 ');CJZJWSW2:=STRCAT(CON2STR((100*近N4超大净)/近N4总成交额,0),'% ');CJZJWSW3:=STRCAT(CON2STR(近N4大单净,2),'万元 ' );CJZJWSW4:=STRCAT(CON2STR((100*近N4大单净)/近N4总成交额,0),'% ');CJZJWSW5:=STRCAT(CON2STR(近N4中单净,2),'万元 ');CJZJWSW6:=STRCAT(CON2STR((100*近N4中单净)/近N4总成交额,0),'% ');CJZJWSW7:=STRCAT(CON2STR(近N4小单净,2),'万元 ');CJZJWSW8:=STRCAT(CON2STR((100*近N4小单净)/近N4总成交额,0),'% ');CJZJWSW9:=STRCAT(CON2STR(近N4机构净,2),'万元 ');CJZJWSW10:=STRCAT(CON2STR((100*近N4机构净)/近N4总成交额,0),'% ');CJZJWSW11:=STRCAT(CON2STR(近N4散户净,2),'万元 ');CJZJWSW12:=STRCAT(CON2STR((100*近N4散户净)/近N4总成交额,0),'% ');CJZJWSW13:=STRCAT(CON2STR(近N4净入,2),'万元 ');CJZJWSW14:=STRCAT(CON2STR((100*近N4净入)/总成交额,0),'%');第六行结果:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(CJZJWSW1,CJZJWSW2),CJZJWSW3),CJZJWSW4),CJZJWSW5),CJZJWSW6),CJZJWSW7),CJZJWSW8),CJZJWSW9),CJZJWSW10),CJZJWSW11),CJZJWSW12),CJZJWSW13),CJZJWSW14);DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 第六行结果>0,0.16,0.78,0,第六行结果),COLORFFFFFF;{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.06,0.076,0,'资金搏弈 (万元)'),COLORYELLOW;}{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,1,0,'净流'),COLORYELLOW;};股票公式结合软件的应用属于进阶阶段的股票学了,我们整理网上提出的通达信多日资金流指标公式的问题一些解决方案仅供辅助你学习通达信公式参考,具体内容可能需要具体解决或者找网上其他高手帮忙,也感谢文字和图片来源于股旁网的一些资源分享,帮助新手快速学习提高炒股技能。
声明:通达信多日资金流指标公式的文字和图片来源于网络,版权归原作者所有,仅代表个人观点,于本站无关。
随便说说