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.
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.