彩色立体买卖成交量指标--杨小邪成交量(副图,源码,贴图)介绍
彩色立体买卖成交量指标--杨小邪成交量(副图,源码,贴图)
简要介绍一下指标:红色的部分是当日的主动买盘量,绿色的部分是当日的主动卖盘量,红色加绿色为全天的成交量,指标还显示了当日的成交量、预计的成交量、买量、卖量、净买量、换手率、10天累计换手率、5天平均成交量、10天平均成交量。
源码:
{杨小邪成交量}
成交量:VOL,VOLSTICK;
预计量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),COLORFFFF00;
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,POINTDOT ;
卖盘:-IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLORGREEN,POINTDOT;
净买:(买盘-卖盘),COLORRED,NODRAW;
换手率:HSL,NODRAW;
累计10日换手:SUM(换手率,10),NODRAW;
STICKLINE(VOL>0,VOL,0,3,0),COLOR006600;
STICKLINE(VOL>0,VOL,0,2,0),COLOR009900;
STICKLINE(VOL>0,VOL,0,1.1,0),COLOR00CC00;
STICKLINE(VOL>0,VOL,0,0.4,0),COLOR00FF00;
STICKLINE(买盘>0,0,买盘,3,0),COLOR000066;
STICKLINE(买盘>0,0,买盘,2,0),COLOR000099;
STICKLINE(买盘>0,0,买盘,1.1,0),COLOR0000CC;
STICKLINE(买盘>0,0,买盘,0.4,0),COLOR0000FF;
五日:MA(VOL,5),COLORWHITE,LINETHICK1;
十日:MA(VOL,10),COLORFFFF00,LINETHICK1;
{
五日均买:MA(买盘,5),COLORWHITE,LINETHICK1;
十日均卖:MA(卖盘,5),COLORGREEN,LINETHICK1;
};
gd16264