N=5;
M1=4;
M2=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K2:SMA(RSV,M1,1),colormagenta;
D2:SMA(K2,M2,1),colorred;
J2:3*K2-2*D2,colorblue;
STICKLINE(HOUR>=9 AND HOUR<10 ,0, V/((TIME-93000)/100)*240,8,1),colorwhite;
STICKLINE(HOUR>=10 AND HOUR<11 ,0, V/((TIME-100000)/100+30)*240,8,1),colorwhite;
STICKLINE(HOUR>=11 AND HOUR<12 ,0, V/((TIME-110000)/100+90)*240,8,1),colorwhite;
STICKLINE(HOUR>=13 AND HOUR<=14,0, V/((TIME-130000)/100+120)*240,8,1),colorwhite;
STICKLINE(HOUR>=14 AND HOUR<=15,0, V/((TIME-140000)/100+180)*240,8,1),colorwhite;
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));
STICKLINE(C>O,0,VOL/HHV(VOL,40)*100,8,1),colorgreen;
STICKLINE(C<O ,0,VOL/HHV(VOL,40)*100,8,1),colorgreen;
STICKLINE(C=O AND C<REF(C,1),0,VOL/HHV(VOL,40)*100,8,1),colorgreen;
STICKLINE(C=O AND C>REF(C,1),0,VOL/HHV(VOL,40)*100,8,1),colorgreen;
STICKLINE(主动买盘>0,0,主动买盘/HHV(VOL,40)*100,8,0),colorred;
换手: VOL/CAPITAL*100;
STICKLINE(换手>=3 AND 换手<8,0, 主动买盘/HHV(VOL,40)*100,8,0),coloryellow;
STICKLINE(换手>=8,0, 主动买盘/HHV(VOL,40)*100, 8,0) ,colorblue;
买盘:(主动买盘/(主动买盘-主动卖盘))*100;
卖盘:(-主动卖盘/(主动买盘-主动卖盘))*100;
DRAWICON ( REF(J2,1)<REF(K2,1) AND REF(J2,1)<REF(J2,2) AND J2>REF(J2,1) ,J2,1);
DRAWICON ( REF(J2,1)>REF(K2,1) AND REF(J2,1)>REF(J2,2) AND J2<REF(J2,1) ,J2,2);