Protrader console version for working on VPS
Hey there, Protraders!
For stable and reliable algo-trading traders use dedicated server of VPS. But it is unpractical or inconveniently to use full fledged version of trading terminal on restricted VPS system (usually user pays for VPS depending on resources available on it). To solve this issue we have a minimized version of terminal without GUI – console version.
The way console version works if different with one for usual GUI version. We have to create a dedicated package for every EA (expert advisor, trading robot) we are going to run on VPS. To create a console version open TSL (Trading system list), add EA, set trading instrument, time-frame, parameters for it and then press “Create console version” button:
To save output printed to console by EA we can change run.bat in the next way:
CSConsole.exe /console connection.set trader.dll trader.set >> console.log
so on every run all output will be redirected to log-file console.log (and will be appended it such file already exists).
Now, before to run console version on VPS we need to copy it ti the server. Whole trader directory should be copied. You can use any method you like. On screenshot you can see a copying by Far Manager with scp plug-in.
Now we can run console version on our server:
As we can see on screenshot console version uses 85 Mb It is remarkable less then usual GUI version, which can use 500 Mb and even up to 1 Gb. With time pass we will optimize console version and it is quite possible that console version will use even less memory.
After a some time of console version working, trading, we can take a look to saved console.log log-file and analyze its results and maybe make some changes. In case of changes needed in code of EA or parameters, you have to recreate console version and again copy it to the server. You can see console.log on screenshot:
This feature is very new in Protrader and is still evolving and being changed. If you have an interest to algo trading on VPS then try to use console version and share with us your thoughts, comments and wishes in the commends section of this article.