N:=9;M:=10;M1:=3;M2:=3;
RS1:=((CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)))*(100);
RS2:=((CLOSE-LLV(LOW,(5)*(N)))/(HHV(HIGH,(5)*(N))-LLV(LOW,(5)*(N))))*(100);
RS3:=((CLOSE-LLV(LOW,(20)*(N)))/(HHV(HIGH,(20)*(N))-LLV(LOW,(20)*(N))))*(100);
K1:=SMA(RS1,M1,1);
K2:=Sma(RS2,M1+1,1);
K3:=SMA(RS3,M1+2,1);
D1:=SMA(K1,M2,1);
D2:=SMA(K2,M2+1,1);
D3:=SMA(K3,M2+2,1);
中叉:CROSS(K2,D2);