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(abs(close-lc),6,1)*100;顶背离:c>=llv(c,60) and a<llv(a,60) and a<=ref(a,1); 20210311
天数:=barslast(ref(cross(rsi.rsi1,ref(rsi.rsi1,1)),1));aa:=cross(rsi.rsi1,ref(rsi.rsi1,1)) and rsi.rsi1<30 and ref(rsi.rsi1,1)>ref(rsi.rsi1,天数+2);bb:=ref(c,1)<ref(c,天数+2);xg:aa and bb and 天数<...