n:=13;m:=3;psy:=count(close>ref(close,1),n)/n*100;pa:=ma(psy,m);jj:=dyna**(11) ;tj4:=filter((c-jj)/jj<-0.02 and pa<16,13);tj5:=filter((c-jj)/jj<-0.04 and pa<16,13);tj4 or tj5;
{买入股票}v11:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma(sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1),3,1);趋势线:=ema(v11,3);v12:=(趋势线-ref(趋势线,1))/ref(趋势线,1)*100;买入股票:趋势线<=13 and v12&g...