All indicators

Dynamic Structure Indicator

Aug 18, 2017

Static chart image
Support and ResistancePivot Based (Retrospective)Volatility

The Dynamic Structure Indicator tool maps potential support and resistance zones across any market by identifying significant swing highs and lows and visualizing the area between price wicks and candle bodies.

Usage

The Dynamic Structure Indicator is used to automate the identification of market structure. It monitors price action to find "fractal" swing points and draws zones that persist until price violates them.

  • Support & Resistance Mapping: The indicator identifies a swing point and draws a zone from the highest/lowest wick to the highest/lowest candle close of that pivot.
  • Zone Validation: Not every swing point creates a zone. The script requires price to move a specific distance away from the pivot (defined by ATR) before the zone is confirmed and plotted.
  • S/R Flipping: When a resistance zone is broken, the script can retain that level as a "previous structure" zone, acting as potential new support (and vice versa). This is helpful for traders looking for "retest" entries.
  • Dynamic Updating: On lower timeframes (1-hour and below), it is recommended to increase the High/Low Lookback to ensure the zones reflect significant structural shifts rather than minor noise.

Details

The script operates by looking back a user-defined number of candles to find local extrema. Once a potential pivot is found, the script waits for a "significant movement" to confirm the level. This significance is calculated using the Average True Range (ATR); if price fails to trend away from the pivot by the required ATR multiplier, the zone is not validated.

To maintain chart clarity, the indicator includes a "Max Zone Size" filter. If the distance between the wick and the body of a pivot is excessively large relative to current volatility (ATR), the zone is ignored to prevent "gaps" or unrealistic levels from cluttering the interface. Additionally, a reset counter ensures that if market structure becomes stagnant, old zones are eventually cleared to make way for new data.

Settings

  • ATR Movement Required: The minimum distance price must travel away from a pivot (measured in ATR) to validate a zone.
  • High/Low Lookback: The number of bars used to determine if a high or low is a significant swing point.
  • Max Zone Size (Compared to ATR): A filter that invalidates zones if the vertical width (wick to body) exceeds this multiplier of the current ATR.
  • Zone Update Count Before Reset: Determines how many times a primary zone can be updated before the secondary "previous structure" zone is cleared.
  • Draw Previous Structure: Toggles the visibility of "support-turned-resistance" and "resistance-turned-support" zones.

FAQ

How do I adjust the indicator for different assets? Adjust the "Max Zone Size" and "ATR Movement Required" settings. Since different instruments have varying volatility, these settings allow you to filter out zones that are too large or insignificant for your specific market.

What do the different colors represent? Green zones typically represent support or areas where price has previously bounced, while red zones represent resistance. Lighter, secondary zones represent "flipped" structure (previous support now acting as resistance, or vice versa).

How can I access the Dynamic Structure 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.