RSV1K:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
RSV2:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
WEN:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
W1:=SMA(RSV2,3,1);
W2:=SMA(W1,3,1);
趋势线:=WEN,LINETHICK2,COLOR460CF2;
上拐点:=REF(趋势线,1)<REF(趋势线,2) AND 趋势线>REF(趋势线,1);
红球:上拐点 AND REF(趋势线,1)<=20;