> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quantnomad.com/llms.txt
> Use this file to discover all available pages before exploring further.

# UT Bot Pro Alerts and Automation

> Configure TradingView alerts for UT Bot Pro, write custom order fill messages, and send them to bots and external services with webhooks.

UT Bot Pro sends two kinds of alert: its own **alert() function calls**, and, because it is a strategy, **order fill** alerts.

| Alert source | Fires on | Message | Best for |
| - | - | - | - |
| **alert() function calls** | **Entries only**: each new long or short entry | `UT Bot Buy` or `UT Bot Sell` | Entry notifications |
| **Order fills** | Every strategy order: entries **and** exits | Your own message, with strategy placeholders | Exit alerts, and webhooks that need a custom format |

> [!NOTE]
>
> UT Bot Pro's own alert() messages cover **entries only**. To be alerted when a position is closed by the [Exit Engine](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/how-it-works.md#exit-engine), use an **Order fills** alert.

The alert() messages are plain text:

| Event | Message |
| - | - |
| Long entry | `UT Bot Buy` |
| Short entry | `UT Bot Sell` |

They fire on the same final signals as the Buy/Sell labels on the chart, after the [entry mode](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/signals.md#filtering-signals-with-entry-modes) and [HTF filter](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/signals.md#higher-timeframe-filter) are applied.

> [!TIP]
>
> The message text doesn't include the symbol or timeframe. TradingView's notification shows them, but a webhook receives only the message. If your bot needs the symbol, price, or exits, use an **Order fills** alert with the [custom JSON message](#custom-messages-with-order-fills) below.

## Create a UT Bot Pro alert

**1. Set up the chart**

Open the symbol and timeframe to monitor, with UT Bot Pro configured as you want.

**2. Open Create Alert**

Click the **Alert** button or press <kbd>Alt</kbd> + <kbd>A</kbd> (<kbd>Option</kbd> + <kbd>A</kbd> on macOS).

**3. Choose the condition**

In **Condition**, select **UT Bot Pro**, then **alert() function calls only** for the script's own messages, or **Order fills only** for a custom message.

**4. Notifications**

Choose notifications (app, pop-up, email, webhook) and click **Create**.

![TradingView Create alert dialog on BTCUSDT with condition UT Bot PRO and alert() function calls only, interval same as chart](https://mintcdn.com/quan-tribe/1tgRlrcRmWXcn4Kx/images/ut-bot-suite/pro-create-alert.png?fit=max\&auto=format\&n=1tgRlrcRmWXcn4Kx\&q=85\&s=16b4cc8b9bf83ad0cb3509650e901db9)

Create Alert: Condition set to UT Bot Pro and alert() function calls only

> [!WARNING]
>
> Choosing **Order fills and alert() function calls** sends both kinds of alert, which can mean duplicate notifications for the same signal.

## Custom messages with order fills

Order fill alerts let you write your own message using [strategy placeholders](https://www.tradingview.com/support/solutions/43000531021-how-to-use-a-variable-value-in-alert/):

```json theme={null}
{
  "indicator": "UT Bot Pro",
  "action": "{{strategy.order.action}}",
  "order_id": "{{strategy.order.id}}",
  "symbol": "{{exchange}}:{{ticker}}",
  "interval": "{{interval}}",
  "price": "{{strategy.order.price}}",
  "position": "{{strategy.market_position}}",
  "fired_at": "{{timenow}}"
}
```

Order fill alerts follow the strategy's actual orders, so they reflect your **Entry Mode**, **Exit Mode**, and **HTF filter**. They also respect the **backtest date range**: with the range on, no orders, and so no order fill alerts, happen after the **End Date** (2030-01-01 by default).

## Automation with webhooks

> [!NOTE]
>
> **General TradingView information.** This section describes standard TradingView behavior, not a QuantNomad-specific feature. TradingView updates its interface regularly, so menu names and positions may differ slightly from what you see. When in doubt, check the [TradingView Help Center](https://www.tradingview.com/support/).

**1. Get a webhook URL**

From the receiving service, such as a bot platform or your own server.

**2. Pick the alert source**

For a custom format, use UT Bot Pro **order fill** alerts with a JSON message like the one above.

**3. Attach the webhook**

In the alert's **Notifications** tab, enable **Webhook URL** and paste the URL.

**4. Test before going live**

Send alerts to a test endpoint or paper-trading account first, and check each message is received and parsed correctly.

> [!WARNING]
>
> Automation amplifies mistakes. A wrong message format, duplicate alerts, or an intrabar entry mode can all result in unintended orders. Test thoroughly and monitor your automation.

See [Webhook Alerts & Automation](https://docs.quantnomad.com/guides/webhooks.md) for requirements and security practices.

## Related pages

* [Signals & Filters](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/signals.md)
* [Screener alerts](https://docs.quantnomad.com/premium-indicators/ut-bot-screener/alerts.md)
* [Creating TradingView Alerts](https://docs.quantnomad.com/guides/tradingview-alerts.md)
* [UT Bot Suite Troubleshooting](https://docs.quantnomad.com/premium-indicators/ut-bot-suite/troubleshooting.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.