Structure Breakout - Buy Sell Indicator
Dec 6, 2025

The Structure Breakout - Buy Sell Indicator is a minimalist technical analysis tool designed to identify market structure shifts by detecting breakouts of significant swing levels. It provides traders with clear visual cues to pinpoint potential trend reversals or continuations based on price action mechanics.
Usage
The indicator can be used to identify entry points following a change in market structure. A buy signal is generated when the price closes above the most recent swing high, indicating a bullish breakout. Conversely, a sell signal is triggered when the price closes below the most recent swing low, indicating a bearish breakout.
Traders can utilize these signals for:
- Trend Following: Entering a trade when the market breaks out of a consolidation phase or confirms a trend continuation.
- Reversal Trading: Identifying when a prior trend's structure has failed, suggesting a potential new direction.
- Confirmation: Using the signals to validate other technical setups or support/resistance zones.
Details
The script operates by identifying swing points (pivots) over a user-defined lookback period. Once a swing high or swing low is established, the script monitors subsequent candle closes. A "break" is only confirmed on a bar close, ensuring that temporary wicks do not trigger premature signals. The logic is designed to be non-repainting, meaning once a signal appears on a closed bar, it remains fixed.
Settings
- Structure Detection Period: (Default: 20) Determines the lookback window used to identify swing highs and swing lows. A higher value will detect more significant, long-term structure points, while a lower value will make the indicator more sensitive to short-term fluctuations.
FAQ
How do I interpret the arrows?
Blue upward-facing arrows indicate a bullish structure breakout (Buy), while red downward-facing arrows indicate a bearish structure breakout (Sell).
Does this indicator repaint?
No, the indicator triggers signals based on the closing price of the bar, ensuring that signals are confirmed and permanent once the candle closes.
How can I access the Structure Breakout - Buy Sell Indicator?
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.

