# MSS Sweep Fib Retrace

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

Chains three institutional footprints into one setup: a sweep of a prior swing level, a momentum-confirmed market structure shift, and a pullback to the 50% retracement of the sweep leg. Entries print with ATR-sized stop and target zones, and an optional 200 EMA macro filter limits signals to reversals against the higher trend (long setups start below the EMA, short setups above it). For traders who wait for confirmation rather than the first break.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Jul 9, 2026.
- Access: free.
- Concepts: [Change of Character](https://www.luxalgo.com/library/concept/change-of-character/) (primary), [Liquidity Sweep](https://www.luxalgo.com/library/concept/liquidity-sweep/), [Fib Retracement](https://www.luxalgo.com/library/concept/fib-retracement/), [Optimal Trade Entry](https://www.luxalgo.com/library/concept/optimal-trade-entry/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmrdpdc42002dle04527j9pjm
- Page: https://www.luxalgo.com/library/indicator/mss-sweep-fib-retrace/

**MSS Sweep Fib Retrace** hunts the sequence reversal traders prize: liquidity taken, structure broken, price returning to a discount. It first tracks a Sweep (price running a previous swing high or low without holding beyond it) then waits for a market structure shift, the [change of character (CHoCH)](https://www.luxalgo.com/library/concept/change-of-character/) confirmed by a user-set count of consecutive momentum candles. Only then does it measure the leg from sweep extreme to MSS point and project the [Fib retracement](https://www.luxalgo.com/library/concept/fib-retracement/) at 50%, plotting that level as the entry zone alongside volatility-based stop-loss and take-profit areas.

## How to Trade the MSS Sweep Fib Retrace?

- **Sweep label**: a prior swing level was run and rejected, the raid that fuels the setup; it is drawn back on the sweep bar together with the MSS label once the shift confirms, so sweeps that never produce an MSS are not shown.
- **MSS label**: structure has shifted with the required momentum behind it; the 50% level of the sweep leg becomes the live area of interest.
- **50% tap**: entry labels print as price returns to the zone, and ATR-scaled stop and target areas draw automatically.
- **Macro Trend filter on**: setups only start against the 200-period EMA (a long setup needs its sweep bar to close below the EMA, a short setup above it), so each one is a counter-trend reversal; disable it to allow setups on either side of the EMA.

## MSS Sweep Fib Retrace Settings

- **Pivot Left Bars / Pivot Right Bars**: bars required on each side of a swing point; larger values build structure from more significant pivots.
- **Required Momentum Candles for MSS**: consecutive bullish or bearish candles needed to validate the shift and reject false moves.
- **Use Overall Macro Trend Filter** and **Macro Trend EMA Period**: toggle the higher-trend filter and set its EMA length.
- **ATR Period**, **Stop Loss ATR Multiplier**, **Take Profit ATR Multiplier**: the volatility lookback and how far stops and targets sit from entry.
- **Show Drawings and Labels**: one switch for all lines, boxes, and labels.

## Frequently Asked Questions

### Why enter at the 50% retracement instead of the break?
Chasing the MSS bar itself means paying for confirmation at the worst price. The tool treats the midpoint of the sweep-to-MSS leg as the optimal entry zone: far enough back to improve the entry, close enough that the shift remains in force.

### How does this differ from a standalone sweep detector?
A dedicated [Liquidity Sweeps tool](https://www.luxalgo.com/library/indicator/liquidity-sweeps/) maps every raid as it happens; this indicator only acts on sweeps that mature into a momentum-confirmed structure shift, then defines the trade around the retracement. Fewer events, more context per event.

### Is the MSS Sweep Fib Retrace free to run?
Yes. It is available free in the LuxAlgo Library, and you can fire it up in Quant, our coding agent, right here on the page while you tune pivots and momentum requirements. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Market Structure (Breakers)](https://www.luxalgo.com/library/indicator/market-structure-breakers/) (Change of Character): markdown at https://www.luxalgo.com/library/indicator/market-structure-breakers.md
- [Market Structure (Intrabar)](https://www.luxalgo.com/library/indicator/market-structure-intrabar/) (Change of Character): markdown at https://www.luxalgo.com/library/indicator/market-structure-intrabar.md
- [Market Structure Oscillator](https://www.luxalgo.com/library/indicator/market-structure-oscillator/) (Change of Character): markdown at https://www.luxalgo.com/library/indicator/market-structure-oscillator.md
- [Market Structure CHoCH/BOS (Fractal)](https://www.luxalgo.com/library/indicator/market-structure-choch-bos-fractal/) (Change of Character): markdown at https://www.luxalgo.com/library/indicator/market-structure-choch-bos-fractal.md
- [Market Structure & Scatter Dashboard](https://www.luxalgo.com/library/indicator/market-structure-scatter-dashboard/) (Change of Character): markdown at https://www.luxalgo.com/library/indicator/market-structure-scatter-dashboard.md
- [Market Structure Targets Model](https://www.luxalgo.com/library/indicator/market-structure-targets-model/) (Change of Character): markdown at https://www.luxalgo.com/library/indicator/market-structure-targets-model.md
- [Liquidity Sweeps](https://www.luxalgo.com/library/indicator/liquidity-sweeps/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/liquidity-sweeps.md
- [FVG + Liquidity Sweep + CISD](https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd/) (Liquidity Sweep): markdown at https://www.luxalgo.com/library/indicator/fvg-liquidity-sweep-cisd.md

---

Source: https://www.luxalgo.com/library/indicator/mss-sweep-fib-retrace/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
