TradingView to 3Commas: webhook URL and signal setup

3Commas bots can start a deal when TradingView sends them a webhook. The catch: a TradingView alert fires on one condition at a time, so your bot reacts to every single signal. Alarumist sits between TradingView and 3Commas. It collects several TradingView alerts and sends one signal to your 3Commas bot only when all the alerts you chose have fired within your time window.

How the 3Commas webhook works with Alarumist

Normally you paste the 3Commas webhook URL and the 3Commas JSON message straight into a TradingView alert. With Alarumist you split this in two:

So you never need to put the 3Commas webhook URL into TradingView yourself.

What you need

Step-by-step setup

  1. 1. In the left menu press “Create New Alert”.

    Create New Alert
  2. 2. Add Symbol and Alert Description.
    Select alert type 3Commas. You will see a textbox to paste the message from 3Commas.
    Choose the timeframe and the number of alerts you want to aggregate from TradingView.
    Add Message for each alert (not mandatory).

    New Alert 3Commas
  3. 3. Now, open TradingView, create a new alert, and copy/paste the "Webhook URL" and the "Message" for each alert.
    Use the Copy icon to copy the content (the prefix for each message is mandatory).

    Alert 1:

    TradingView alert settingsTradingView alert notifications

    Repeat the process with other alerts.

  4. 4. Login to 3Commas. Go to the DCA Bot section, choose a bot and press the message signal.
    The message is copied to the clipboard.

    3Commas Message
  5. 5. Return to Alarumist and paste the message in the 3Commas textbox. Then press "Save Alert".

    New Alert 3Commas
  6. 6. You're done. Enjoy.

Example: RSI AND EMA cross → one 3Commas deal

Say you only want your bot to open a deal on BTCUSDT when RSI drops below 30 and price crosses above the 200 EMA within the same 4 hours.

  1. In Alarumist, create an alert for BTCUSDT with type 3Commas, 2 alerts to aggregate, and a 4-hour time range. Paste your 3Commas bot message.
  2. In TradingView, create two alerts (one for RSI, one for the EMA cross). Both use the Alarumist webhook URL, each with its own Alarumist message.
  3. When only the RSI alert fires, nothing is sent. When both fire inside 4 hours, Alarumist sends one signal and your bot starts a deal.

Troubleshooting

FAQ

Where do I find the 3Commas webhook URL?

You don't need it in TradingView when you use Alarumist. You only copy the bot's message from 3Commas and paste it into Alarumist. In TradingView you use the Alarumist webhook URL.

Can I combine more than two TradingView alerts?

Yes. Premium combines up to 12 alerts.

Does it work with other bots?

Yes. The same setup works for Alertatron, Telegram, email, or any service that accepts a webhook. See the Custom URL guide and the Telegram guide.