成交量主力看真正的主力资金通达信公式 副图 源码附图
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
主力买量:(L2_VOL(0,0)+L2_VOL(1,0))/10000,COLORRED,NODRAW;
主力卖量:(L2_VOL(0,1)+L2_VOL(1,1))/10000,COLORLIBLUE,NODRAW;
主力买:=L2_VOL(0,0)+L2_VOL(1,0);
主力卖:=L2_VOL(0,1)+L2_VOL(1,1);
散户买量:=L2_VOL(2,0)+L2_VOL(3,0);
散户卖量:=L2_VOL(2,1)+L2_VOL(3,1);
主力净量:(主力买量-主力卖量),COLORRED,NODRAW;
散户净量:(散户买量-散户卖量)/10000,COLORMAGENTA,NODRAW;
主力净:=主力买-主力卖;
{散户净:=散户买量-散户卖量;}
{股票指标网 整理}
持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORLIBLUE;
持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORRED;
对应上涨家:INDEXADV,COLOR0080FF,NODRAW;
对应下跌家:INDEXDEC,COLORGREEN,NODRAW;
换手率:VOL/CAPITAL*100,NODRAW,COLORRED;
STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,1),COLORWHITE;
STICKLINE(CLOSE>REF(CLOSE,1),0,VOL,3.5,1),COLORRED;
STICKLINE(CLOSE<REF(CLOSE,1),0,VOL,3.5,1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.5 , 0 ) , COLOR00FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 3.2 , 0 ) , COLOR007777 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.7 , 0 ) , COLOR009999 ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 2.1 , 0 ) , COLOR00BBBB ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 1.5 , 0 ) , COLOR00DDEE ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.9 , 0 ) , COLOR66FFFF ;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,1 , 0.2 , 0 ) , COLORFFFFFF ;
STICKLINE(主力卖>=0,0,主力卖,3.2,0),COLOR990000;
STICKLINE(主力卖>=0,0,主力卖,2.7,0),COLORCC0000;
STICKLINE(主力卖>=0,0,主力卖,2.1,0),COLORFF4400;
STICKLINE(主力卖<=0,0,主力卖,1.5,0),COLORFF8800;
STICKLINE(主力卖>=0,0,主力卖,0.9,0),COLORFFCC00;
STICKLINE(主力卖>=0,0,主力卖,0.2,0),COLORCYAN;
STICKLINE(主力买>=0,主力卖,主力买+主力卖,3.2,0),COLOR000033;
STICKLINE(主力买>=0,主力卖,主力买+主力卖,2.7,0),COLOR000066;
STICKLINE(主力买>=0,主力卖,主力买+主力卖,2.1,0),COLOR000099;
STICKLINE(主力买>=0,主力卖,主力买+主力卖,1.5,0),COLOR0000CC;
STICKLINE(主力买>=0,主力卖,主力买+主力卖,0.9,0),COLOR0000FF;
STICKLINE(主力买>=0,主力卖,主力买+主力卖,0.2,0),COLORCC66FF;
STICKLINE(主力净<=0,0,主力净,3.2,0),COLOR003300;
STICKLINE(主力净<=0,0,主力净,2.7,0),COLOR006600;
STICKLINE(主力净<=0,0,主力净,2.1,0),COLOR009900;
STICKLINE(主力净<=0,0,主力净,1.5,0),COLOR00CC00;
STICKLINE(主力净<=0,0,主力净,0.9,0),COLOR00FF00;
STICKLINE(主力净<=0,0,主力净,0.2,0),COLORGREEN;
STICKLINE(主力净>=0,0,-主力净,3.2,0),COLOR000033;
STICKLINE(主力净>=0,0,-主力净,2.7,0),COLOR000066;
STICKLINE(主力净>=0,0,-主力净,2.1,0),COLOR000099;
STICKLINE(主力净>=0,0,-主力净,1.5,0),COLOR0000CC;
STICKLINE(主力净>=0,0,-主力净,0.9,0),COLOR0000FF;
STICKLINE(主力净>=0,0,-主力净,0.2,0),COLORCC66FF;
0;
五日: MA(V,5),COLOR40FF00;
三五日: MA(V,35),COLORYELLOW;
一三五日:MA(V,135),COLOR0080FF;
NOTEXT强:IF(五日>MA(五日,2),五日,DRAWNULL),COLORRED;
{股票指标网 整理}
{昨收:REF(CLOSE,1),NODRAW,COLORGREEN;
逐笔买卖差:(LARGEINTRDVOL-LARGEOUTTRDVOL)/10000,COLORBROWN,NODRAW;
主动买卖差:(ACTINVOL-ACTOUTVOL)/10000,COLORBROWN,NODRAW;}
超B:L2_AMO(0,0)/10000.0,NODRAW;
大B:L2_AMO(1,0)/10000.0,NODRAW;
超S:L2_AMO(0,1)/10000.0,NODRAW;
大S:L2_AMO(1,1)/10000.0,NODRAW;
主力净值:(超B+大B)-(超S+大S),NODRAW;
DAZHI:CONST(MAX(ABS(主力净值),MAX(ABS(超B),MAX(ABS(大B),MAX(ABS(超S),ABS(大S)))))),NODRAW;
DRAWRECTREL(0,0,175,999.4,IF(120,RGB(10,0,0),0));
DRAWRECTREL(0,CONST(830-(ABS(主力净值)*500/DAZHI)),30,935,IF(CONST(主力净值)>0,RGB(255,0,255),RGB(0,100,100)));
DRAWRECTREL(35,CONST(830-(ABS(超B)*500/DAZHI)),65,935,IF(CONST(超B)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(70,CONST(830-(ABS(超S)*500/DAZHI)),100,935,IF(CONST(超S)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(105,CONST(830-(ABS(大B)*500/DAZHI)),135,935,IF(CONST(大B)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWRECTREL(140,CONST(830-(ABS(大S)*500/DAZHI)),170,935,IF(CONST(大S)>0,RGB(100,0,0),RGB(0,50,0)));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.000,0.95,0,'净值'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.038,0.95,0,'超B'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0764,0.95,0,'超S'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.112,0.95,0,'大B'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.147,0.95,0,'大S'),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0,0,'今日主力买卖'),COLORYELLOW;{原为:今日分类持仓}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.100,0,0,'单位(万元)'),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.00,0.875,0,INTPART(主力净值)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.035,0.800,0,INTPART(超B)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.070,0.875,0,INTPART(超S)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.105,0.800,0,INTPART(大B)),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.140,0.874,0,INTPART(大S)),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DVOL
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
如果 到最后交易的周期=1 AND PERIOD=5返回成交量*240/FROM开盘价否则返回DRAWNULL
输出预测:AA/10000
输出主力买量:(L2_成交量(0,0)+L2_成交量(1,0))/10000,画红色,NODRAW
输出主力卖量:(L2_成交量(0,1)+L2_成交量(1,1))/10000,COLORLIBLUE,NODRAW
主力买赋值:L2_成交量(0,0)+L2_成交量(1,0)
主力卖赋值:L2_成交量(0,1)+L2_成交量(1,1)
散户买量赋值:L2_成交量(2,0)+L2_成交量(3,0)
散户卖量赋值:L2_成交量(2,1)+L2_成交量(3,1)
输出主力净量:(主力买量-主力卖量),画红色,NODRAW
输出散户净量:(散户买量-散户卖量)/10000,画洋红色,NODRAW
主力净赋值:主力买-主力卖
{散户净赋值:散户买量-散户卖量
输出}
{股票指标网 整理}
持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORLIBLUE
输出持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,画红色
输出对应上涨家:INDEXADV,COLOR0080FF,NODRAW
输出对应下跌家:INDEXDEC,画绿色,NODRAW
输出换手率:成交量/当前流通股本*100,NODRAW,画红色
STICKLINE(收盘价=1日前的收盘价,0,成交量,3.5,1),画白色
STICKLINE(收盘价>1日前的收盘价,0,成交量,3.5,1),画红色
STICKLINE(收盘价<1日前的收盘价,0,成交量,3.5,1),画绿色
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件 到最后交易的周期=1 AND PERIOD=5时,在AA和1 之间画柱状线
当满足条件主力卖>=0时,在0和主力卖之间画柱状线
当满足条件主力卖>=0时,在0和主力卖之间画柱状线
当满足条件主力卖>=0时,在0和主力卖之间画柱状线
当满足条件主力卖<=0时,在0和主力卖之间画柱状线
当满足条件主力卖>=0时,在0和主力卖之间画柱状线
当满足条件主力卖>=0时,在0和主力卖之间画柱状线
当满足条件主力买>=0时,在主力卖和主力买+主力卖之间画柱状线
当满足条件主力买>=0时,在主力卖和主力买+主力卖之间画柱状线
当满足条件主力买>=0时,在主力卖和主力买+主力卖之间画柱状线
当满足条件主力买>=0时,在主力卖和主力买+主力卖之间画柱状线
当满足条件主力买>=0时,在主力卖和主力买+主力卖之间画柱状线
当满足条件主力买>=0时,在主力卖和主力买+主力卖之间画柱状线
当满足条件主力净<=0时,在0和主力净之间画柱状线
当满足条件主力净<=0时,在0和主力净之间画柱状线
当满足条件主力净<=0时,在0和主力净之间画柱状线
当满足条件主力净<=0时,在0和主力净之间画柱状线
当满足条件主力净<=0时,在0和主力净之间画柱状线
当满足条件主力净<=0时,在0和主力净之间画柱状线
当满足条件主力净>=0时,在0和-主力净之间画柱状线
当满足条件主力净>=0时,在0和-主力净之间画柱状线
当满足条件主力净>=0时,在0和-主力净之间画柱状线
当满足条件主力净>=0时,在0和-主力净之间画柱状线
当满足条件主力净>=0时,在0和-主力净之间画柱状线
当满足条件主力净>=0时,在0和-主力净之间画柱状线
0
输出五日: V的5日简单移动平均,COLOR40FF00
三输出五日: V的35日简单移动平均,画黄色
一三输出五日:V的135日简单移动平均,COLOR0080FF
输出NOTEXT强:IF(五日>五日的2日简单移动平均,五日,DRAWNULL),画红色
输出{股票指标网 整理}
{昨收:1日前的收盘价,NODRAW,画绿色
输出逐笔买卖差:(LARGEINTRD成交量-LARGEOUTTRD成交量)/10000,COLORBROWN,NODRAW
输出主动买卖差:(ACTIN成交量-ACTOUT成交量)/10000,COLORBROWN,NODRAW
输出}
超B:L2_AMO(0,0)/10000.0,NODRAW
输出大B:L2_AMO(1,0)/10000.0,NODRAW
输出超S:L2_AMO(0,1)/10000.0,NODRAW
输出大S:L2_AMO(1,1)/10000.0,NODRAW
主力净值:(超B+大B)-(超S+大S),NODRAW
输出DAZHI:CONST(MAX(主力净值的绝对值,MAX(ABS(超B),MAX(ABS(大B),MAX(ABS(超S),ABS(大S)))))),NODRAW
DRAWRECTREL(0,0,175,999.4,IF(120,RGB(10,0,0),0))
DRAWRECTREL(0,CONST(830-(主力净值的绝对值*500/DAZHI)),30,935,IF(CONST(主力净值)>0,RGB(255,0,255),RGB(0,100,100)))
DRAWRECTREL(35,CONST(830-(超B的绝对值*500/DAZHI)),65,935,IF(CONST(超B)>0,RGB(100,0,0),RGB(0,50,0)))
DRAWRECTREL(70,CONST(830-(超S的绝对值*500/DAZHI)),100,935,IF(CONST(超S)>0,RGB(100,0,0),RGB(0,50,0)))
DRAWRECTREL(105,CONST(830-(大B的绝对值*500/DAZHI)),135,935,IF(CONST(大B)>0,RGB(100,0,0),RGB(0,50,0)))
DRAWRECTREL(140,CONST(830-(大S的绝对值*500/DAZHI)),170,935,IF(CONST(大S)>0,RGB(100,0,0),RGB(0,50,0)))
当满足条件 到最后交易的周期=1时,在横轴0.000纵轴0.95位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.038纵轴0.95位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.0764纵轴0.95位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.112纵轴0.95位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.147纵轴0.95位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0纵轴0位置书写文字
输出{原为:今日分类持仓}
DRAWTEXT_FIX( 到最后交易的周期=1,0.100,0,0,'单位(万元)'),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.00,0.875,0,INTPART(主力净值)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.035,0.800,0,INTPART(超B)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.070,0.875,0,INTPART(超S)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.105,0.800,0,INTPART(大B)),画黄色
DRAWNUMBER_FIX( 到最后交易的周期=1,0.140,0.874,0,INTPART(大S)),画黄色