UT Bot Alerts
Feb 8, 2020

The UT Bot Alerts indicator provides automated buy and sell signals based on a dynamic trailing stop mechanism to help traders identify trend reversals and momentum shifts.
Usage
The UT Bot Alerts tool is primarily used to identify entry and exit points by tracking price movements relative to a calculated volatility-based floor or ceiling. When the price crosses above the trailing stop, a "Buy" signal is generated, and the bar colors typically change to reflect bullish sentiment. Conversely, when the price crosses below the trailing stop, a "Sell" signal is triggered, indicating bearish sentiment.
Traders can utilize these signals for:
- Trend Following: Identifying the start of a new trend after a period of consolidation.
- Stop Loss Placement: Using the calculated trailing stop level as a reference for risk management.
- Alert Automation: Setting up notifications for "UT Long" or "UT Short" conditions to monitor markets without constant screen time.
The sensitivity of the signals can be adjusted to suit different timeframes; a higher sensitivity (lower Key Value) reacts faster to price changes but may increase noise, while a lower sensitivity (higher Key Value) filters out minor fluctuations at the cost of later entries.
Details
The script is a refactored version of the original UT Bot concept initially developed by @Yo_adriiiiaan and @HPotter. It operates by calculating an Average True Range (ATR) over a user-defined period, which is then multiplied by a "Key Value" to determine the offset of the trailing stop.
The logic follows these core steps:
- Source Selection: Users can choose between standard candle closes or Heikin Ashi candle closes for signal calculation.
- Trailing Stop Calculation: The script maintains a trailing stop that adjusts upward during uptrends and downward during downtrends based on the ATR-derived loss value.
- Crossover Detection: A signal is generated specifically when an Exponential Moving Average (EMA) of the price crosses the trailing stop line.
- Signal Optimization: The script includes built-in alert conditions optimized for real-time execution on various charting platforms.
Settings
- Key Value: A multiplier for the ATR that determines the sensitivity of the signals. Lower values make the indicator more sensitive to price changes.
- ATR Period: The lookback period used to calculate the Average True Range, which measures market volatility.
- Signals from Heikin Ashi Candles: A toggle that allows the script to use Heikin Ashi price data for calculations instead of standard candle data, which can result in smoother trend identification.
FAQ
How do I adjust the indicator for different market conditions? You can modify the Key Value and ATR Period. For volatile markets, increasing these values can help filter out "fakeouts," while in trending markets, lower values may capture movements earlier.
Can I use this indicator for automated trading? Yes, the script includes specific alert conditions (UT Long and UT Short) that can be connected to third-party webhooks or automated execution engines.
How can I access the UT Bot Alerts indicator? 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.