涨幅:=C/REF(C,1);
X_1:=HHV(HIGH,9);
X_2:=LLV(LOW,9);
X_3:=(X_1-X_2)/100;
X_4:=(CLOSE-X_2)/(X_1-X_2)*100;
X_5:=SMA(X_4,3,1);
X_6:=SMA(X_5,3,1);
X_7:=3*X_5-2*X_6;
X_8:=X_5*X_3+X_2;
X_9:=X_6*X_3+X_2;
X_10:=X_7*X_3+X_2;
X_11:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_12:=EMA(X_11,9);
X_13:=2*(X_11-X_12);
X_14:=1.25*X_11-0.25*X_12;
X_15:=(X_14*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
X_16:=(X_11*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
X_17:=(X_12*13*27-27*11*EMA(CLOSE,12)+13*25*EMA(CLOSE,26))/28;
X_18:=(X_15+X_17)/2;
X_19:=ATAN((X_16-REF(X_16,1))/REF(X_16,1)*100)*180/3.14159;
K:=X_15;
X_20:=X_16;
X_21:=X_18;
Q:=X_17;
X_22:=EMA(K,3);
X_23:=EMA(K,2);
F:=EMA(X_21,1);
安全:=crOSS(F,Q) AND 涨幅<1.09 AND C>MA(C,20) AND MA(C,20)>REF(MA(C,20),1),COLORYELLOW;
安全买入:安全;