N:=9;M:=3;LOWV:=LLV(LOW,N);HIGHV:=HHV(HIGH,N);RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);K:=EMA(RSV,M);XG:CROSS(K,REF(K,1)); (已测试)