N:=3;
P1:=5;
P2:=13;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,P1,1);
D:=SMA(K,P2,1);
ENTERLONG:crOSS(k,d) ; {多头买入}
EXITLONG:CROSS(d,k) ; {多头卖出}
N:=3;
P1:=5;
P2:=13;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:=SMA(RSV,P1,1);
D:=SMA(K,P2,1);
ENTERLONG:crOSS(k,d) ; {多头买入}
EXITLONG:CROSS(d,k) ; {多头卖出}