Trend Breakout
Apr 16, 2025

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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

