x_1:=if(close>hhv(ref(high,1),2),1,if(close 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;