A VPS is like a different computer running in New York - so if you set up your trading/EA on that VPS, then it should continue running when you close your own local computer down. 

 

That should apply for a NYCS vps and a MT5 meta quotes VPS