3Commas
Last updated
First, you need to register for 3Commas, you can use the free plan if you only need one bot running.
Next, log in and click on the Dashboard.
Open ByBit on a new page and log in. For this tutorial, we are going to use ByBit, but you can check the supported exchanges here.
Next, click on the profile picture in the top right corner of the page and choose the API tab.
Click the "Create New Key" button.
You need to set up 2-factor authentication for the following step, and then copy the settings you see in the image below. These three permissions must be allowed to get all the functionalities that 3Commas has.
Then click the "Submit" button, do the 2-factor authentication, and you can get the API key and secret.
Now, you can go back to 3Commas, click on "My Portfolio".
Click "Connect Account"
Click "Exchanges"
Choose your preferred exchange, in this case, we will choose ByBit.
You can then copy the API key and secret from step 6.
Then select the exchange types you want to use.
Click on "DCA Bot"
Click "Create DCA Bot" and choose "Advanced".
Set the following settings:
Name: give a name to the bot
Exchange: add the preferred exchange that was set in step 7
Pairs: choose the preferred trading pair
Strategy: Use Long or Short (3Commas can't do long and short at the same time), the other setting are good as default
Deal Start Condition: Trading View Custom signal
The other settings should be turned off, as they are managed by the Tradingview Script. Copy those from the images below.
Submit the settings, and you should see the following image. Find the "Message for deal start signal" and "Message to close order at Market price." You will need these to connect to Tradingview.
Open Tradingview in a new tab, set the trading pair and timeframe, and add one of our PREMIUM scripts to the chart. Open the script settings, then scroll down to the Automation Part.
If you go Long fill the Enter Long Alert with Message for deal start signal and Exit Long Alert with Message to close order at Market price.
If you go Short fill the Enter Short Alert with Message for deal start signal and Exit Short Alert with Message to close order at Market price.
Don't forget to set the strategy settings to Allow Long Entries or Allow Short Entries.
Click "OK" to finalize the settings.
Click on the "Alerts" tab in the top right corner.
Click on "Alerts Plus" button.
The conditions should be set to your chosen strategy (in this case, it is our Triple EMA strategy).
Set an expiration date for how long you want to use the strategy.
Allow Show Pop-up
Allow Webhook URL, to the textbox, insert the following URL:
https://app.3commas.io/trade_signal/trading_view
With Tradingview free version you can't allow Webhook URL-s
For the message part add the following line:
Click "Create" button, and after a few seconds, you should see the alert created.
Congratulations! You now have a running script!