分享通達(dá)信(L2) 主力資金線/主力資金流向 源碼
仿大智慧做的資金線和資金流,新手小試牛刀,做得不好請(qǐng)高手指點(diǎn)修改.
通達(dá)信源碼
{主力資金線}
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;
萬(wàn):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;
還有個(gè)是免費(fèi)用的資金線和資金流,準(zhǔn)確性不是很高,大方向參考沒(méi)問(wèn)題,先來(lái)個(gè)圖,大家喜歡的話我再傳上來(lái)
有朋友說(shuō)用不了我把公式也奉上
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)