X_1:=IF(CLOSE>HHV(REF(HIGH,1),2),1,IF(CLOSE<LLV(REF(LOW,1),2),(-1),0));
X_2:=crOSS(X_1,0);
X_3:=CROSS(0,X_1);
X_4:=5;X_5:=10;X_6:=0.01*EMA(AMOUNT,X_4)/EMA(vol,X_4);
X_7:=(X_6/REF(X_6,1)-1)*100;
X_8:=MA(X_7,X_5);
X_9:=X_7<(-1.1) AND X_8<(-1.1);
X_10:=CROSS(X_7,X_8);
X_11:=X_9 AND X_10;X_12:=9;
X_13:=CLOSE-REF(CLOSE,1);
X_14:=100*EMA(EMA(X_13,X_12),X_12)/EMA(EMA(Abs(X_13),X_12),X_12);
X_15:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_16:=REF(CLOSE,1);
X_17:=SMA(MAX(CLOSE-X_16,0),X_12,1)/SMA(ABS(CLOSE-X_16),X_12,1)*100;
X_18:=(CLOSE-REF(CLOSE,26))/REF(CLOSE,26)*10;
X_19:=CROSS(X_17,20) AND X_14<(-45) AND X_15<12 AND X_18<(-2) AND X_11;
买点:X_19,NODRAW,COLORRED;
卖点:X_3 AND COUNT(X_3,BArslAST(买点))=1,NODRAW,COLORGREEN;
区间:IF(COUNT(X_3,BARSLAST(买点))=0,BARSLAST(买点),DRAWNULL),NODRAW;
STICKLINE(区间>0,(-30),50,4,0),COLOR696960;
STICKLINE(卖点>0,(-30),50,4,0),COLORGREEN;
STICKLINE(买点>0,(-30),50,4,0),COLORRED;
收益点:IF(区间!=DRAWNULL OR 卖点,CLOSE/REF(CLOSE,BARSLAST(X_19))*100-100,DRAWNULL);
IF(区间!=DRAWNULL OR 卖点,CLOSE/REF(CLOSE,BARSLAST(X_19))*100-100,DRAWNULL),COLORSTICK;