量:VOL/10000,VOLSTICK;
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW,COLORRED;
STICKLINE(V2 =1,0,量,2,0),COLORYELLOW;
换手率:=HSL;
换55手:SUM(换手率,55),NODRAW;
AA:=量/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:IF(CLOSE OPEN,AA*(HIGH-LOW),IF(CLOSE OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),NODRAW,COLORRED;
卖量:IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-AA*(HIGH-LOW),0-VOL/2)),NODRAW,COLORCYAN;
量差:(买量+卖量),NODRAW,COLORYELLOW;
五日流入:SUM(量差,5),COLORGREEN;
连红天:BARSLASTCOUNT(量差 0),NODRAW,COLORLIRED;
十日翻红:COUNT(量差 0,10),NODRAW,COLORRED;
熊天:BARSLASTCOUNT(五日流入 0),NODRAW,COLORCYAN;
牛天:BARSLASTCOUNT(五日流入 0),NODRAW,COLORRED;
获利盘%:=WINNER(CLOSE)*100,NODRAW,COLORRED;
A:=SUMBARS(V ,CAPITAL*1);
成本:SUM(COST(获利盘%),A)/A,NODRAW;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量差3:=SMA(量差,3,1);
量能饱和度%:IF(SAT 1,1,SAT)*100,NODRAW,COLORYELLOW;
中点:=REFDATE(HHV(量差3,120),DATE)*2.5;
STICKLINE(CURRBARSCOUNT=20,中点*1.9,中点*1.5,120,1),COLOR00DDDD;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.88,中点*1.52,量能饱和度%,0),COLOR0033FF;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.82,中点*1.58,量能饱和度%,0),COLOR0077FF;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.76,中点*1.64,量能饱和度%,0),COLOR0099FF;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.7,中点*1.7,量能饱和度%,0),COLOR00DDFF;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.88,中点*1.52,量能饱和度%,0),COLORFF7700;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.82,中点*1.58,量能饱和度%,0),COLORFF9900;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.76,中点*1.64,量能饱和度%,0),COLORFFBB00;
STICKLINE(CONST(C O)=1 AND CURRBARSCOUNT=20,中点*1.71,中点*1.69,量能饱和度%,0),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=24,中点*3,'量能饱和度'),COLORWHITE;