UT Bot Strategy
Nov 15, 2019

The UT Bot Strategy tool provides an automated trading framework designed to identify trend reversals and momentum shifts using a dynamic trailing stop mechanism. By calculating price volatility through the Average True Range (ATR), the script generates buy and sell signals to help traders capture directional moves while minimizing lag.
Usage
The Usage section describes how the script can be used to identify entry and exit points based on price action and volatility.
- Trend Following: When the price crosses above the calculated trailing stop, a "Buy" signal is generated, and the strategy enters a long position. Conversely, when the price crosses below the trailing stop, a "Sell" signal is generated, and the strategy enters a short position.
- Heikin Ashi Integration: Users can enable the Heikin Ashi toggle to calculate signals based on smoothed price data. This is particularly useful for filtering out market noise without needing to change the actual chart type, allowing for cleaner signals on standard candlestick charts.
- Sensitivity Tuning: By adjusting the "Key Value," traders can determine how closely the trailing stop follows the price. A lower value makes the strategy more sensitive to minor price fluctuations, while a higher value requires more significant movement to trigger a reversal.
Details
The UT Bot Strategy is built upon the foundational logic of a Chandelier Exit or similar ATR-based trailing stop system. The script calculates an ATR value over a user-defined period and multiplies it by a "Key Value" to establish a dynamic buffer around the price.
The core logic evaluates the relationship between the current source price and the previous trailing stop level. If the price remains above the stop, the stop can only move upward; if the price remains below, the stop can only move downward. A signal is triggered when a crossover occurs between the price and this calculated boundary. The strategy implementation includes automated backtesting capabilities, allowing users to see historical performance directly on the chart.
Settings
- Key Value: Controls the multiplier for the ATR calculation. Adjusting this value changes the sensitivity of the trailing stop (higher values result in fewer, more significant signals).
- ATR Period: Defines the lookback period used to calculate market volatility. A longer period results in a smoother, slower-reacting trailing stop.
- Signals from Heikin Ashi Candles: When enabled, the strategy uses Heikin Ashi close prices for signal generation instead of standard candle closes, often providing a more filtered trend perspective.
FAQ
How do I adjust the strategy for different timeframes? You can modify the ATR Period and Key Value settings to better suit the volatility of your specific timeframe. Generally, lower timeframes may require higher Key Values to avoid noise.
Can I use this strategy for automated alerts? Yes, the script includes built-in alert functionality that triggers a notification whenever a Buy or Sell signal is confirmed on the close of a bar.
How do I get access to the UT Bot Strategy? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.