All indicators

MSS Sweep Fib Retrace

By LuxAlgoJul 9, 2026

Static chart image
SignalsFibonacciLiquidity

The MSS Sweep Fib Retrace indicator identifies liquidity sweep events and Market Structure Shifts to provide high probability entry signals based on Fibonacci retracement levels. By combining institutional liquidity concepts with momentum filtering and automated trade management, this tool helps traders time reversals and continuation entries effectively.

# Usage The MSS Sweep Fib Retrace indicator is designed to automate the process of identifying market structure shifts following liquidity sweeps. Traders should look for the visual labels indicating a "Sweep" of previous swing levels, followed by a "MSS" (Market Structure Shift) signal confirming a change in trend.

### Entry and Setup Once the indicator confirms a sweep and a subsequent MSS with sufficient momentum, it calculates a 50% Fibonacci retracement level based on the sweep leg. This level serves as the primary area of interest for entries. When the price retraces to this 50% zone, the indicator automatically plots entry labels and defines potential Stop Loss and Take Profit areas based on volatility.

### Trend Alignment The tool incorporates an optional Macro Trend filter. When enabled, the indicator will only highlight potential setups that align with the long term trend, as determined by a 200 period EMA. This prevents traders from taking counter trend entries unless they specifically disable the filter to trade against the primary trend.

# Details This script is built on the foundation of institutional price action concepts. It tracks swing highs and swing lows using custom pivot settings. The execution logic follows a three step verification process:

  1. Liquidity Sweep: The indicator detects when the price takes out a previous swing high or low while failing to maintain that direction, effectively sweeping liquidity.
  2. Market Structure Shift (MSS): After a sweep, the indicator monitors for a breakout of the previous structural pivot point. This must be accompanied by a minimum number of consecutive momentum candles, defined by the user, to ensure the shift is not a false move.
  3. Fibonacci Retracement: Upon confirmation of the MSS, the script measures the range from the sweep extreme to the MSS point. It then projects a 50% retracement level, which acts as the optimal entry zone for the trade.

# Settings

### Pivot Settings

  • Pivot Left Bars: Defines the number of bars to the left of a pivot point.
  • Pivot Right Bars: Defines the number of bars to the right of a pivot point.

### Setup Logic

  • Required Momentum Candles for MSS: Sets the number of consecutive bullish or bearish candles required to confirm the Market Structure Shift.

### Trend Filter

  • Use Overall Macro Trend Filter: Toggles the EMA trend filter on or off.
  • Macro Trend EMA Period: Sets the length for the exponential moving average used to determine the long term trend.

### Trade Management

  • ATR Period: Defines the lookback period for Average True Range calculations.
  • Stop Loss ATR Multiplier: Determines the distance of the stop loss from the entry price based on the ATR.
  • Take Profit ATR Multiplier: Determines the distance of the take profit from the entry price based on the ATR.

### Visuals

  • Show Drawings and Labels: Toggles the visibility of lines, boxes, and labels on the chart.

# FAQ ### How do I access the MSS Sweep Fib Retrace 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.