UT Bot Alerts – Time Filtered with Exits
Mar 6, 2025

The UT Bot Alerts – Time Filtered with Exits indicator provides a comprehensive signal generation system that combines ATR-based trend following with linear regression-based exit logic and advanced time filters. This tool is designed to identify high-probability entry points while offering systematic exit management and signal frequency controls.
Usage
The tool generates entry signals based on the interaction between a short-period EMA and a dynamic ATR trailing stop. A "Buy" label appears when the EMA crosses above the trailing stop with price momentum, while a "Sell" label appears for the inverse.
To manage trades, the script calculates dynamic exit levels using a linear regression line. "Exit Long" or "Exit Short" signals are triggered when price deviates significantly from the regression midline.
Users can also refine signal frequency using:
- Session Filtering: Disable signals during specific hours (e.g., during low liquidity periods).
- Cooldown Period: Prevent rapid-fire signals by enforcing a minimum time gap (in minutes) between consecutive alerts.
- Buffer Zones: The indicator uses an ATR-based buffer to filter out minor price fluctuations around the trailing stop.
Details
The script is based on the original UT Bot concept by QuantNomad but adds several layers of trade management logic. The core trend detection relies on an ATR-based trailing stop calculation that adjusts based on volatility. For exits, it employs a Linear Regression midline as a mean-reversion reference, projecting upper and lower exit boundaries based on a user-defined percentage deviation.
Settings
Core Parameters
- Key Value: Adjusts the sensitivity of the ATR trailing stop; higher values result in a smoother, less sensitive trend line.
- ATR Period: Defines the lookback period for Average True Range calculations.
- Signals from Heikin Ashi Candles: When enabled, the logic processes Heikin Ashi price data instead of standard candle data for smoother signals.
Exit Logic
- Linear Regression Period: The lookback for the regression midline used for exits.
- Exit Signal Deviation (%): The percentage distance from the regression line required to trigger an exit signal.
- Enable Exit Signals: Toggles the display of exit triangle markers.
- Exit Signal Delay (bars): The number of consecutive bars the exit condition must be met before a signal is confirmed.
Filters
- Disable signals in defined time range: Enables the session filter.
- Disable Signals Session: Defines the specific time window (e.g., "2200-0500") where signals are ignored.
- Enable cooldown period (minutes): Toggles the minimum time requirement between signals.
- Cooldown Period (minutes): The specific duration for the signal lockout.
FAQ
How do I access UT Bot Alerts – Time Filtered with Exits?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the "Key Value" setting?
The Key Value acts as a multiplier for the ATR; increasing it makes the indicator less reactive to small price moves, which can help in trending markets but may result in late entries.
Why did I get an entry but no exit signal?
Exit signals only trigger if price reaches the Linear Regression deviation levels and stays there for the duration of the "Exit Signal Delay." Ensure "Enable Exit Signals" is checked in the settings.
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.