上线:=SMA(C,6.5,1);
一号支撑线:=SMA(C,14.5,1);
上线1:=SMA(C,3,1);
一号支撑线1:=SMA(C,8,1);
A7:=(2*C+H+L)/4;
VAR1:=LLV(A7,21);
VAR2:=HHV(A7,30);
操作:=MA(A7,5);
YCX:=操作>=REF(操作,1);
H1:=MAX(MAX(上线,一号支撑线1),一号支撑线);
L1:=MIN(MIN(上线,一号支撑线1),一号支撑线);
RSV:=(CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100;
K:=SMA(RSV,3,1);
D1:=SMA(K,3,1);
J:=3*K-2*D1;
主升:CLOSE>OPEN AND H1<C AND O<L1 AND YCX AND crOSS(上线1,操作) AND LOW>VAR1 AND 上线1>一号支撑线 AND J<90;