X_1:=20;
X_2:=2;
X_3:=30;
X_4:=CLOSE-REF(CLOSE,X_1);
X_5:=SUM(Abs(CLOSE-REF(CLOSE,1)),X_1);
X_6:=SUM(ABS(X_4/X_5),1);
X_7:=2/(X_2+1);
X_8:=2/(X_3+1);
X_10:=X_6*(X_7-X_8)+X_8;
X_11:=X_10*X_10;
趋势向下:=DMA(CLOSE,X_11);
X_12:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_13:=SMA(X_12,3,1);
X_14:=SMA(X_13,3,1);
X_15:=3*X_13-2*X_14;
X_16:=LLV(X_15,2)=LLV(X_15,8);
X_18:=crOSS(X_15,REF(X_15+0.01,1)) AND X_16 AND X_15<20;
X_19:=IF(CLOSE>趋势向下,1,OPEN);
XG:X_18=1 AND X_19=1;