Trend Breakout
Jul 16, 2025

The Trend Breakout indicator identifies pivot high and pivot low points to detect breakouts and signal potential trend changes through dynamic support and resistance levels.
Usage
The Trend Breakout tool is designed for swing traders and trend followers to identify market reversals and momentum shifts. When the price crosses above a confirmed pivot high resistance line, a "Br" (Breakout) label appears, and the chart background turns green to indicate an uptrend. Conversely, a cross below a pivot low support line triggers a red background and a short breakout signal.
Users can use these visual cues to:
- Identify Reversals: Watch for the formation of new pivot lines to anticipate shifts in market direction.
- Confirm Trend Direction: Use the background coloring and dotted line transitions to stay aligned with the prevailing market bias.
- Spot Entries: The "Br" labels serve as execution triggers for breakout-based strategies.
Details
The script utilizes a specific pivot pattern recognition logic. It tracks the last three pivot highs and lows. A valid resistance line is only drawn when the middle pivot high is higher than both the preceding and succeeding pivot highs. Similarly, a support line is established when a middle pivot low is lower than the surrounding two pivots. This filtering process ensures that only significant structural peaks and valleys are used for breakout detection, reducing noise from minor price fluctuations.
Settings
Pivot Settings
- Right side Pivot Candle: Determines the number of candles to the right required to confirm a pivot point.
- Left side Pivot Candle: Determines the number of candles to the left required to confirm a pivot point.
Visual Settings
- Color Transparency: Adjusts the opacity of the trend-based background coloring (0-90).
- Show Info script name Symbol and Timeframe: Toggles the visibility of the information table on the top right of the chart.
Alert Settings
- Enable Breakout Alerts: Enables or disables the internal alert logic.
- Show Alert Markers: Displays "LONG BREAKOUT" or "SHORT BREAKOUT" labels on the chart when a signal is triggered.
FAQ
How do I access Trend Breakout?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What do the dotted lines signify?
When a solid trendline is broken, it becomes dotted and thinner. This indicates that the previous level has been breached and the script is now looking for the next structural pivot to form a new level.
Can I use this on lower timeframes?
Yes, however, you may need to increase the "Left side" and "Right side" pivot candle settings to filter out market noise and focus on more significant structural breakouts.
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.