N1:=7;
N2:=14;
N3:=21;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,colorred,LINETHICK2;
RSI2:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N2,1)*100,colorgray,LINETHICK2;
RSI3:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N3,1)*100,colorliblue,LINETHICK2;
RSI4:SMA(RSI3,7,1),LINETHICK2,COLOR00CD00;
趋势F:=EMA(((CLOSE-LLV(LOW,48))/(HHV(HIGH,48)-LLV(LOW,48))*50),17)+9,COLORFFFFFF;
趋势8:=EMA(((CLOSE-LLV(LOW,53))/(HHV(HIGH,53)-LLV(LOW,53))*50),17)+9,COLOR3377DD;
趋势:=EMA(((CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*50),17)+18,COLOR6F4242
,LINETHICK2;
WR1:=EMA(趋势F,7)*1.372,colorred,LINETHICK2;
WR2:=WR1*1.0887;
WRF:(1.5*(趋势8+RSI4)-(WR2+WR1))+12,COLOR3377FF,colorblue,LINETHICK2;
上:IF(WRF>REF(WRF,1),WRF,DRAWNULL),colorblue;
下:IF(WRF<REF(WRF,1),WRF,DRAWNULL),coloryellow,LINETHICK2;
界:38,colorlicyan;
加仓线:51,colorlimagenta;
强:70,colorgreen;
BUY:IF((CROSS(WR1,趋势) OR CROSS(WR1,WRF) AND WRF<界 AND RSI2<加仓线),48,38),colorred,NODRAW;
XG:IF((CROSS(RSI2,RSI4) OR CROSS(RSI2,WRF) AND WRF<界 AND RSI1<加仓线),48,38),coloryellow,NODRAW;
STICKLINE((CROSS(WR1,趋势) OR CROSS(WR1,WRF))AND WRF<界 AND RSI2<加仓线,39,42,3,0),colorred;
STICKLINE((CROSS(RSI2,RSI4) OR CROSS(RSI2,WRF))AND WRF<界 AND RSI1<加仓线,39,42,2.5,0),coloryellow;
DRAWICON(FILTER(WRF>REF(WRF,1) AND REF(WRF,1)<REF(WRF,2) AND WRF<38,5),WRF*0.965,9);