All indicators

Market Structure Trailing Stop

By LuxAlgoApr 17, 2023

Static chart image

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.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.