{dbbl-}rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv,3,1); d:=sma(k,3,1);j:=3*k-2*d;u1:=barslast(ref(cross(k,d),1));u2:=ref(c,u1+1)>c and ref(k,u1+1)<k and cross(k,d)and d<50;底部背离:u2>0;这样就可以啦。{个人看法仅供参考} 20210311
a3:=(c-llv(l,9))/(hhv(h,9)-llv(l,9))*100;a4:=sma(a3,3,1);a5:=sma(a4,3,1);a6:=3*a4-2*a5;a7:=c-ref(c,1);a8:=100*ema(ema(a7,6),6)/ema(ema(abs(a7),6),6);买:filter(llv(a8,2)=llv(a8,7) and count(a8<0,2) a...
diff:=ema(close,12) - ema(close,26);dea:=ema(diff,9);a1:=barslast(ref(cross(diff,dea),1));b1:=ref(c,a1+1)>c and ref(diff,a1+1)<diff and cross(diff,dea);xg:filter(b1>0,5);