volUME:VOL,VOLSTICK;
MAVOL1:=MA(VOLUME,5);
MAVOL2:=MA(VOLUME,10);
AA:=MAVOL1;
N:=9;
M1:=3;
M2:=5;
RSV:=((AA-LLV(AA,N))/(HHV(AA,N)-LLV(AA,N))-0.2)*AA+AA;
K:=SMA(RSV,M1,1);
D:=SMA(K,M2,1);
J:3*K-2*D,COLORGREEN,LINETHICK2;
DD:(VOL>J AND C>O AND J>=REF(J,1))*VOL*2,COLORRED,LINETHICK2;