3Commas

Step 1

First, you need to register for 3Commas, you can use the free plan if you only need one bot running.

Step 2

Next, log in and click on the Dashboard.

Step 3

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.

Step 4

Next, click on the profile picture in the top right corner of the page and choose the API tab.

Step 5

Click the "Create New Key" button.

Step 6

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.

Step 7

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.

Step 8

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.

Step 9

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.

Step 10

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:

{{strategy.order.comment}}

Click "Create" button, and after a few seconds, you should see the alert created.

Congratulations! You now have a running script!

Last updated