以下是通达信主力资金流向源码附图(无源码的请下载附件导入)
主力资金流向源码
ZFA:=(CLOSE/REF(CLOSE,1)-1)*100;
ZFB:=(CLOSE/OPEN-1)*100;
ZF:MAX(ZFA,ZFB),NODRAW;
AA:=IF(DATE<1180101,1,DRAWNULL);
DDXV:=(LARGEINTRDVOL-LARGEOUTTRDVOL)/10;
DDLV:=(L2_VOL(0,0)-L2_VOL(0,1))/10;
LLL:=MAX(DDXV,DDLV);
DDX:AA*(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;
DDL:AA*(L2_VOL(0,0)-L2_VOL(0,1))*10000/FINANCE(7),NODRAW;
当日流入:AA*LLL,NODRAW;
TDXSTEP139:AA*STICKLINE(LLL>0,0,LLL,2,0),COLORRED;
TDXSTEP140:AA*STICKLINE(LLL<0,0,LLL,2,0),COLORCYAN;
三日:AA*SUM(LLL,3),NODRAW;
五日:AA*SUM(LLL,5),NODRAW;
十日:AA*SUM(LLL,10),NODRAW,COLORLIBLUE;
总额:AA*SUM(LLL,0),NODRAW;
仓位:AA*(50+SUM(DDX,0)),NODRAW;
NOTEXT1:AA*SUM(LLL,0)*1.1,COLORRED,LINETHICK2;
NOTEXT6:AA*SMA(NOTEXT1,3,1),COLORLIBLUE;
NOTEXT2:AA*SMA(NOTEXT6,6,1),COLORLIGRAY;
NOTEXT3:AA*SMA(NOTEXT2,6,1),COLORBROWN;
NOTEXT4:AA*SMA(NOTEXT3,6,1),COLORLIMAGENTA;
NOTEXT5:AA*SMA(NOTEXT4,12,1),COLORLIGREEN,LINETHICK2;
XG5:AA*IF(COUNT(NOTEXT1>NOTEXT5,30)=1 AND NOTEXT1>NOTEXT5,REF(BARSLASTCOUNT(NOTEXT1<NOTEXT5),1)*100,0),COLORGRAY,LINETHICK3;
XG:AA*IF(COUNT(NOTEXT1>NOTEXT4,13)=1 AND NOTEXT1>NOTEXT4,REF(BARSLASTCOUNT(NOTEXT1<NOTEXT4),1)*100,0),COLORYELLOW,LINETHICK2;
|