通达信股票公式之主力资金线/主力资金流向
分享通达信(L2) 主力资金线/主力资金流向 源码
仿大智慧做的资金线和资金流,新手小试牛刀,做得不好请高手指点修改.
通达信源码
{主力资金线}
EYE:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*VOL/CAPITAL*100;
EYES:=SUM(EYE,0);
GOLD:=EYES;
主力资金:GOLD,COLORYELLOW;
STICKLINE(EYE>0 AND EYE<0.5,GOLD,GOLD+EYE,0.5,0),COLORRED;
STICKLINE(EYE>=0.5 AND EYE<1,GOLD,GOLD+EYE,1,0),COLORRED;
STICKLINE(EYE>=1 AND EYE<2,GOLD,GOLD+EYE,2,0),COLORRED;
STICKLINE(EYE>=2,GOLD,GOLD+EYE,3,0),COLORRED;
STICKLINE(EYE>-0.5 AND EYE<=0,GOLD+EYE,GOLD,0.5,0),COLORCYAN;
STICKLINE(EYE<=-0.5 AND EYE>-1,GOLD+EYE,GOLD,1,0),COLORCYAN;
STICKLINE(EYE<=-1 AND EYE>-2,GOLD+EYE,GOLD,2,0),COLORCYAN;
{资金流}
净流入:(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000,COLORYELLOW;
万:0,COLORGRAY;
流入额:(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/100000000,COLORYELLOW;
亿:0,COLORGRAY;
活跃资金:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000;
净流入B:(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000,COLORBLACK;
流入额B:(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000000,COLORBLACK;
STICKLINE(活跃资金>0,0,活跃资金,2,0),COLORRED;
STICKLINE(活跃资金<0,0,活跃资金,2,0),COLORLIGREEN;
还有个是免费用的资金线和资金流,准确性不是很高,大方向参考没问题,先来个图,大家喜欢的话我再传上来
有朋友说用不了我把公式也奉上
(南方财富网SOUTHMONEY.COM)
延伸阅读
|
要闻导读
|
||||||||||
|