lc:=ref(close,1);rsi1:sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;rsi2:sma(max(close-lc,0),12,1)/sma(abs(close-lc),12,1)*100;rsi3:sma(max(close-lc,0),24,1)/sma(abs(close-lc),24,1)*100;a3:=barslast(ref(cross(rsi1,rsi2),1));b3:=ref(c,a3+1)>c and ref(rsi1,a3+1)<rsi1 and ... 20210311
lc:=ref(close,1);a:=sma(max(close-lc,0),6,1)/sma(abs(close-lc),6,1)*100;底背离:c<=llv(c,60) and a>llv(a,60) and a>=ref(a,1);上面这个是底背离的,下面的是顶背离的:lc:=ref(close,1);a:=sma(max(close-lc,0),6,1)/sma(ab...
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...