WR1:=100-100*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)); WR2:=100-100*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)); WR3:=100-100*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2)); WR:(WR1+2*WR2+3*WR3)/6; 威廉1线:MA(WR,3),COLORRED; STICKLINE(CROSS(WR, 威廉1线) AND CROSS(WR3, 威廉1线) AND 威廉1线<10 AND WR3>威廉1线 AND WR<10,-20,0,2,0),COLORRED;