Skip to main content
All CollectionsBots (Signal/DCA/Grid)Signal bot
Signal bot: Strategies alert type
Signal bot: Strategies alert type
Updated this week

Before we start...

  • If you are already using a Signal Bot and/or have feedback or ideas for additional features not mentioned in this guide (as being under development), please add them using our Signal Bot Feedback link.

  • If you have any feedback regarding this article, please fill out this Feedback form - this will help us update the article faster to meet your expectations and answer your questions.


Hooray! Here is a big release many of you were waiting for! Now you can apply your TradingView strategies and trade them with Signal bot!

A new alert type, “TradingView Strategy” has been added to Signal Bot.

Strategy is the scripts written in the TradingView Pine Script programming language, designed to simulate trading and conduct backtesting to verify its effectiveness on TradingView. As a result of the launched strategy, entries and exits are displayed on the chart using arrow markers (on TradingView).

The strategies also support an alert function that sends a webhook when the position changes. As a result, you can implement your strategy in the real market. However, it is important to remember that notifications from TradingView will come when orders are executed, which is not the same as placing an order.
The Signal bot JSON data located in the TradingView alert contains variables that TradingView Strategy will replace with the necessary ones when creating an order.

How to create a Signal bot with TradingView strategies?

Here is a short video of how to create a Signal bot with TV strategies:

1. Go to the Signal bot page

It's on the left-side menu:

2. Here you will see your active bots (if any) and the window to set up your Signal bot:

3. Choose the TradingView Strategy type

Pay attention!

The bot filters signals based on its settings. It's impossible to enable only Long settings in your Signal Bot and then send a Short signal (and vice versa) - the bot will ignore it.

4. Copy the Webhook address

Copy the webhook:

5. Open the TradingView page in another tab

Click on the Go to TradingView button or open it by yourself.
Prepare the pair you want to trade with and don't close the tab:

6. Choose the strategy

You will need a strategy now, whether you created your own or chose one from the list.

Choose an exchange and a pair you want to trade with and then pick a strategy.

Important notes!

  • It's very important to choose the correct pair and exchange in TradingView, otherwise the signals will not be valid!

  • If you want to create a Signal bot on the Demo account, you need to choose the pair on Binance Spot in TradingView because the Demo account simulates trading on the Binance Spot account.

7. The size of the orders is set in the strategy's settings

8. Create an alert

Click on the Alert button:

9. Choose the strategy in the condition field

10. Open the Notifications tab and paste the webhook

11. Back on 3Commas, click on I have set webhook URL

Confirm that you have set the webhook URL in TradingView:

12. Set up general settings and click Next

For Futures and Spot exchanges, the settings are different.

Futures

a. Choose exchange (available on Demo account and all exchanges except Binance TR and gate.io USDT-M).

b. Select the pairs (up to 200, you can change them later while editing the bot);

c. Choose the leverage type and its value (x3 by default) - if the bot is multi-pair, the maximum leverage can only be the lowest maximum among the pairs. For example, if you choose BTC and BNB contracts on Binance Futures, you will be able to set the maximum leverage at x50 as per BNB contracts, not x125 as it is for BTC contracts.

d. Set the Max. initial margin - the amount of funds the bot can use (10 USDT by default; leverage is not applied in this field).

e. Enter the bot's name. A unique and practical name is very useful if you have many bots.

Spot

a. Choose exchange (available on Demo account and all exchanges except Binance TR and gate.io USDT-M).

b. Direction - you need to choose how your bot will trade - Long, Short or Reversal - the bot will be able to receive signals to open Long and Short trades simultaneously.

c. Select the pairs (up to 200, you can change them later while editing the bot).

d. Max. investment - maximum amount of money that the bot can use to open trades (10 USDT by default).

e. Enter the bot's name. A unique and practical name is very useful if you have many bots.

13. Copy the JSON-file

VERY IMPORTANT NOTE!

  • DO NOT share publicly the JSON message from your signal bot. If you accidentally did share, please delete this bot and create a new one - in this case you will be safe.

  • DO NOT add additional parameters or code into the JSON file unless it's described in this article. Otherwise, you may encounter errors while processing the signals from your strategy.

14. Paste the JSON-file message in the TradingView alert

15. Make sure again you pasted the webhook on the Notifications tab and click Create

16. On 3Commas, click Create

17. The bot is created! Congratulations!

Head to this article to learn more about where to monitor your bots:

P.S.

If your alerts send the signal with variables instead of values (i.e. Close = {{close}}

instead of Close = 45.1), the strategy/indicator on TradingView is most likely written using PineScript v.3 or lower.

More detailed information you can find in this article:

Did this answer your question?