rsv1:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;k:=sma(rsv1,3,1);d:=sma(k,3,1);j:=3*k-2*d;a1:=barslast(ref(cross(j,k),1));底背离:ref(c,a1+1)>c and j>ref(j,a1+1)and cross(j,k);
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;天数:=barslast(ref(cross(dea,dif) and dif>0,1));macd背离:=cross(dea,dif) and dif<ref(dif,天数+1);xg:cross(kdj.k,kdj.j) and dif>0 a...