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_9:=X_6*(X_7-X_8)+X_8;
X_10:=X_6*(X_7-X_8)+X_8;
X_11:=X_10*X_10;
趋势向下:DMA(CLOSE,X_11),COLORFFAA00,LINETHICK2;
趋势向上:IF(趋势向下>REF(趋势向下,1),趋势向下,DRAWNULL),COLORMAGENTA,LINETHICK2;
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_17:=IF(crOSS(X_15,REF(X_15+0.01,1)) AND X_16 AND X_15<20,30,0);
X_18:=CROSS(X_15,REF(X_15+0.01,1)) AND X_16 AND X_15<20;
X_19:=IF(CLOSE>趋势向下,1,OPEN);
XXX:DRAWICON(X_18=1 AND X_19=1,LOW*0.98,1);