N:=15;
DMH:=SUM(IF(H>REF(H,1),H-REF(H,1),0),N);
DML:=SUM(IF(L>REF(L,1),0,REF(L,1)-L),N);
量:DMH/(DMH+DML),COLORWHITE;
0.80,DOTLINE;
0.5,DOTLINE;
0.20,DOTLINE;
XG:=量<0.1;
STICKLINE(量>0.82,1,0.9,1,0),COLORCYAN;
STICKLINE(量<0.1,0.02,0.00,1,0),COLORBLUE;
{用法:出现信号出货,信号消失,量线下穿0.8和股价形成背离必须清仓以规避调整的风险};