I was trying many methods to autostart my VPS. Autostart menu and autologon just didn't work for me. So I had to autostart my terminals under System account, which autologins each time Windows restarted. There is a lightweight utility anyserv.exe, I used it for a long time successfully, untill one day my VPS host's antivirus blocked it as a malware. Though it may be just a false positive, according to VirusTotal. So anyone who is not afraid can try this small utility (see attached files). There's another utility srvinstw, but it didn't work for me - terminals were not starting. So, being unable to use these utils, I've found even more handy utility: AnvirTaskMAnager.
So, now I'm going to give an idea of the easiest way to autostart MetaTrader on a VPS prior to user logon, so our Expert Advisors continue to work after VPS reboots.
Go to https://www.mql5.com/go?link=http://www.startup-manager-windows.com// or https://www.mql5.com/go?link=https://www.anvir.net// (for russian version) and download AnVir Startup Manager (AnvirTaskManager) ~ 4.5 Mb.
You can open that url directly from your VPS browser. After installing this software on your VPS, open AnVir Startup Manager Settings menu, and click "Run as service" menu item there. Then browse for any executables you need to autostart everytime VPS is rebooted. Tick the checkboxes, press Ok twice and you are done.
Summarizing all the above, now we can have a good sleep at night, not worrying about VPS reboots. This is a very vital nessesity to a trader - even more than a money management - to have a chance to relax... :)
So, now I'm going to give an idea of the easiest way to autostart
MetaTrader on a VPS prior to user logon, so our Expert Advisors
continue to work after VPS reboots
So, now I'm going to give an idea of the easiest way to autostart MetaTrader on a VPS prior to user logon, so our Expert Advisors continue to work after VPS reboots
It's ok, but could you describe how can i do that in more detail? VPS is Win XP. Please share your knowledge. Thanks in advance.
Autostart menu and autologon just didn't work for me.
Googled this topic last week, as this is something I also need. Found the following:
Another one I found:
In this guide, the author recommends configuring the VPS to auto log in, by modifying the windows registry. Although I couldn't find the "reg_update.reg" download, that is mentioned in the document.
Configuring MT4 to run on start up is also covered, but again, I couldn't find the file "start.cmd" that is mentioned in the document. Apparently this delays the MT4 run by 30 seconds after start up.
I'm using Win 2008 R2 64bit OS on my vps, and MT4 works fine. From what I've seen, I don't need to log in using an administrator pswd on reboot. It goes straight to desktop. I restarted it several times, with MT4 set to run on start up, and it works fine.
If anyone finds the files in the second document, or similar, please let me know, I'd like to see them.