x_1:=ref(close,1)/ref(close,2)>1.095 and ref(close,1)=ref(high,1) and open>ref(high,1) and vol=hhv(vol,5) and close;x_2:=ma(close,5)>ma(close,10);x_3:=close/ref(close,1)<0.91;x_4:=every(re...
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd0:=(dif-dea)*2;x0:=barslast(cross(dif,dea));xg:if(x0=0 and dif>ref(dif,ref(x0,1)+1)and l(l,ref(x0,1)+1),1,0);公式里的macd金叉低点对比用macd的dif值做的对比,