ma34:=ma(close,34);ma55:=ma(close,55);均线金叉:=cross(ma34,ma55);v1:=count(均线金叉,30)>=1 and barslast(均线金叉) > 10;{30日内均线金叉, 金叉距离今天时间大于10天}v2:=close>ma55 and close < ma55*1.1; {收盘价在55均线上到10%之间}目标:v1 and v2; 20210311
a1:=ma(c,5);a2:=ma(c,10);a3:=ma(c,20);a4:=ma(c,30);t1:=cross(a1,a2);t2:=cross(a3,a4);xg:t1 and t2;参考资料:http://tieba.baidu.com/f?kw=%b9%c9%c6%b1%b9%ab%ca%bd%d7%a8%bc%d2