xyz mag with basic sma filtering