dif:ema(close,12) - ema(close,26);dea:ema(dif,9);macd:2*(dif-dea), colorstick; a1:=barslast(ref(cross(dif,dea),1));底背离:ref(close,a1+1)>close and dif>ref(dif,a1+1) and cross(dif,dea);stickline(底背离,0,0.1,8,0),colorred;drawline(a1=0,dea,底背离,dea,0),colorred,linethick2;a2:=barslast(ref(cross(dea,dif),1));顶背离:=ref(close,a2+1)<close and ref(dif,a2+1)>dif and cross(dea,dif);drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick2;根据思路编写公式,修改公式。盘中预警,条件选股。公式解密,去除时间限制。不知道你看不看的懂,可以先试试。meigushe888~~ 20210311
xg:ref(c<o and h/l>1.03,1)and c>o and c/ref(c,1)-1>ref(h/l-1,1)*0.5 and macd.macd(count(ma(c,10)(c,20)and ma(c,20)(c,60),30)=30)and hhv(h,10)/llv(l,10)>1.05;