Market Structure Trailing Stop

Apr 17, 2023

Static chart image
Price Action Based
Dynamic Overlays
Works on the following platforms:
tradingviewSymbolTradingView
For free use on the TradingView platform
ninjatraderNinjaTrader
For free use on the NinjaTrader platform
metatrader4MetaTrader 4
For free use on the MetaTrader 4 platform
metatrader5MetaTrader 5
For free use on the MetaTrader 5 platform
thinkorswimThinkorswim
For free use on the Thinkorswim platform

This innovative indicator script provides traders with a dynamic approach to manage their trades using trailing stops that adapt based on market structure changes, such as Change of Character (CHoCH) and Break of Structure (BOS) labeling. The indicator automatically adjusts the trailing stops according to pivot-detected swing points, offering customizable convergence speeds through the Increment Factor. Traders have the flexibility to reset trailing stops based on different market structures, enhancing both their risk management and profit potential.

Optimizing Your Trading with Dynamic Trailing Stops

The setting options allow you to tailor the indicator to your trading strategy:

  • Pivot Lookback: Defines the length for detecting swing points crucial for trailing stop adjustment.
  • Increment Factor %: This parameter dictates the speed at which the trailing stops converge towards the current price; reduced values mean a slower pace.
  • Reset Stop On: A choice for resetting trailing stops upon CHoCH only, or both CHoCH and BOS occurrences.
  • Show Structure: Decide whether to display market structure labels on your charting platform.

How to Trade with Dynamic Trailing Stops?

Indicator image

The primary advantage of using trailing stops is the mitigation of potential losses while securing profits when the trade moves favorably. As the market structure shifts, the indicator ensures your stops evolve with the price dynamics.

Indicator image

Leverage this indicator if you rely on market structure for trade entries. Trailing stops based on these structures can act as secondary exit indicators or support/resistance levels, sharpening your strategic edge.

Indicator image

To minimize premature stop executions, adjust the Increment Factor % to a lower setting, reducing the sensitivity of stop convergence.

Indicator image

Additionally, configuring the reset on any market structure—a choice between all detections or solely CHoCH—provides flexibility in stop placement. CHoCH-labelled lines are dashed, while BOS labels maintain a dotted appearance, ensuring clarity in structural distinction.

Understanding the Indicator Mechanics

Indicator image

Upon the indication of new market structures (or only CHoCH, as per user selection), the stops reset to align with prior trend highs/lows. For uptrends, stops rise in accord with increasing max points;

trailing stop = trailing stop + Increment Factor % of (trailing maximum - previous trailing maximum)

In downtrends, stops adjust downward when min points decrease:

trailing stop = trailing stop + Increment Factor % of (trailing minimum - previous trailing minimum)

FAQ

How can I access this trading indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What are the benefits of using trailing stops based on market structure? By utilizing real-time pivot and structure detection, the indicator provides a smart way to dynamically secure profits and shield against losses, all while maintaining alignment with market trends.

Trading is risky and many will lose money in connection with trading 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 markets 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 for charting platforms, 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 or tool we provide.

Charts used on this site are by TradingView in which the majority of our tools 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.

This does not represent our full Disclaimer. Please read our full disclaimer.

© 2025 LuxAlgo Global, LLC.