N:=1;
量:=V;
换手:=V/CAPITAL*100;
VAR1:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主卖:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2));
主动比:=主买/主卖*-1;
成交量能数值:=主动比-2;
成交量能值:成交量能数值,COLORBLUE,VOLSTICK;
二十日飘红:COUNT(成交量能值>0,20),COLORRED,NODRAW;
十日飘红:COUNT(成交量能值>0,10),NODRAW;
{ _最新股票指标公式}
STICKLINE(主卖<0,0,主卖,3,0),COLORCC0000;
STICKLINE(主卖<0,0,主卖,2,0),COLORFF4400;
STICKLINE(主卖<0,0,主卖,1.1,0),COLORFF8800;
STICKLINE(主卖<0,0,主卖,0.4,0),COLORFFCC00;
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;