var2:=LLV(LOW,10);
var3:=HHV(HIGH,25);
動力線:= EMA((CLOSE-var2)/(var3-var2)*100,4);
STICKLINE(動力線>REF(動力線,1) ,動力線 ,REF(動力線,1),8 ,1),colorred;
STICKLINE(動力線<=REF(動力線,1) ,動力線 ,REF(動力線,1),8 ,1),colorgreen;
v0:50;
N:=10;M1:=3;M2:=3;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100,LINETHICK2;
K:=SMA(RSV,M1,1),LINETHICK1;
D:SMA(K,M2,1),LINETHICK1;
J:3*K-2*D,COLORFF00FF,LINETHICK1;
FILLRGN(j,0,j<0,RGB(255,255,0));
FILLRGN(j,90,j>90,RGB(255,0,0));
DRAWICON(CROSS(J,1),J,'buy');
DRAWICON(K>90 AND D>80 AND CROSS(D,K),D,'sell');