ma1:=ma(close,4);ma2:=ma(close,13);ma3:=ma(close,165);a1:=open<ma1 or open<ma2 or open<ma3;a2:=c>max(ma1,max(ma2,ma3));a3:=v/ma(v,30)>1.2;a4:=c/ref(c,1)>1.049;出水芙蓉1:(a1 and a2 and a3 and a4);ma11:=ma(close,16);ma12:=ma(close,26);ma13:=ma(close,165);a11:=open<ma11 or open<ma12 or open<ma13;a12:=c>max(ma11,max(ma12,ma13));a13:=v/ma(v,30)>1.2;a14:=c/ref(c,1)>1.049;出水芙蓉2:(a11 and a12 and a13 and a14);ma31:=ma(close,4);ma32:=ma(close,26);ma33:=ma(close,165);a31:=open<ma31 or open<ma32 or open<ma33;a32:=c>max(ma31,max(ma32,ma33));a33:=v/ma(v,30)>1.2;a34:=c/ref(c,1)>1.049;出水芙蓉3:(a31 and a32 and a33 and a34); 20210311
dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);macd:=(dif-dea)*2;xg:ref(dif,2)>ref(dif,1)and dif>ref(dif,1) and dif>dea and dif-dea<0.02;测试通过,希望能够帮助你!
f30a:=max(ma(c,10),ma(c,20));f30:=c>f30a;f60a:=max(ma(c,20),ma(c,28));f60:=c>f60a;fra:=max(ma(c,60),ma(c,120));fr:=c>fra;xg:cross(f30 and f60 and fr,0.5);