X_1:=(CLOSE-REF(CLOSE,20))/REF(CLOSE,20)*100;
X_2:=MA(X_1,20);
X_3:=X_2<REF(X_2,1);
X_4:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_5:=EMA(X_4,9);
X_6:=X_4<X_5;
X_7:=MA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19);
X_8:=(-100)*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
X_9:=EMA((-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4);
X_10:=X_7+100;
X_11:=X_8+100;
X_12:=X_9+100;
X_13:=LOW<REF(CLOSE,1) AND LOW<REF(CLOSE,2);
X_14:=MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND REF(MA(CLOSE,20),1)<REF(MA(CLOSE,20),2);
买入:X_14 AND CLOSE>MA(CLOSE,20),COLORRED;
卖1:X_3 AND X_6 AND (X_10<REF(X_10,1) AND X_10>80) AND (X_12<REF(X_12,1) AND X_12>65) AND (X_11<61 AND X_11<REF(X_11,1)) AND X_13,COLORWHITE;
卖2:FILTER(CLOSE<MA(CLOSE,20) AND VOL>REF(VOL,1) AND X_6 AND X_3,9),COLORYELLOW;
卖3:CLOSE>REF(CLOSE,1)*1.0395 AND CLOSE<OPEN AND VOL>REF(VOL,1)*3,COLORBLUE;