exp1:=ema(close,12);exp2:=ema(close,50);aa1:=cross(exp1,exp2);xg3:=count(aa1,30);xg2:=count(aa1,20);xg1:=count(aa1,10);xg:(xg3=0 and ref(xg3,1)>0)or(xg2=0 and ref(xg2,1)>0)or(xg1=0 and ref(xg1,1)>0);
rsv:=ema((close-llv(low,9))/(hhv(high,9)-llv(low,9))*100,3);k:=ema(rsv,3);d:=ma(k,3);jx:=cross(k,d);x:=barslast(jx)+2;t1:=k 2 and count(t1=1,ref(x,1))=ref(x,1);应该是你想要的效果 有什么问题可以私聊联系我.