> ## 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.

# How UT Bot Pro Works

> How UT Bot Pro's engines fit together: stop engine, adaptive multiplier, entry engine, higher-timeframe confirmation, exit engine, backtesting, and the dashboard.

UT Bot Pro is an advanced version of the original UT Bot. The original compares price with an ATR-based trailing stop to identify trend changes. UT Bot Pro keeps that core, and splits the logic into separate, configurable engines.

```mermaid theme={null}
flowchart LR
  A[Stop Engine<br/>volatility model + multiplier] --> B[UT trend state]
  M[Adaptive Multiplier<br/>optional] --> A
  B --> C[Entry Engine<br/>how entries trigger]
  H[HTF Confirmation<br/>optional] --> C
  C --> D[Exit Engine<br/>how trades close]
```

## Stop Engine

The trailing stop is the foundation of UT Bot. UT Bot Pro lets you choose how volatility is measured:

| Stop engine | How volatility is measured |
| - | - |
| **ATR** | Average True Range: the classic UT Bot approach. Default. |
| **Smoothed ATR** | ATR with additional smoothing, for a less reactive volatility estimate |
| **StdDev** | Standard deviation of price, instead of true range |
| **Historical Volatility** | Standard deviation of logarithmic returns, converted to a price-based measure |

The volatility measure is multiplied by the **Stop Multiplier** to set the trailing stop distance.

**Settings:** Stop Engine, Source, Stop Multiplier, Volatility Period, ATR Smoothing. See [Stop Engine settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#stop-engine).

## Adaptive Multiplier

Instead of one fixed multiplier for the whole chart, the multiplier can adapt to market conditions using an **Efficiency Ratio**.

The Efficiency Ratio compares directional price movement with the total distance price traveled over the period. Clean, directional movement gives a high reading. Noisy, back-and-forth movement gives a low reading. With adaptive mode on, UT Bot Pro adjusts the multiplier between a configurable minimum and maximum.

This doesn't predict future volatility or direction. It changes how the trailing stop responds to the structure of recent price movement.

**Settings:** Use Adaptive Multiplier (off by default), Efficiency Ratio Length, Min Mult, Max Mult. See [Adaptive Logic settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#adaptive-logic).

## Entry Engine

UT Bot Pro separates the UT trend state from the method used to trigger an entry.

| Entry mode | How an entry triggers |
| - | - |
| **Classic Close** | Price closes across the trailing stop: the traditional UT Bot approach. Default. |
| **Close + Buffer** | Price must move an extra, configurable distance beyond the flip level before the entry is confirmed. Reduces sensitivity to marginal crosses. |
| **X-Bar Confirmation** | The new trend state must hold for a number of consecutive confirmed closes after the flip |
| **Touch / Stop Order** | The trailing stop level is used as an order trigger, without waiting for the close |

These modes aren't ranked from worse to better. They're different trade-offs between responsiveness and confirmation.

**Settings:** Entry Mode, Buffer Type, Buffer, Confirmation Bars. See [Entry Engine settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#entry-engine).

## Higher-Timeframe Confirmation

An optional filter calculates the UT Bot state independently on a higher timeframe. When enabled:

* Long entries require a bullish higher-timeframe state.
* Short entries require a bearish higher-timeframe state.

The HTF state is calculated directly on the higher timeframe with the same stop methodology. It isn't a resampled copy of the lower-timeframe signal. Optional background shading shows the current HTF regime on the chart.

**Settings:** Use HTF Confirmation (off by default), Higher Timeframe, Show HTF Background. See [HTF Filter settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#htf-filter).

## Exit Engine

Exits are configured separately from entries, so you can research them independently.

| Exit mode | How a trade closes |
| - | - |
| **Opposite Signal** | Holds the position until an opposing UT signal. Default. |
| **TSL Stop** | Uses the active UT trailing stop level as the position's stop |
| **TSL Stop + R:R Target** | Trailing stop plus a profit target set as a multiple of the initial trade risk |

For example, you can compare a classic UT reversal strategy with one that exits at the trailing stop, or one that also takes profit at a fixed reward.

**Settings:** Exit Mode, Risk / Reward. See [Exit Engine settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#exit-engine).

## Strategy and Backtesting

UT Bot Pro is a TradingView strategy, so every configuration can be evaluated on historical data in the **Strategy Tester**. A configurable date range lets you test specific market periods instead of the whole chart history.

> [!WARNING]
>
> Backtests are research tools, not predictions. Results vary significantly with symbol, timeframe, market regime, execution assumptions, fees, slippage, and parameter choice. Set realistic commission and slippage under **Settings → Properties**.

**Settings:** Use Backtest Date Range, Start Date, End Date. See [Backtesting Range settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#backtesting-range).

## Display and Dashboard

Each visual element can be turned on or off independently of the strategy logic:

* Buy/sell markers
* Trend-based bar coloring
* Trailing stop line
* HTF background
* Status dashboard

The **dashboard** is a compact table showing the current UT state and configuration: current trend, trailing stop value, stop engine, multiplier, entry mode, and higher-timeframe state.

![UT Bot Pro dashboard: Trend Bullish, TSL 63202.08, Engine Smoothed ATR, Adaptive Mult 1.98, Entry Classic Close, HTF 240 Bearish](https://mintcdn.com/quan-tribe/1tgRlrcRmWXcn4Kx/images/ut-bot-suite/pro-dashboard.png?fit=max\&auto=format\&n=1tgRlrcRmWXcn4Kx\&q=85\&s=6c4b6562695c90acb5bc535c19e3005d)

Dashboard with Smoothed ATR, the adaptive multiplier, and the 4-hour HTF filter on

With **Use Adaptive Multiplier** on, the **Multiplier** row becomes **Adaptive Mult** and shows the current value. With the HTF filter on, the **HTF** row shows the higher timeframe and its trend; otherwise it shows `OFF`.

**Settings:** See [Display settings](https://docs.quantnomad.com/premium-indicators/ut-bot-pro/settings.md#display).


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