这样就可以:ma05:=ma(c,5);ma30:=ma(c,30);五日乖离率:=(c-ma05)/ma05*100;三拾日乖离率:=(c-ma30)/ma30*100;买入:count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 a...
k:=max((h+l)/2,(c+o)/2);bbi:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;b:k>=bbi or bbi>=ref(bbi,1);或----k:=max((h+l)/2,(c+o)/2);bbi:=(ma(c,3)+ma(c,6)+ma(c,12)+ma(c,24))/4;b:cross(k,bbi) or bbi>=r...