The VPS speed has probably not much effect on trading, but the speed of your Internet connection has, and of course your broker.
But for immediately closing a trade the strategy itself is most likely responsible. The Z strategies have no precautions against that - if the stop distance is tight, trades can indeed be immediately closed when the price moves fast in the wrong direction.