All indicators

Trend Breakout

Apr 16, 2025

Static chart image
Support and ResistanceSignalsChannelsPivot Based (Retrospective)

The Trend Breakout indicator identifies high-probability breakout and trend reversal setups using dynamic pivot-based support and resistance channels.

Usage

The Trend Breakout tool is designed to highlight specific price action patterns where the market deviates from its current trend. It automatically draws a red upper resistance line and a green lower support line by connecting recent pivot highs and lows.

Traders can utilize the indicator through several visual cues:

  • Counter-Trend Breakout Signals: A "CT Breakup" signal (green label) appears when the price crosses above the resistance line during a defined downtrend, suggesting a potential reversal. Conversely, a "CT Breakdown" signal (red label) triggers when the price falls below the support line during an uptrend.
  • Trend Identification: The chart background changes color to reflect the current market state—green for uptrends and red for downtrends—based on the sequence of higher/lower pivot points.
  • Trend Change Signals: Optional arrows can be enabled to mark the exact moment the overall trend direction shifts, allowing for early entry into new market phases.

Details

The script uses a non-repainting methodology by requiring a specific number of bars to the right of a pivot (Pivot Right Bars) before confirming the level. This ensures that once a signal appears on a confirmed bar, it will not disappear or move. The channels are formed by calculating the slope between the two most recent pivots. The "Trend" is determined by the relationship between consecutive pivots: an uptrend requires both higher highs and higher lows, while a downtrend requires lower highs and lower lows.

Settings

  • Pivot Left Bars: The number of bars to the left required to detect a potential pivot point.
  • Pivot Right Bars: The number of bars to the right required to confirm a pivot point, ensuring the signal is non-repainting.
  • Channel Extension Bars: Determines how many bars into the future the support and resistance lines extend.
  • Show Pivot Points: Toggles the visibility of the small triangles marking identified pivot highs and lows.
  • Show Counter-Trend Breakout Signals: Enables or disables the labels for CT Breakup and CT Breakdown events.
  • Show Trend Change Signals: Enables or disables the large arrows indicating a shift in the primary trend direction.

FAQ

How do I use the Trend Breakout indicator effectively?

The indicator is best used by watching for counter-trend signals at key historical price levels or using the background color to stay on the right side of the prevailing trend.

Are the signals provided by this script non-repainting?

Yes, the script uses a confirmation delay based on the "Pivot Right Bars" setting, meaning signals only appear once the pivot is mathematically confirmed and will not change later.

How can I access Trend Breakout?

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.