LC:=REF((C+O+H+L)/4,0.5);
rsi:=((Sma(MAX(CLOSE - LC,0),4.5,1))/(SMA(Abs(CLOSE - LC),3.9,1)))*(100);
买点:=crOSS(RSI,20);
C_V:=REF(CLOSE,1);
R_V:=SMA(MAX(CLOSE-C_V,0),3,1)/SMA(ABS(CLOSE-C_V),3,1)*100;
买入:=CROSS(R_V,7);
RSV:=(C-LLV(L,17))/(HHV(H,17)-LLV(L,17))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDD:=LLV(J,2)=LLV(J,8);
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
CQ:=CROSS(J,REF(J+0.01,1)) AND BDD AND J<20;
XG:买点 AND 买入 AND CQ;