分享通達信(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;
還有個是免費用的資金線和資金流,準(zhǔn)確性不是很高,大方向參考沒問題,先來個圖,大家喜歡的話我再傳上來
有朋友說用不了我把公式也奉上
(南方財富網(wǎng)SOUTHMONEY.COM)