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;
成交量能值:成交量能数值,COLORLIBLUE,VOLSTICK;
二十日飘红:COUNT(成交量能值>0,20),COLORRED,NODRAW;
STICKLINE(主卖<0,0,主卖,3,0),COLORGREEN;
STICKLINE(主卖<0,0,主卖,2,0),COLORGREEN;
STICKLINE(主卖<0,0,主卖,1.1,0),COLORGREEN;
STICKLINE(主卖<0,0,主卖,0.4,0),COLORGREEN;
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; |