Market Structure Trailing Stop
Aug 29, 2024

The Market Structure Trailing Stop indicator is a comprehensive tool designed to identify market structure shifts, liquidity sweeps, and trend reversals through the integration of volume analysis and pivot-based price action. By evaluating delta volume at key structural points, it provides traders with a dynamic trailing stop to manage trend-following positions effectively.
Usage
The tool serves as an all-in-one market structure dashboard and trade management system. It can be used in several ways:
- Identifying Market Structure Shifts: The indicator detects Change of Character (CHoCH) and Break of Structure (BoS). A CHoCH signals a potential trend reversal, while a BoS suggests trend continuation.
- Volume Validation: Each structural break displays the accumulated delta volume (the difference between buying and selling volume) from the pivot to the breakout point. This helps confirm whether a break has sufficient momentum.
- Dynamic Trailing Stop: When a CHoCH occurs with volume exceeding the user-defined threshold, a trailing stop is plotted. Traders can use this to protect profits. If a subsequent BoS lacks volume support, the trailing stop may disappear, signaling potential trend exhaustion.
- Liquidity Sweep Detection: Marked with an "X" label, these highlight areas where price has briefly moved beyond a key level to sweep liquidity before reversing, providing early warning signs for counter-trend opportunities.
Details
The indicator identifies peaks and valleys (pivots) based on the "Highs & Lows" setting. Market structure shifts are identified when the price closes beyond these established pivot levels.
The Trailing Stop logic is strictly tied to volume. It only activates if the move causing the CHoCH is backed by a delta volume greater than the "Volume Threshold" setting. This ensures that the trailing stop only tracks high-conviction movements. If the trend continues but the volume behind new structure breaks (BoS) becomes negative or falls below the threshold, the script interprets this as a lack of demand/supply and removes the stop.
Settings
- Highs & Lows: Determines the number of bars to the left and right used to identify pivot points.
- Trailing Stop Toggle: Enables or disables the visibility of the trailing stop line.
- Trailing Stop (Length): The lookback period used to calculate the highest high or lowest low for the trailing stop placement.
- Volume Threshold: The minimum delta volume required to activate or maintain the trailing stop.
- BoS: Toggles the display of Break of Structure labels and lines.
- Liquidity Sweep (X): Toggles the display of "X" labels for potential liquidity sweeps.
- Market Trend: When enabled, colors the price candles based on the current detected market trend.
FAQ
How do I access the Market Structure Trailing Stop?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Why does the trailing stop sometimes disappear?
The trailing stop is volume-validated. If a new Break of Structure occurs with low volume or volume that contradicts the trend direction, the indicator removes the stop to signal that the trend may be weakening.
What do the "X" labels represent?
The "X" labels indicate liquidity sweeps. This happens when price moves beyond a structure level but fails to sustain the breakout, often signaling a potential reversal zone.
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.

