
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Does your VPS host offer setting this up? Im happy to say i didnt have to do anything with the registry. This company (if you ask them for it) will configure the autostart for you. after agreeing to their disclaimer they setup Metatrader to autostart on a reboot of the server. XXXXXXXXXX
Perhaps you missed this when you registered . . .
Look here: https://www.mql5.com/en/users/register
It says . . . "4. Posting of advertising messages is forbidden. "
i also would like to know how to allow windows to login automatically on a VPS : i put the MT4 executables i want in the startup folder but i need to login before all MT4 are started, so it's not enough
is setting the registry according to this method enough ? do i risk not being able to login to my VPS anymore ?
https://wishmesh.com/2010/11/logon-user-into-windows-server-2008-r2-automatically/
what about security ?
can a pro help us ?
thanks
Jeff
Introduction
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.
What you need
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.
Conclusion
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... :)
anyserv.zip (49.2 Kb)
srvinstw.zip (28.4 Kb)
Enter shell: startup from the Run menu at the bottom left of the screen. When you restart the windows, which part of the program will run the direction. Find and add the Metatrader program here. After that, when Windows restarts, this Metatreader or the desired Programs will restart together.
Enter shell: startup from the Run menu at the bottom left of the screen. When you restart the windows, which part of the program will run the direction. Find and add the Metatrader program here. After that, when Windows restarts, this Metatreader or the desired Programs will restart together.
no it won't; it will start windows only when you log in your VPS the first time after a restart. And once you logged in, the programs will automatically start, yes. But until you log in, programs won't load up , that's all the problem here.
ok I tried the registry trick and it doesn't work.
My VPS starts the programs only when i logon
here is the script i used
i Know CNS has now a separate program to startup the VPS if it crashes but i could not find any software identical on the web
EDIT : oh i just looked at the registry and it wasn't modified by the script. So i'll try to add the values manually
Jeff
ok it worked ! i restarted the VPS and login and all my MT4s were started!
for those worrying about security, the only problem is if you let your VPS window open, then someone can go into the registry to get your password (on the same PC you're on).
so close your VPS window each time !
i used this method:
https://wishmesh.com/2010/11/logon-user-into-windows-server-2008-r2-automatically/
just create a .reg file with your id and password, then double click the .reg file
also to start your MT4s automatically, you gotta put links to the terminal.EXE files in the startup folder!
cheers
Jeffnetplwiz
after reboot, system will automatic log in the specific account.