自用买卖天机(源码、副图、贴图)介绍
自用买卖天机(源码、副图、贴图)
自己整合的成交量公式,红色代表买量,绿色代表卖量,白色代表全天的量,蓝色线是5日平均量,白色线是20日平均量!
源码:
{自用买卖天机}
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
成交量:VOL,LINETHICK0;
主动买盘:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
主动卖盘:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
STICKLINE(VOL>0,VOL,0,2,1),COLORWHITE;
STICKLINE(主动买盘>0,0,主动买盘,2,0),COLORRED;
STICKLINE(主动卖盘<0,0,主动卖盘,2,0),COLORGREEN;
换手率:HSL,NODRAW;
累计换手:SUM(换手率,N),NODRAW;
MAVOL1:MA(VOL,M1);
MAVOL2:MA(VOL,M2);
gd16235