n:=20;d:=5;boll:=ma(close,n);ub:=boll+2*std(close,n);lb:=boll-2*std(close,n);xg:count(range(c,lb,boll)=1,d) and lb>ref(lb,1) and ref(lb,1)<ref(lb,2);{d:为收盘价在中轨和下轨间运行天数(我设为5天,自己可改),下轨第一天转头向上时进行选股...
n:=34;rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;k:=sma(rsv,3,1);d:=sma(k,3,1);j:=3*k-2*d;**线:=ema(j,6);cross(**线,50) and **线>ref(**线,1);若还有问题,请q上找我。