Breakout Targets
Feb 5, 2026

The Breakout Targets tool identifies consolidation zones and provides automated breakout targets with volatility-adjusted risk management levels. It focuses on finding periods where price action compresses and tracks the subsequent breakout from these ranges, projecting three take-profit (TP) levels and a stop-loss (SL) automatically.
Usage
The Usage section describes how the script can be used to navigate market consolidation and subsequent trends:
- Identifying Ranges: Look for the grey boxes (channels) on the chart. These indicate "coiling" market phases where supply and demand are in equilibrium.
- Breakout Signals: A green arrow label signals a bullish breakout from the top of the range, while a red arrow indicates a bearish breakout from the bottom.
- Trade Management: Once a breakout is confirmed, the tool projects horizontal lines representing the Entry, Stop Loss, and three Take Profit levels. These levels are adjusted for current market volatility.
- Optimization: Users should adjust the "Range Detection Period" based on their preferred timeframe; higher values capture significant, long-term ranges, while lower values capture short-term scalping opportunities.
Details
The script utilizes a relationship between Weighted Moving Averages (WMA) and Exponential Moving Averages (EMA) of price ranges to detect consolidation. When these moving averages cross, it triggers the detection of recent pivot highs and lows to define the boundaries of the visual "box."
Once price closes outside this box, the script calculates the Average True Range (ATR) to determine the volatility-adjusted distance for the stop loss. The take-profit levels are then projected as multiples of this risk distance, ensuring a mathematically consistent reward-to-risk ratio for every setup.
Settings
Main Settings
- Range Detection Period: The lookback period used to calculate the price compression and detect the trading range.
- Prevent Overlap: If enabled, the script will wait for the current range to resolve before drawing a new consolidation box.
Targets
- Show Take Profit Levels: Toggles the visibility of the trade projection lines.
- Volatility (ATR) Period: The period used for the ATR calculation that determines level spacing.
- Stop Loss ATR Multiplier: Sets the distance of the Stop Loss from the entry. This is the primary driver of the trade's risk profile.
- TP1/TP2/TP3 Multiplier: Determines where the take-profit levels are set relative to the risk (Stop Loss) distance.
Appearance
- Bullish/Bearish Color: Customizes the colors for the breakout signals, range boundaries, and trade projection visuals.
FAQ
How do I interpret the colored zones within the grey box? The colored zones at the top (red) and bottom (green) of the consolidation boxes represent potential supply and demand areas within the range where price is likely to react before a full breakout occurs.
Can I use this for automated alerts? Yes, the script includes an integrated alert system that can notify you of new breakouts or when price hits any of the projected profit or loss targets.
How can I access Breakout Targets? 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.