m1:=ma(close,5);m2:=ma(close,10);m3:=ma(close,20);m4:=ma(close,30);dif:=ema(close,12)-ema(close,26);dea:=ema(dif,9);xg:m1>m2>m3>m4 and high>m1 and dif>dea and ma(v,5)>ma(v,10);公式大概如...
ma3:=ma(close,3);ma4:=ma(close,4);ma13:=ma(close,13);ma21:=ma(close,21);cross(ma3,ma4) and cross(ma13,ma21);你的要求中3日均线上穿4日均线同时还要满足13日均线上穿21日均线,写上上面这段就可以,但注意两个条件是同一天发生,如果允许两个条件前后天上穿,就不能这样写