Skip to content
✦ SOURCE CODE 3 editable source-code editions · code EARLYBIRDSCRIPT saves $200 ($599 → $399) · through Dec 1, 2026 Explore editions ↗ ◆ SMART TRADER Premium scripts + 90+ optimization releases + private Discord · $29/month Join membership ↗ ⌘ PRIVATE CODING Develop a custom TradingView strategy with TradeSmart How it works ↗ ◈ OPTIMIZATION Research your own asset, timeframe and trading rules See the process ↗

TRADESMART DOCUMENTATION

V1 Automation — 3Commas

Connect V1 strategy order messages through the classic 3Commas workflow.

On this page 11 sections

V1 SCRIPT WORKFLOW: These steps describe the earlier TradeSmart V1 alert format and third-party connection process, not Premium V2 automation. Provider screens and requirements may have changed. Check the current provider instructions and paper-test entry, exit, position size and emergency close before any live use. For a V2 script, use the V2 automation guides.

3Commas

Step 1

First, you need to register for 3Commas, check the currently available plans and bot limits before creating your connection.

Step 2

Next, log in and click on the Dashboard.

ByBitDashboardREDLINED.png

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.

BybitMainTopRightRED.png

BybitRightPanelAPIRED.png

Step 5

Click the “Create New Key” button.

CreateNewAPIKEYRED.png

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. Choose only the API permissions required by your intended bot. Do not enable withdrawal permissions and verify the current exchange/provider requirements before connecting any funds.

BybitCreateNewKey.png

Then click the “Submit” button, do the 2-factor authentication, and you can get the API key and secret.

ByBitAPIKEYSRED.png

Step 7

Now, you can go back to 3Commas, click on “My Portfolio”.

ClickMyPortfolio.png

Click “Connect Account”

ClickConnectAccount.png

Click “Exchanges”

selectExchanges.png

Choose your preferred exchange, in this case, we will choose ByBit.

clickExchangeByBit.png

You can then copy the API key and secret from step 6.

fillInApiKEyAndSecret.png

Then select the exchange types you want to use.

exchnagetypes.png

Step 8

Click on “DCA Bot”

ClickdcaBot.png

Click “Create DCA Bot” and choose “Advanced”.

clickCreateDCABot.png

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

Tip

The other settings should be turned off, as they are managed by the Tradingview Script. Copy those from the images below.

Settings1.png

settings2 (1).png

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.

copyBybitKey.png

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.

enter3CommasShits.png

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.

Tip

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.

clickAlertsButton.png

Click on “Alerts Plus” button.

clickAlertPlusButton.png

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

Tip

With Tradingview free version you can’t allow Webhook URL-s

For the message part add the following line:

{{strategy.order.comment}}

switchToTheConditions.png

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

Final.png

Congratulations! You now have a running script!

Guides explain configuration and research workflows. For automated execution, test every entry, exit and quantity on a demo account before trading live. Historical returns do not guarantee future performance.