LOWV:=LLV(LOW,21);
HIGHV:=HHV(HIGH,21);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,5);
K:=EMA(RSV,5);
D:=MA(K,5);
A1:=REF(C,1);
A2:=SMA(MAX(C-A1,0),5,1)/SMA(Abs(C-A1),5,1)*1000;
A4:=A2-LLV(A2,10);
A5:=(MA(A4,2)*3+A4*13)/16;
A6:=IF(A5>13,MA(A5,2),A5)/6;
rsi:=SMA(MAX(C-A1,0),12,1)/SMA(ABS(C-A1),12,1)*100;
LIN:=LLV(MA(RSI,3),12);
YAN:=(HHV(MA(RSI,3),12)+LLV(MA(RSI,3),12))/2;
FANG:=IF(crOSS(A6,1) AND (A6<30)AND RSI<35 AND RSI>=LIN
AND RSI
VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(VAR2+2*VAR3+3*VAR4)/7;
VAR6:=MA(VAR5,1);
低买:= IF(VAR6<-8,1,0),LINETHICK1,COLORRED;
抄底: FANG=30 AND D<20 AND 低买=1 ,LINETHICK3,COLORRED;