把以上公式中的所有输出“:”后加一个“=”号,再在后面加一句ag:macd底背离 and kdj底背离 and rsi底背离;选股公式只能有一个输出,记住这点自己动手也不会很难的。difz:=ema(c,12)-ema(c,26);deaz:=ema(difz,9);macdz:=8*(difz-deaz);rsv:=((close-llv(low,21))/(hhv(high,21)-llv(low,21)))*247.2-123.6;sqx:=(c-ma(close,13))*10;dif:=ema(ma(sqx,7),1);dea:=ema(dif,7);macd:=(dif-dea)*2;k:=sma(sma( rsv,3,1),3,1),colorwhite;d:=ma(ema(k,3),3),coloryellow;j:=3*k-2*d,colormagenta;a11:=barslast(ref(cross(dif,dea),1));b1:=ref(c,a11+1)>c and ref(dif,a11+1)<dif and cross(dif,dea);a12:=barslast(ref(cross("kdj.k","kdj.d"),1));b2:=ref(c,a12+1)>c and ref("kdj.k",a12+1)<"kdj.k" and cross("kdj.k","kdj.d");a13:=barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1));b3:=ref(c,a13+1)>c and ref("rsi.rsi1",a13+1)<"rsi.rsi1"and cross("rsi.rsi1","rsi.rsi2");c1:=barslast(ref(cross(dea,dif),1));d1:=ref(c,c1+1)<c and ref(dif,c1+1)>dif and cross(dea,dif);c2:=barslast(ref(cross("kdj.d","kdj.k"),1));d2:=ref(c,c2+1)<c and ref("kdj.k",c2+1)>"kdj.k" and cross("kdj.d","kdj.k");c3:=barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1));d3:=ref(c,c3+1)<c and ref("rsi.rsi1",c3+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1");macd底背:=if(b1>0,50,0),linethick2,colorred;kdj底背:=if(b2>0,65,0),linethick2,colorff00ff;rsi底背:=if(b3>0,80,0),linethick2,coloryellow;macd顶背:=if(d1>0,-50,0),linethick2,color00ff00;kdj顶背:=if(d2>0,-65,0),linethick2,colorffcc66;rsi顶背:=if(d3>0,-80,0),linethick2,colorwhite;ag:macd底背 and kdj底背 and rsi底背; 20210311