UT Bot is a popular trend-following indicator on TradingView that generates buy and sell signals using a volatility-based trailing stop. Its simplicity, adjustable sensitivity, and built-in alerts make it a useful tool for traders across different markets and timeframes.
By QuantNomad · Last updated December 5, 2026 · 14 min read
However, understanding how UT Bot works is essential if you want to use it effectively. Choosing the wrong settings, trading in unsuitable market conditions, or relying exclusively on its signals can lead to inconsistent results.
In this guide, we’ll explore the logic behind UT Bot, its settings, practical applications, limitations, and ways to build more sophisticated trading strategies around it. The examples use UT Bot v2, QuantNomad’s free and open-source version, which you can add to your chart in a few clicks.
Table of contents
- What Is the UT Bot Indicator?
- How Does UT Bot Work?
- How to Add UT Bot to TradingView
- UT Bot Settings Explained
- What Are the Best UT Bot Settings?
- How to Interpret UT Bot Buy and Sell Signals
- How to Reduce False UT Bot Signals
- Does UT Bot Repaint?
- How to Set Up UT Bot Alerts
- How to Backtest UT Bot
- UT Bot vs. Supertrend
- UT Bot Free vs. Pro
- Frequently Asked Questions
- Final Thoughts
- Related Articles
What Is the UT Bot Indicator?
UT Bot is a technical analysis indicator that uses the Average True Range (ATR) to calculate a dynamic trailing stop and identify potential changes in market direction.
Unlike indicators that use a fixed percentage or price distance, UT Bot adapts to changing market volatility.
Its main features include:
- Buy and sell signals when price crosses a trailing stop.
- Volatility-adjusted stop levels.
- Customizable signal sensitivity.
- Compatibility with different markets and timeframes.
- TradingView alerts for new signals.
UT Bot can be applied to cryptocurrencies, stocks, forex, futures, and other instruments available on TradingView.
It is primarily a trend-following tool rather than a predictive indicator. Its signals react to price movements instead of attempting to predict future prices.
UT Bot versions on TradingView
According to the description of QuantNomad’s UT Bot Alerts script, the UT Bot indicator was initially developed by Yo_adriiiiaan, and the idea of the original code belongs to HPotter. QuantNomad publishes two open-source versions:
- UT Bot v2: the current version, written in Pine Script v6. It is a strategy, so it shows signals on the chart and can also be backtested in the Strategy Tester. Signals are confirmed at bar close.
- UT Bot Alerts: the original Pine Script v4 indicator, with a Heikin Ashi option and alert conditions.
Both use the same trailing-stop logic. The rest of this guide uses UT Bot v2 and points out where the original UT Bot Alerts behaves differently.
How Does UT Bot Work?
The core of UT Bot is an ATR-based trailing stop that follows price movements.
Average True Range (ATR)
The Average True Range measures market volatility. Higher ATR values indicate larger price movements, while lower values indicate relatively quieter market conditions.
True Range is calculated as the maximum of:
- Current high minus current low.
- Absolute difference between the current high and previous close.
- Absolute difference between the current low and previous close.
UT Bot uses TradingView’s standard ta.atr() function, which applies Wilder’s smoothing (RMA) to the True Range over the ATR Period:
ATRt = (ATRt−1 × (n − 1) + TRt) / n, where n is the ATR Period.
ATR Multiplier
The trailing distance is calculated as:
Trailing Distance = ATR × Multiplier
For example, if the ATR is $100 and the Multiplier is 2, the trailing distance is $200.
A larger multiplier creates a wider trailing stop, making the indicator less sensitive to small price movements. A smaller multiplier creates a tighter trailing stop and generally produces more frequent signals.
Dynamic Trailing Stop
On every bar, UT Bot compares the price source (the close, by default) with the previous bar’s stop and applies one of four rules:
| Situation | New trailing stop |
|---|---|
| Price was above the stop and is still above it (uptrend continues) | The higher of the previous stop and price − distance. The stop can only move up. |
| Price was below the stop and is still below it (downtrend continues) | The lower of the previous stop and price + distance. The stop can only move down. |
| Price just crossed above the stop | Reset below price: price − distance |
| Price just crossed below the stop | Reset above price: price + distance |
In UT Bot v2’s Pine Script source, those rules are four lines:
atr = ta.atr(atr_len)
sl_value = mult * atr
tsl_price = 0.0
tsl_price := source > tsl_price[1] and source[1] > tsl_price[1] ? math.max(nz(tsl_price[1]), source - sl_value) :
source < tsl_price[1] and source[1] < tsl_price[1] ? math.min(nz(tsl_price[1]), source + sl_value) :
source > tsl_price[1] ? source - sl_value :
source + sl_value
This ratchet is what lets the stop follow an established move without simply resetting to a fixed distance on every candle.
Buy and Sell Conditions
A Buy signal appears when the source crosses above the trailing stop, and a Sell signal when it crosses below. In UT Bot v2, both also require the bar to be closed:
buy = ta.crossover(source, tsl_price) and barstate.isconfirmed
sell = ta.crossover(tsl_price, source) and barstate.isconfirmed

How to Add UT Bot to TradingView
Getting started with UT Bot is straightforward:
- Open a chart on TradingView.
- Click the Indicators button.
- Search for "UT Bot v2".
- Select UT Bot v2 — ATR Trailing Stop by QuantNomad (script page).
- Add it to your chart.
- Open its settings to customize its parameters.
Because UT Bot v2 is open source, you can also read its full code from the script page. Step-by-step instructions with screenshots are in the UT Bot v2 installation guide.
You can also explore the QuantNomad Pro Indicators for more advanced trading tools.
UT Bot Settings Explained
UT Bot v2 has three calculation settings, plus a backtest date range and display options.

Multiplier
The Multiplier sets the trailing distance as a multiple of ATR and determines how sensitive the indicator is to price movements. Its default is 1. In the settings panel it is labeled Multipier. In the original UT Bot Alerts, the same setting is called Key Value.
| Multiplier | Typical behavior |
|---|---|
| 0.5–1 | Higher sensitivity and more frequent signals |
| 1–2 | Moderate sensitivity |
| 2–3 | Lower sensitivity and fewer signals |
| 3+ | Wider trailing stop focused on larger movements |
These ranges are illustrative starting points, not universally optimal settings.
Lower values may capture shorter price movements but can also produce more false signals. Higher values may help filter market noise but can introduce additional signal delay.
ATR Period
The ATR Period determines how many bars are used to estimate market volatility. Its default is 10.
Shorter ATR periods react more quickly to recent changes in volatility. Longer periods produce a smoother volatility estimate.
Common periods to experiment with include 5, 10, 14, and 20.
The interaction between the ATR Period and Multiplier is important. Changing either parameter can significantly affect the indicator’s behavior. The ATR sensitivity guide shows the effect of each on the same chart.
Source
The Source is the price used for the trailing stop and the crossover check. The default, close, matches the classic UT Bot. You can also choose open, high, low, hl2, hlc3, hlcc4, or ohlc4.
Heikin Ashi Signals (original UT Bot Alerts)
The original UT Bot Alerts has an option to calculate signals from Heikin Ashi closing prices. UT Bot v2 does not have this option.
Heikin Ashi candles use averaged price data to create a smoother representation of market movements. This can change the timing and frequency of UT Bot signals. However, Heikin Ashi prices are synthetic and should not be treated as actual executable market prices.
When backtesting, make sure your execution assumptions reflect real market prices. Running a strategy such as UT Bot v2 directly on a Heikin Ashi chart simulates fills at those synthetic prices.
Backtesting Range and Display
The Backtesting Range limits the strategy’s trades to a date window (by default, January 1, 2020 to January 1, 2030). It does not affect the signals or alerts. The Display options show or hide the Buy/Sell labels, the trailing stop line, and trend-colored bars.
What Are the Best UT Bot Settings?
There is no single best UT Bot configuration for every market.
The appropriate settings depend on:
- The asset being traded.
- The chart timeframe.
- Market volatility.
- Trading costs.
- Trading frequency.
- Risk tolerance and strategy objectives.
A sensible approach is to start with the defaults (Multiplier 1, ATR Period 10) and change one setting at a time. The following configurations can serve as starting points for experimentation:
| Trading style | Timeframe | Multiplier | ATR Period |
|---|---|---|---|
| Scalping | 1–5 minutes | 1–2 | 5–10 |
| Intraday trading | 15–60 minutes | 1–2.5 | 10–14 |
| Swing trading | 4 hours–1 day | 2–3 | 10–20 |
| Longer-term trend following | Daily and above | 2–4 | 14–20 |
These are illustrative configurations rather than backtested recommendations.
Instead of searching for a universally profitable setting, focus on finding parameters that remain reasonably robust across different market conditions and historical periods.
How to Interpret UT Bot Buy and Sell Signals
Buy Signals
A Buy signal means the price source closed above the volatility-based trailing stop after being below it. This can suggest a potential transition toward bullish market conditions.
Sell Signals
A Sell signal means the price source closed below the trailing stop after being above it. This can suggest a potential transition toward bearish market conditions.
Neither signal guarantees that a new trend will develop. During sideways markets, price can repeatedly cross the trailing stop, generating multiple unsuccessful signals.

How to Reduce False UT Bot Signals
One of the main limitations of UT Bot is its performance during sideways or choppy market conditions.
Because the indicator reacts to price movements, frequent reversals can generate repeated buy and sell signals without a sustained trend.

There are several approaches worth investigating.
Higher Timeframe Trend Filters
Use a higher timeframe to establish the broader market direction before acting on lower-timeframe signals. For example, a trader might investigate taking bullish signals only when the higher timeframe indicates an upward trend.
Moving Average Filters
Moving averages can provide an additional trend filter. A simple example is testing long signals only when price is above a selected moving average and short signals only when price is below it.
Trend Strength Filters
Indicators such as the Average Directional Index (ADX) can help distinguish between stronger trends and less directional market conditions.
Volatility and Volume Filters
Volatility and volume conditions can provide additional context when evaluating potential trading opportunities.
Signal Confirmation
Waiting for a candle to close before acting on a signal removes the uncertainty of intrabar price movements. UT Bot v2 already does this. Stricter confirmation, such as requiring price to stay beyond the stop for several bars, trades fewer whipsaws for later entries.
Each additional filter introduces trade-offs. While filters may eliminate some unsuccessful signals, they can also remove profitable opportunities or delay entries. Their effectiveness should be evaluated through backtesting.
Filters like these are built into UT Bot Pro
UT Bot Pro, part of the QuantNomad UT Bot Suite, adds higher-timeframe confirmation, entry modes such as Close + Buffer and X-Bar Confirmation, alternative volatility models, and stop-based exits, so you can test how each one changes UT Bot’s behavior.
Does UT Bot Repaint?
UT Bot v2 calculates its signals from current and historical prices only, and both its Buy and Sell conditions require a confirmed (closed) bar. A signal appears when the bar closes and stays on the chart afterwards.
The original UT Bot Alerts does not have this bar-close check. On an open candle, its Buy or Sell label can appear and disappear as the price moves, and only the value at the candle’s close is final. Confirmed historical signals remain stable.
This distinction is important when configuring TradingView alerts or automating a trading strategy. With the original UT Bot Alerts, use the Once Per Bar Close alert frequency so alerts trigger only after a candle has closed. UT Bot v2’s built-in alerts already fire once per bar close.
Different modified versions of UT Bot may behave differently, particularly if they introduce higher-timeframe data or additional signal calculations. Always verify the behavior of the specific indicator version you are using. The confirmed vs unconfirmed signals guide explains how TradingView calculates the open bar and how to set up alerts that only fire on confirmed signals.
How to Set Up UT Bot Alerts
TradingView allows you to receive notifications when UT Bot generates a signal.
To configure an alert for UT Bot v2:
- Add UT Bot v2 to your chart with the settings you want.
- Open the TradingView alert creation window (the alarm clock icon, or Alt + A).
- In Condition, select UT Bot v2.
- Choose alert() function calls only.
- Configure your notification method.
- Create the alert.
One alert covers both directions: the message is UT Bot Buy or UT Bot Sell, sent once per bar close. An alert keeps the settings it was created with, so recreate it after changing UT Bot’s inputs.
For automation, you can also create order fill alerts, whose message you write yourself with strategy placeholders, for example as JSON for a webhook. With the original UT Bot Alerts, choose the UT Long or UT Short condition instead.
Depending on your TradingView plan and configuration, alerts can also be delivered through webhooks to external applications and automation platforms. See the UT Bot v2 alerts documentation and the webhooks guide, or send TradingView alerts to Telegram for free.
How to Backtest UT Bot
Before using UT Bot as part of a live trading system, it is important to evaluate its historical behavior.
UT Bot v2 is a TradingView strategy, so it can be tested directly in the Strategy Tester. It enters long on every Buy signal and short on every Sell signal, so it is always in the market. That is a simple test of the signals, not a complete trading strategy, which also requires rules for:
- Entries and exits.
- Position sizing.
- Stop-loss and take-profit management.
- Trading commissions.
- Slippage.
- Risk management.
TradingView’s default strategy properties include zero commission and zero slippage. Set realistic values for your market in the Properties tab before you evaluate any result.

When evaluating a UT Bot strategy, consider metrics such as:
- Net profit.
- Maximum drawdown.
- Profit factor.
- Average trade return.
- Number of trades.
- Performance across different market conditions.
Avoid optimizing parameters exclusively for the highest historical return. This can lead to overfitting, where a configuration performs well on historical data but poorly on unseen data.
A more robust approach involves testing multiple assets, timeframes, parameter combinations, and out-of-sample periods. Historical performance does not guarantee future results, and live trading usually differs from a backtest for several practical reasons.
UT Bot vs. Supertrend
UT Bot and Supertrend are both volatility-based trend-following tools that use ATR in their calculations. However, their trailing-stop calculations and signal-generation logic differ.
| Feature | UT Bot | Supertrend |
|---|---|---|
| Volatility measurement | ATR | ATR |
| Stop anchored to | The price source (close by default) | The bar’s midpoint, hl2 |
| Core mechanism | One trailing stop that ratchets with the trend | Upper and lower ATR bands; the active band trails the trend |
| Trend flip | Source crosses the trailing stop | Close crosses the active band |
| Default settings on TradingView | Multiplier 1, ATR Period 10 (UT Bot v2) | Factor 3, ATR Period 10 (built-in Supertrend) |
With its default settings, UT Bot’s stop sits much closer to price, so it typically flips more often than the built-in Supertrend. Neither indicator is universally superior. Their relative performance depends on the market, timeframe, parameters, and complete trading strategy.
UT Bot Free vs. Pro
The free UT Bot v2 is a useful starting point for understanding volatility-based trend-following signals. Traders who want to move beyond basic signals can explore the UT Bot Suite, available through QuantNomad Pro Indicators. It contains UT Bot Pro, a configurable strategy, and the Ultimate UT Bot Screener.
| UT Bot v2 | UT Bot Suite | |
|---|---|---|
| Price | Free | Paid subscription |
| Source code | Open source (MPL 2.0) | Closed source |
| Volatility models | ATR | ATR, Smoothed ATR, Standard Deviation, Historical Volatility |
| Multiplier | Fixed | Fixed or adaptive (Efficiency Ratio) |
| Entry modes | Close across the stop | Classic Close, Close + Buffer, X-Bar Confirmation, Touch / Stop Order |
| Higher-timeframe confirmation | No | Yes |
| Exit modes | Opposite signal (always in the market) | Opposite Signal, TSL Stop, TSL Stop + R:R Target |
| Dashboard | No | Yes |
| Multi-symbol screener | No | Up to 40 symbols |
More configuration doesn’t automatically mean better results: each extra control is a trade-off between responsiveness, confirmation, and risk, and neither tool predicts prices.
You can explore the available indicators, read their documentation, and request trial access before deciding whether they fit your trading approach. The full comparison is in the documentation.
Frequently Asked Questions
Is UT Bot free on TradingView?
Yes. QuantNomad’s UT Bot v2 and the original UT Bot Alerts are free and open source on TradingView. Additional professional indicators are available through QuantNomad Pro Indicators.
Is UT Bot profitable?
UT Bot is a signal-generation indicator, not a guarantee of profitability. Results depend on market conditions, parameter selection, execution, trading costs, and risk management.
Does UT Bot repaint?
UT Bot v2 only signals on closed bars, so its signals don’t change once they appear. The original UT Bot Alerts can show and remove a signal while a candle is still open; use the Once Per Bar Close alert frequency with it.
Can I use UT Bot for scalping?
Yes. UT Bot can be applied to lower timeframes, including one-minute and five-minute charts. However, lower timeframes can contain more market noise, and trading costs can significantly affect results.
Can I use UT Bot for cryptocurrency trading?
Yes. UT Bot can be applied to cryptocurrency charts as well as stocks, forex, futures, and other instruments.
What is the best timeframe for UT Bot?
There is no universally optimal timeframe. Traders should evaluate different timeframes based on their objectives, market conditions, and trading strategy.
Can UT Bot signals be automated?
Yes. TradingView alerts and webhooks can be used to integrate UT Bot signals with compatible external automation systems. A complete automated trading system also requires execution logic, position management, risk controls, and error handling.
Final Thoughts
UT Bot is a relatively simple but flexible approach to volatility-based trend following.
Its real value comes from understanding its underlying logic, testing its parameters, recognizing its limitations, and incorporating it into a well-defined trading system.
Start with the free indicator, experiment with different configurations, and evaluate its behavior across multiple market conditions.
Take UT Bot Beyond Basic Buy and Sell Signals
Explore the QuantNomad Pro Indicators collection and discover advanced tools for building systematic trading workflows on TradingView.
Related Articles
- Implementing UT Bot in TradeStation
- Announcing the Ultimate UT Bot Screener
- How to Connect TradingView Alerts to Telegram Bots (100% Free)
- Save Time with Alert Presets in TradingView
- Why Your Live Trading Is So Much Worse Than Your Backtests
- How UT Bot v2 Works (documentation)
This article is for educational purposes only and does not constitute financial advice. Trading involves risk, and past performance does not guarantee future results.


