N:=13;
M:=8;
T:=IF(DATE<=20280530,1,NULL);
s:=FROMNIGHT;
WOL:=IF(FROMOPEN<90,(vol/(FROMOPEN+20))*230,(VOL/(FROMOPEN))*240)*T;
STICKLINE(s=0,WOL,0,10,1)*T,coloryellow;
STICKLINE(C>O,0,VOL,8,1)*T,colorred;
STICKLINE(C<O,0,VOL,8,1)*T,colorcyan;
VAR1:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主卖:=IF(CLOSE>OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,VAR1*(HIGH-LOW),VOL/2))*T,COLOR00FF00,NODRAW;
主买:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2))*T,colorred,NODRAW;
买盘:=OUTVOL*T;//
卖盘:=INVOL;//(VOL-OUTVOL)
卖量:=(VOL-OUTVOL) *T;
买卖比:主买/VOL*100*T,colorred,NODRAW;
STICKLINE(主卖>0 AND C<O,主买,VOL,8,0)*T,colorcyan;
STICKLINE(主卖>0 AND C>=O,主买,VOL,8,0),RGB(255,200,125);
STICKLINE(主买>0,0,主买,8,0)*T,COLOR0000EE;
买量线:SMA(主买,M,1)*1.86,colormagenta;
成交:VOL;
成交线:MA(VOL,N),colorwhite;
资金:(ZJLR[-1] - ZJLC[-1])*T,NODRAW;//(VOL/FROMOPEN*240)/MA(VOL,5)*T,NODRAW;
金换股:=(资金/C)*3;
STICKLINE(金换股>=0,0,金换股,3,0),RGB(255,200,255); //COLOR00FF00,COLORFFCC18;
STICKLINE(金换股< 0,0,金换股,3,0),RGB(50,150,250),COLOR00FF00;
换手:(VOL/SHGZG)*100,NODRAW,colorlicyan;
量比:(VOL/(FROMOPEN+5)*245)/(FIVEDAYVOL/5),NODRAW;
资金均:MA(SUM(资金/C,3),5),coloryellow;