a1:=ma(c,5);a2:=ma(c,10);a3:=ma(c,20);b1:=abs(a1-a2)/a1*100;b2:=abs(a1-a3)/a1*100;b1<5 and b2<5 and a1>=a2 and a2>=a3;{b1<5及b2<5 表示均线的偏离小于5%,可以改为3} 20210311
ma1:=ma(close,m1);ma2:=ma(close,m2);ma3:=ma(close,m3);ma4:=ma(close,m4);a:=max(max(ma2,ma3),ma4); b:=min(min(ma2,ma3),ma4); 三线粘和:=100*(a-b)/b>0 and 100*(a-b)/b<=5;ma3上穿ma4:=cross(ma3,ma4);xg:三线粘...
按您的要求 两年也选不到一只票的 将最后一个条件略略放宽至20日线连续三天以上波动不超过一分钱 源码如下: m1:=ma(c,5);m2:=ma(c,10);m3:=ma(c,20);aa:=m1=m2;ab:=m3*0.994;ac:=between(m3,ref(m3,1)+0.01,ref(m3,1)-0.007);ad:=count(ac,3)=3;ae:=aa and ab and v&...