How to install Profit Trailer
Profit Trailer is a great program that you can setup to do your trading for you, or assist with trading. So you can do the buys, and it can do the sells, or other way around.
It’s a very powerful program. It will do what you ask it to do. The trick is getting it to do that. I find people fail with bots because of the strategy they are trying to use and how they configure or translate the strategy into the code for the bot to use. There are many people who have success with bots, and Profit Trailer.
Profit Trailer can be installed a few ways. On your desktop computer, one a Windows VPS, Raspberry Pi, or my preferred method, a Linux VPS. The reason why I suggest a Linux VPS..
- Faster than Windows VPS
- Needs less resources than Windows VPS
- Much cheaper than Windows VPS
- Can access via web browser on Linux
- Always on
- Linux is much more stable and reliable than Windows
The only con for users to using Linux, as its command base. But I will show you the commands to enter to install and use ProfitTrailer on Linux.You need a Linux VPS or a Raspberry Pi.
If you don’t have a Linux VPS, you can order one from here. This is who I use for my VPS. They have been very reliable for me since 2019. Once you are logged into your VPS/Pi you can run the following commands. You can type then out or copying and past them.
Installing the prerequisite software first
The first step is prepping the server for the needed software to run Profit Trailer.
You will need to log into your server. You can user Putty, or Bitvise. I suggest Bitvise.
sudo apt update && sudo apt upgrade -y sudo apt-get install software-properties-common zip -y sudo apt update sudo apt-get install apt-transport-https ca-certificates -y sudo wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add - sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/ sudo apt update sudo apt install adoptopenjdk-8-hotspot -y sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash - sudo apt-get install nodejs -y sudo npm install pm2@latest -g
Installing Profit Trailer on Linux/Raspberry Pi
Once the perquisite software is installed, you can now download Profit Trailer.
cd /var/opt sudo wget https://download.profittrailer.com/ProfitTrailer.zip sudo unzip ProfitTrailer.zip sudo mv ProfitTrailer-* /var/opt/ProfitTrailer
Now that Profit Trailer has been downloaded, you just need to do the last few steps before getting it running.
cd /var/opt sudo cp -R ProfitTrailer /var/opt/bot1 cd bot1 sudo sed -i 's/profit-trailer/bot1/g' pm2-ProfitTrailer.json sudo chmod +x ProfitTrailer.jar sudo pm2 start pm2-ProfitTrailer.json sudo pm2 save sudo pm2 startup
Once this is done, ProfitTrailer will load up. Give it about a minute. Then go to your website browser and enter http://ip-address:8081 press enter
You will get prompted to enter in ProfitTrailer License and API keys for the exchange you will be trading on. You will then need to pick the config file to use. Just select the Spot V1 file for now. You now have Profit Trailer installed and ready to go.
How to install a second Profit Trailer bot
cd /var/opt sudo cp -R ProfitTrailer /var/opt/bot2 cd bot2 sudo sed -i 's/profit-trailer/bot2/g' pm2-ProfitTrailer.json sudo chmod +x ProfitTrailer.jar sudo pm2 start pm2-ProfitTrailer.json sudo pm2 save sudo pm2 startup
How to install a third Profit Trailer bot
cd /var/opt sudo cp -R ProfitTrailer /var/opt/bot3 cd bot3 sudo sed -i 's/profit-trailer/bot3/g' pm2-ProfitTrailer.json sudo chmod +x ProfitTrailer.jar sudo pm2 start pm2-ProfitTrailer.json sudo pm2 save sudo pm2 startup
How to install a fourth Profit Trailer bot
cd /var/opt sudo cp -R ProfitTrailer /var/opt/bot4 cd bot4 sudo sed -i 's/profit-trailer/bot4/g' pm2-ProfitTrailer.json sudo chmod +x ProfitTrailer.jar sudo pm2 start pm2-ProfitTrailer.json sudo pm2 save sudo pm2 startup
When you install a second bot, you will access it using ttp://ip-address:8082. The 3rd bot will be on ttp://ip-address:8083, and forth bot on ttp://ip-address:8084 etc.
If you need stop and start your bots you can use the pm2 comands. You can replace bot1 with bot2, bot3 bot4 etc
sudo pm2 list sudo pm2 stop bot1 sudo pm2 start bot1 sudo pm2 stop all sudo pm2 start all sudo pm2 log bot1
How to update your Profit Trailer bot
When an update comes out, It’s good to update the software for the latest features or security enhancements. PT comes with an update script, but I have not gotten it work. The last time I tried was a long time ago. So I made my own. If you followed my steps above to install it, then these steps below will work for you.
Before you update, you need to download the latest update first. You can use the command below first.
cd /var/opt sudo rm -r ProfitTrailer sudo rm ProfitTrailer.old sudo mv ProfitTrailer.zip ProfitTrailer.old sudo wget https://download.profittrailer.com/ProfitTrailer.zip sudo unzip ProfitTrailer.zip sudo mv ProfitTrailer-* /var/opt/ProfitTrailer
cd /var/opt sudo pm2 stop bot1 sudo rm /var/opt/bot1/ProfitTrailer.old sudo mv /var/opt/bot1/ProfitTrailer.jar /var/opt/bot1/ProfitTrailer.old sudo cp /var/opt/ProfitTrailer/ProfitTrailer.jar /var/opt/bot1 sudo chmod +x /var/opt/bot1/ProfitTrailer.jar sudo pm2 start bot1
cd /var/opt sudo pm2 stop bot2 sudo rm /var/opt/bot2/ProfitTrailer.old sudo mv /var/opt/bot2/ProfitTrailer.jar /var/opt/bot2/ProfitTrailer.old sudo cp /var/opt/ProfitTrailer/ProfitTrailer.jar /var/opt/bot2 sudo chmod +x /var/opt/bot2/ProfitTrailer.jar sudo pm2 start bot2
cd /var/opt sudo pm2 stop bot3 sudo rm /var/opt/bot3/ProfitTrailer.old sudo mv /var/opt/bot3/ProfitTrailer.jar /var/opt/bot3/ProfitTrailer.old sudo cp /var/opt/ProfitTrailer/ProfitTrailer.jar /var/opt/bot3 sudo chmod +x /var/opt/bot3/ProfitTrailer.jar sudo pm2 start bot3
cd /var/opt sudo pm2 stop bot4 sudo rm /var/opt/bot4/ProfitTrailer.old sudo mv /var/opt/bot4/ProfitTrailer.jar /var/opt/bot4/ProfitTrailer.old sudo cp /var/opt/ProfitTrailer/ProfitTrailer.jar /var/opt/bot4 sudo chmod +x /var/opt/bot4/ProfitTrailer.jar sudo pm2 start bot4
How to automate, your install, setup and update your Profit Trailer
If all that above seems too much, but you still want to use Linux or your Raspberry Pi, here is a simple one line command you can run to do it all to get your first bot up and running. The script is the same commands above.
cd /var/opt sudo wget https://andreas.ca/scripts/ptautoinstall && sudo sh ptautoinstall
To install 2nd bot run command
cd /var/opt sudo sh ptbotinstall2
To install 3rd bot run command
cd /var/opt sudo sh ptbotinstall3
To install 4th bot run command
cd /var/opt sudo sh ptbotinstall4
To update your bots run command
cd /var/opt sudo sh ptbotupdate1
To update your 2nd bot run command
cd /var/opt sudo sh ptbotupdate2
To update your 3rd bot run command
cd /var/opt sudo sh ptbotupdate3
To update your 4th bot run command
cd /var/opt sudo sh ptbotupdate4