RSV1:=(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);
J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
W1:=SMA(RSV2,3,1);W2:=SMA(W1,3,1);
出点准备:=IF(crOSS(J2,J1) AND J2>85,70,100);
{ _通达信股票指标公式}
趋势线:= WEN,LINETHICK2;
买点准备:=IF(趋势线<=10,30,0);
G1:=W1,LINETHICK2,COLORWHITE;
G2:=W2,LINETHICK2,COLORCYAN;
TJ6:= MA(C,30)>=REF(MA(C,30),1) AND MA(C,5)>REF(MA(C,5),1);
A4:="macd.DIF">REF("MacD.DIF",2);
信号:CROSS(趋势线,G1) AND CROSS(趋势线,G1) AND TJ6 AND A4 AND G1>=REF(G1,1);