通达信小单净流出指标公式
2020/5/5 19:16:20
N:=3;M:=10;
VOL,VOLSTICK;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED;
卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00 ;
STICKLINE(VOL>0,VOL,0,2,1),COLORWHITE;
STICKLINE( 买>0,0, 买,1 ,0),COLORLIRED;
买卖差:=(买+卖);
买卖比:ABS(买/卖);
N日内净流入:SUM (买卖差,N), LINETHICK2,COLORGREEN;
流入:IF (N日内净流入>REF(N日内净流入,1),N日内净流入,DRAWNULL),COLORMAGENTA,LINETHICK2;
M日内翻红天数:=COUNT(买卖差>0,M);
连红天数:=BARSLASTCOUNT(买卖差>0);
{当天大单}
VAR3:=BUYVOL ;
VAR4:=SELLVOL;
VAR5:=IF(VAR3*C*100>200000,VAR3,0);{成交在20万以上的大单}
VAR6:=IF(VAR4*C*100>200000,VAR4,0);{成交在20万以上的大单}
委买:=SUM(VAR5,0);
委卖:=SUM(VAR6,0);
大单买卖比:委买/委卖;
{当天小单比}
小单买卖比:1-大单买卖比;
投股票 网 www.tou18.c n
股市公式下载推荐