背离就是说股价下跌但macd上涨,或者股价上涨macd下跌。底背离选股(macd,kdj,rsi) 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,dea);a2:=barslast...
n:=9; m1:=3; m2:=3;rsv:=(close-llv(low,n))/(hhv(high,n)-llv(low,n))*100;k:=sma(rsv,m1,1);d:=sma(k,m2,1);j:=3*k-2*d;xg:k>ref(k,1) and ref(k,1)<ref(k,2);{已经测试,复制可直接使用,满意请给予采纳}
a1:=ma(close,3);a2:=ma(close,7);a3:=ma(close,21);a4:=ma(close,56);lc:= ref(close,1);rsi1:=sma(max(close-lc,0),13,1)/sma(abs(close-lc),13,1)*100;close>a1 and a1>a2 and a2>a3 and a3>a4 and c...
均价:=amount/vol/100,coloryellow;ll:=c<ref(c,1) and c/均价<(1-0.03);ll1:=cross(sum(ll,0),0.5);bb1:=sum(ll1,0)*cross(count(c>ref(c,1),barslast(ll1)),0.5);cb1:=const(sum(if(bb1,ref(c,1),draw**),0))...