资金图表主力买卖和主动买卖含有10天之内的统计数据
超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);
中单:=中B+中S;
大宗净流入:=(超B+大B)+(超S+大S);
三日大宗:=SUM(大宗净流入,3);
十日大宗:=SUM(大宗净流入,10);
超大单:=(超B)+(超S);
大单:=(大B)+(大S);
小单:=(小B)+(小S);
大宗进:=(超B)+(大B);
大宗出:=(超S)+(大S);
非大宗进:=(中B)+(小B);
非大宗出:=(中S)+(小S);
近3日流向:=SUM(净流入,3);
近10日流向:=SUM(净流入,10);
主力买力度:=LARGEINTRDVOL*100/VOL;
主力卖力度:=LARGEOUTTRDVOL*100/VOL;
DRAWRECTREL(0,410,264,999.4,IF(120,RGB(10,0,0),0));
{股票指标网 WWW.}
AAB:=CONST(MAX(ABS(超大单),MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))*1.5,NODRAW;
DRAWRECTREL(2,CONST(945-(ABS(超大单)*400/AAB)),37,945,IF(CONST(超大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(39,CONST(945-(ABS(大单)*400/AAB)),74,945,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(76,CONST(945-(ABS(中单)*400/AAB)),111,945,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(113,CONST(945-(ABS(小单)*400/AAB)),148,945,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.002,0.9,0,INTPART(超大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.038,0.85,0,INTPART(大单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.076,0.9,0,INTPART(中单)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.115,0.85,0,INTPART(小单)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.004,1,0,'超大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.044,1,0,'大单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.082,1,0,'中单'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.1160,1,0,'小单'),COLORYELLOW;
AAC:=CONST(MAX(ABS(净流入),MAX(ABS(近3日流向),ABS(近10日流向))))*1.5,NODRAW;
DRAWRECTREL(153,CONST(945-(ABS(净流入)*400/AAC)),188,945,IF(CONST(净流入)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(190,CONST(945-(ABS(近3日流向)*400/AAC)),225,945,IF(CONST(近3日流向)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(227,CONST(945-(ABS(近10日流向)*400/AAC)),262,945,IF(CONST(近10日流向)>0,RGB(255,0,0),RGB(23,125,255)));
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.152,0.9,0,INTPART(净流入)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.190,0.85,0,INTPART(近3日流向)),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.228,0.9,0,INTPART(近10日流向)),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.152,1,0,'净流入'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.190,1,0,'三日流'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.228,1,0,'十日流'),COLORYELLOW;
DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*100/CAPITAL;
DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);
DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);
DRAWRECTREL(2,415,88,465,IF(CONST(DDX)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(89,415,175,465,IF(CONST(DDY)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(176,415,262,465,IF(CONST(DDZ)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWTEXT_FIX(1,0.004,0.420,0,STRCAT('大单动向:',CON2STR(DDX,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.420,0,STRCAT('涨跌动因:',CON2STR(DDY,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.420,0,STRCAT('大单差分:',CON2STR(DDZ,2))),COLORWHITE;
DDX连红:=BARSLASTCOUNT(DDX>0);
DDY连红:=BARSLASTCOUNT(DDY>0);
DDZ连红:=BARSLASTCOUNT(DDZ>0);
DRAWTEXT_FIX(1,0.004,0.470,0,STRCAT(STRCAT('连红 ',CON2STR(DDX连红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.470,0,STRCAT(STRCAT('连红 ',CON2STR(DDY连红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.470,0,STRCAT(STRCAT('连红 ',CON2STR(DDZ连红,0)),' [天] ')),COLORWHITE;
DDX十红:=COUNT(DDX>0,10);
DDY十红:=COUNT(DDY>0,10);
DDZ十红:=COUNT(DDZ>0,10);
DRAWTEXT_FIX(1,0.004,0.520,0,STRCAT(STRCAT('十红 ',CON2STR(DDX十红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.520,0,STRCAT(STRCAT('十红 ',CON2STR(DDY十红,0)),' [天] ')),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.520,0,STRCAT(STRCAT('十红 ',CON2STR(DDZ十红,0)),' [天] ')),COLORWHITE;
主买量占比:=LARGEINTRDVOL/(LARGEINTRDVOL+LARGEOUTTRDVOL)*100;
TMP:=LARGEINTRDVOL-LARGEOUTTRDVOL;
主力活跃度:=(LARGEINTRDVOL+LARGEOUTTRDVOL)*100/FINANCE(7)*100;
主力净资:=(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0;
DRAWRECTREL(2,570,88,616,IF(CONST(主买量占比)>50,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(89,570,175,616,IF(CONST(TMP)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWRECTREL(176,570,262,616,IF(CONST(主力净资)>0,RGB(175,50,250),RGB(0,100,0)));
DRAWTEXT_FIX(1,0.004,0.575,0,STRCAT('主力买比:',CON2STR(主买量占比,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.091,0.575,0,STRCAT('主力活跃:',CON2STR(主力活跃度,2))),COLORWHITE;
DRAWTEXT_FIX(1,0.178,0.575,0,STRCAT('主力净资:',CON2STR(主力净资,0))),COLORWHITE;
主力主动买占比:=(超B+大B)/(超B+大B-超S-大S)*100;
十日飘红:=COUNT(大宗净流入>0,10);
DRAWRECTREL(2,616,88,665,IF(CONST(主力主动买占比)>50,RGB(255,0,0),RGB(23,125,255)));
DRAWRECTREL(89,616,175,665,IF(CONST(十日飘红)>0,RGB(255,0,0),RGB(25,125,255)));
DRAWTEXT_FIX(1,0.004,0.620,0,STRCAT('主主买比:',CON2STR(主力主动买占比,2))),COLORYELLOW;
DRAWTEXT_FIX(1,0.091,0.620,0,STRCAT('主力主动十红:',CON2STR(十日飘红,0))),COLORYELLOW;
换手率:=VOL/CAPITAL*100,NODRAW,COLORRED;
AAAA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,换手率*240/FROMOPEN,DRAWNULL);{预测换手率}
DRAWRECTREL(175,616,262,665,IF(CONST(AAAA>=3 AND AAAA<15),RGB(255,0,0),RGB(25,125,255)));
DRAWTEXT_FIX(1,0.178,0.620,0,STRCAT('预测换手:',CON2STR(AAAA,2))),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:FINANCE
该公式包含未来函数:DVOL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
超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)
中单赋值:中B+中S
大宗净流入赋值:(超B+大B)+(超S+大S)
三日大宗赋值:3的大宗净流入日累和
十日大宗赋值:10的大宗净流入日累和
超大单赋值:(超B)+(超S)
大单赋值:(大B)+(大S)
小单赋值:(小B)+(小S)
大宗进赋值:(超B)+(大B)
大宗出赋值:(超S)+(大S)
非大宗进赋值:(中B)+(小B)
非大宗出赋值:(中S)+(小S)
近3日流向赋值:3的净流入日累和
近10日流向赋值:10的净流入日累和
主力买力度赋值:LARGEINTRD成交量*100/成交量
主力卖力度赋值:LARGEOUTTRD成交量*100/成交量
DRAWRECTREL(0,410,264,999.4,IF(120,RGB(10,0,0),0))
{股票指标网 WWW.}
AAB赋值:CONST(MAX(超大单的绝对值,MAX(ABS(大单),MAX(ABS(中单),ABS(小单)))))*1.5,NODRAW
DRAWRECTREL(2,CONST(945-(超大单的绝对值*400/AAB)),37,945,IF(CONST(超大单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(39,CONST(945-(大单的绝对值*400/AAB)),74,945,IF(CONST(大单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(76,CONST(945-(中单的绝对值*400/AAB)),111,945,IF(CONST(中单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(113,CONST(945-(小单的绝对值*400/AAB)),148,945,IF(CONST(小单)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWNUMBER_FIX( 到最后交易的周期=1,0.002,0.9,0,INTPART(超大单)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.038,0.85,0,INTPART(大单)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.076,0.9,0,INTPART(中单)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.115,0.85,0,INTPART(小单)),画白色
当满足条件 到最后交易的周期=1时,在横轴0.004纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.044纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.082纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.1160纵轴1位置书写文字
AAC赋值:CONST(MAX(净流入的绝对值,MAX(ABS(近3日流向),ABS(近10日流向))))*1.5,NODRAW
DRAWRECTREL(153,CONST(945-(净流入的绝对值*400/AAC)),188,945,IF(CONST(净流入)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(190,CONST(945-(近3日流向的绝对值*400/AAC)),225,945,IF(CONST(近3日流向)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(227,CONST(945-(近10日流向的绝对值*400/AAC)),262,945,IF(CONST(近10日流向)>0,RGB(255,0,0),RGB(23,125,255)))
DRAWNUMBER_FIX( 到最后交易的周期=1,0.152,0.9,0,INTPART(净流入)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.190,0.85,0,INTPART(近3日流向)),画白色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.228,0.9,0,INTPART(近10日流向)),画白色
当满足条件 到最后交易的周期=1时,在横轴0.152纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.190纵轴1位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.228纵轴1位置书写文字
DDX赋值:(LARGEINTRD成交量-LARGEOUTTRD成交量)*100/当前流通股本
DDY赋值:IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0)
DDZ赋值:IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0)
DRAWRECTREL(2,415,88,465,IF(CONST(DDX)>0,RGB(175,50,250),RGB(0,100,0)))
DRAWRECTREL(89,415,175,465,IF(CONST(DDY)>0,RGB(175,50,250),RGB(0,100,0)))
DRAWRECTREL(176,415,262,465,IF(CONST(DDZ)>0,RGB(175,50,250),RGB(0,100,0)))
DRAWTEXT_FIX(1,0.004,0.420,0,STRCAT('大单动向:',CON2STR(DDX,2))),画白色
输出DRAWTEXT_FIX(1,0.091,0.420,0,STRCAT('涨跌动因:',CON2STR(DDY,2))),画白色
DRAWTEXT_FIX(1,0.178,0.420,0,STRCAT('大单差分:',CON2STR(DDZ,2))),画白色
DDX连红:=BARSLASTCOUNT(DDX>0)
DDY连红:=BARSLASTCOUNT(DDY>0)
DDZ连红:=BARSLASTCOUNT(DDZ>0)
DRAWTEXT_FIX(1,0.004,0.470,0,STRCAT(STRCAT('连红 ',CON2STR(DDX连红,0)),' [天] ')),画白色
DRAWTEXT_FIX(1,0.091,0.470,0,STRCAT(STRCAT('连红 ',CON2STR(DDY连红,0)),' [天] ')),画白色
DRAWTEXT_FIX(1,0.178,0.470,0,STRCAT(STRCAT('连红 ',CON2STR(DDZ连红,0)),' [天] ')),画白色
DDX十红:=统计10日满足DDX>0的天数
DDY十红:=统计10日满足DDY>0的天数
DDZ十红:=统计10日满足DDZ>0的天数
DRAWTEXT_FIX(1,0.004,0.520,0,STRCAT(STRCAT('十红 ',CON2STR(DDX十红,0)),' [天] ')),画白色
DRAWTEXT_FIX(1,0.091,0.520,0,STRCAT(STRCAT('十红 ',CON2STR(DDY十红,0)),' [天] ')),画白色
DRAWTEXT_FIX(1,0.178,0.520,0,STRCAT(STRCAT('十红 ',CON2STR(DDZ十红,0)),' [天] ')),画白色
主买量占比赋值:LARGEINTRD成交量/(LARGEINTRD成交量+LARGEOUTTRD成交量)*100
TMP赋值:LARGEINTRD成交量-LARGEOUTTRD成交量
主力活跃度赋值:(LARGEINTRD成交量+LARGEOUTTRD成交量)*100/FINANCE(7)*100
主力净资赋值:(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0
DRAWRECTREL(2,570,88,616,IF(CONST(主买量占比)>50,RGB(175,50,250),RGB(0,100,0)))
DRAWRECTREL(89,570,175,616,IF(CONST(TMP)>0,RGB(175,50,250),RGB(0,100,0)))
DRAWRECTREL(176,570,262,616,IF(CONST(主力净资)>0,RGB(175,50,250),RGB(0,100,0)))
输出DRAWTEXT_FIX(1,0.004,0.575,0,STRCAT('主力买比:',CON2STR(主买量占比,2))),画白色
输出DRAWTEXT_FIX(1,0.091,0.575,0,STRCAT('主力活跃:',CON2STR(主力活跃度,2))),画白色
DRAWTEXT_FIX(1,0.178,0.575,0,STRCAT('输出主力净资:',CON2STR(主力净资,0))),画白色
主力主动买占比赋值:(超B+大B)/(超B+大B-超S-大S)*100
十日飘红赋值:统计10日满足大宗净流入>0的天数
DRAWRECTREL(2,616,88,665,IF(CONST(主力主动买占比)>50,RGB(255,0,0),RGB(23,125,255)))
DRAWRECTREL(89,616,175,665,IF(CONST(十日飘红)>0,RGB(255,0,0),RGB(25,125,255)))
输出DRAWTEXT_FIX(1,0.004,0.620,0,STRCAT('主主买比:',CON2STR(主力主动买占比,2))),画黄色
输出DRAWTEXT_FIX(1,0.091,0.620,0,STRCAT('主力主动十红:',CON2STR(十日飘红,0))),画黄色
换手率赋值:成交量/当前流通股本*100,NODRAW,画红色
如果 到最后交易的周期=1 AND PERIOD=5返回换手率*240/FROM开盘价否则返回DRAWNULL
{预测换手率}
DRAWRECTREL(175,616,262,665,IF(CONST(AAAA>=3 AND AAAA<15),RGB(255,0,0),RGB(25,125,255)))
输出DRAWTEXT_FIX(1,0.178,0.620,0,STRCAT('预测换手:',CON2STR(AAAA,2))),画黄色