# Valid BOS Pullback

Valid BOS Pullback is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

The Valid BOS Pullback indicator identifies trend continuations by filtering standard Break of Structure events through a retest requirement. It detects initial breakouts and waits for the price to pull back to the structural level before confirming the continuation if a new extreme is reached. This process helps traders avoid false breakouts and focus on higher probability continuation patterns by ensuring the structural level acts as support or resistance after the initial breach.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Oct 7, 2026.
- Access: free.
- Concepts: [Break of Structure](https://www.luxalgo.com/library/concept/break-of-structure/) (primary), [Retest](https://www.luxalgo.com/library/concept/retest/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=dbrengxyu2t7f84uakmjea2y
- Page: https://www.luxalgo.com/library/indicator/valid-bos-pullback/

The **Valid BOS Pullback** indicator is a sophisticated structural analysis tool designed to identify and validate break-of-structure (BOS) events with greater precision. By requiring a specific retest of the original swing level before confirming the continuation of a trend, this indicator effectively filters out noise and potential false breakouts. It provides traders with a systematic approach to identifying high-probability setups, ensuring that price action demonstrates a genuine commitment to the newly established structural range before a signal is generated.

## How to Trade the Valid BOS Pullback?

The indicator operates by monitoring price as it moves beyond previous structural highs or lows. To trade with it effectively, follow the progression of each setup:

1. Identification: The indicator automatically detects swing points based on your settings. When price breaks beyond these levels by a defined distance, a new potential BOS setup is initiated. 
2. The Retest Phase: A "Valid Pullback" label appears when price returns to touch the original reference level. This is a critical stage, as it confirms that the market is respecting the previous structural boundary.
3. Confirmation: Once the retest is successful and the price subsequently breaks through the newly established extreme, the indicator flags the setup as a confirmed BOS. This provides a clear, objective signal that the momentum is likely to continue in the direction of the break.
4. Risk Management: Traders can monitor the "developing levels" to gauge the maturity of a trade. If price closes back through the reference level by more than the allowed tolerance, the setup is invalidated (wicks beyond it do not count), helping to protect against entries into losing momentum.

## Valid BOS Pullback Settings

### Structure
*   **Swing left bars**: Sets the number of bars required to the left of a pivot to be considered a valid swing point.
*   **Swing right bars**: Defines the number of bars needed to the right to confirm a pivot, ensuring the structural level is significant.
*   **Structure lookback (bars)**: Determines the historical window for finding structural highs and lows to be used as potential reference lines.
*   **Close invalidation tolerance (ticks)**: Sets the maximum distance price can close beyond the reference level before the setup is discarded as invalid.
*   **Minimum bars without a retest**: Ensures a period of price separation between the initial break and the retest, filtering out immediate, erratic rejections.
*   **Minimum initial break (ticks)**: Sets the minimum distance price must close beyond the structural level to qualify the start of a new setup.
*   **Maximum setup age (bars)**: Sets the expiration limit for unfinished setups to keep the charts clean.

### Style
*   **Show developing levels**: Toggles the display of lines showing pending structural levels.
*   **Show valid-pullback text**: Shows labels as soon as a retest of the structural level is detected.
*   **Mark retest touches**: Displays a small visual marker at the exact candle that touches the structural level.
*   **Previous high / low**: Sets the base color for the reference lines that define the structure.
*   **Bullish BOS / check**: Determines the color for bullish confirmations and markers.
*   **Bearish BOS / check**: Determines the color for bearish confirmations and markers.

## Frequently Asked Questions

### Does this indicator work on all timeframes?
Yes, the indicator is designed to be time-independent and functions effectively on any timeframe or asset class, provided there is sufficient price data to establish consistent swing pivots.

### How does this differ from a standard break of structure indicator?
Unlike standard breakout tools that may trigger on any breach of a high or low, this indicator requires a confirmed retest of the original structural level, ensuring that the trend continuation is supported by price interaction.

### Can I adjust the sensitivity of the retest validation?
Yes, you can customize the retest sensitivity by adjusting the "Close invalidation tolerance" and "Minimum bars without a retest" settings, which allow you to define how strictly the indicator verifies the return to the reference level.

## Related indicators

- [Market Structure (Breakers)](https://www.luxalgo.com/library/indicator/market-structure-breakers/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/market-structure-breakers.md
- [DTFX Algo Zones](https://www.luxalgo.com/library/indicator/dtfx-algo-zones/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/dtfx-algo-zones.md
- [Market Structure (Intrabar)](https://www.luxalgo.com/library/indicator/market-structure-intrabar/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/market-structure-intrabar.md
- [Market Structure Oscillator](https://www.luxalgo.com/library/indicator/market-structure-oscillator/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/market-structure-oscillator.md
- [Structure & Trend Dashboard](https://www.luxalgo.com/library/indicator/structure-trend-dashboard/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/structure-trend-dashboard.md
- [Smart Money Concepts (SMC)](https://www.luxalgo.com/library/indicator/smart-money-concepts-smc/) (Break of Structure): markdown at https://www.luxalgo.com/library/indicator/smart-money-concepts-smc.md
- [Retest & Break Setup](https://www.luxalgo.com/library/indicator/retest-break-setup/) (Retest): markdown at https://www.luxalgo.com/library/indicator/retest-break-setup.md
- [Range Average Retest Model](https://www.luxalgo.com/library/indicator/range-average-retest-model/) (Retest): markdown at https://www.luxalgo.com/library/indicator/range-average-retest-model.md

---

Source: https://www.luxalgo.com/library/indicator/valid-bos-pullback/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
