All indicators

UT Bot Alerts Strategy

Feb 25, 2023

Static chart image
Support and ResistanceSignalsMoney ManagementMoving AveragesVolatility

The UT Bot Alerts Strategy indicator provides a comprehensive backtesting framework based on the popular UT Bot signals, integrated with trend filtering and advanced risk management features. It aims to provide a structured approach to trading by combining volatility-based entries with a 200-period EMA trend filter and automated ATR stop-loss logic.

Usage

The strategy generates signals based on the relationship between price, a calculated ATR trailing stop, and an EMA.

  • Long Entries: Occur when the price is above the 200 EMA, the close price is higher than the UT Bot ATR, and the UT Bot EMA crosses over the ATR line.
  • Short Entries: Occur when the price is below the 200 EMA, the close price is lower than the UT Bot ATR, and the UT Bot EMA crosses under the ATR line.
  • Exits: Positions can be closed via a fixed 3:1 risk-reward take profit (where a portion of the position is scaled out) or through a reversal signal (Close Buy/Close Sell) when price and EMA cross back through the ATR trailing stop.
  • Risk Management: Users can define risk as a percentage of the total account. The script calculates the required position size based on the distance to the ATR stop loss.

Details

This tool combines three core concepts to validate trade setups:

  1. UT Bot Alerts Logic: Uses an ATR-based trailing stop to identify momentum shifts.
  2. Trend Filtering: A 200-period EMA ensures that trades are only taken in the direction of the long-term trend.
  3. Volatility-Based Protection: Utilizes an ATR stop-loss mechanism to adapt protection levels to current market volatility.

The script also includes a position size calculator that displays the recommended USD amount for a trade in the corner of the chart, helping traders maintain consistent risk across different setups.

Settings

Position Calculation

  • Initial Capital: The starting balance for the position size calculator.
  • % Account Risk per Trade: Percentage of the account to risk on a single trade.
  • Use Leverage?: Determines if the calculator should suggest amounts exceeding the initial capital.

Strategy Components

  • Ema Length: Sets the period for the trend-filtering EMA (default is 200).
  • Key Value / ATR Period: Main parameters for the UT Bot trailing stop logic.
  • Atr Multiplier: Defines the distance for the strategy's stop loss.
  • Stop Loss Source: Choose between using the current candle or the previous candle for SL calculations.
  • Risk/Reward Settings: Customizable ratios for break-even points and final take-profit targets.

FAQ

How do I use the position size calculator?

Enter your current account balance and desired risk percentage in the settings. The indicator will display the specific USD amount to allocate for the next trade in the top-left corner of your chart.

Can I change the entry signals?

Yes, you can adjust the "Key Value" and "ATR Period" under the UT BOT ALERTS section to make the strategy more or less sensitive to price movements.

How do I access UT Bot Alerts 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.