通达信成交量差副图公式
{VOL净量累和}
量:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,量*(HIGH-LOW),IF(CLOSE<OPEN,量*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
卖量:=(IF(CLOSE>OPEN,0-量*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-量*(HIGH-LOW),0-VOL/2)))*-1;
总量:=买量+卖量,LINETHICK0;
净量:=买量-卖量,LINETHICK0;
五日净量:SUM(净量,5),LINETHICK2,COLORFFFFFF;
十日净量:SUM(净量,10),LINETHICK2,COLOR007800;
二十日净量:SUM(净量,20),LINETHICK2,COLOR0000AD;
六十日净量:SUM(净量,60),LINETHICK2,COLORFF0000;
0;
{成交量差}
VSTD:STD(VOL,10),VOLSTICK;
DRAWTEXT_FIX(1,0.53,0,0,'【股海网原创】'),COLORRED;
MAVSTD5:MA(VSTD,5);
MAVSTD10:MA(VSTD,10);