/// Indicator

Market Structure
Levels.

Dynamic support and resistance levels that automatically adapt to market volatility and price action, providing a structured grid for trading.

Support Resistance Volatility Dynamic Levels Market Structure
TradingView v1.0.0 Updated 2026-02-20
/// Introduction

Overview

The Problem

Static support and resistance levels quickly become obsolete as market conditions change. Drawing them manually is subjective and time-consuming. Fixed-distance bands don't account for expanding or contracting volatility.

The Solution

Market Structure Levels uses an advanced algorithm to generate a dynamic grid of support and resistance zones. It automatically adjusts the distance between levels based on current volatility (ATR) and price action, ensuring the levels remain relevant in any market regime.

Who It's For

Reversal traders, range traders, and anyone needing objective, dynamic support and resistance zones.

/// Features

Key Features

Dynamic Level Generation: Automatically calculates support and resistance levels based on a central moving average and ATR.

Dynamic Spacing: Intelligently adjusts the distance between levels as volatility expands or contracts.

Smart Tracking: Tracks price movement to keep the most relevant levels in focus.

Multiple MA Types: Choose from 8 different moving average algorithms (including KAMA, HMA, and EMA) for the base level.

Smart Display Strategies: 'Mild' or 'Aggressive' modes to hide irrelevant far-side levels and keep your chart clean.

/// Concepts

How It Works

1

Base Level Calculation

The indicator starts by calculating a central baseline using your chosen Moving Average type and length. This acts as the 'fair value' or center of gravity for the market.

2

Volatility-Based Spacing

It uses the Average True Range (ATR) to determine the initial distance between levels. This ensures the grid expands during high volatility and contracts during low volatility.

3

Dynamic Adjustment

The indicator continuously monitors price action. If price moves too far or too fast, it recalculates the step size to ensure the levels remain relevant and properly spaced.

/// Playbook

How To Use

Quickstart

  1. Add Market Structure Levels to your chart.
  2. Select your preferred MA Type and Length for the base level.
  3. Adjust the 'Band Height Factor' to set the width of each individual level zone.
  4. Use the 'Levels Distance Factor' to control how far apart the different levels are from each other.
  5. Choose a Display Strategy ('Mild' or 'Aggressive') to keep your chart uncluttered.

Interpretation

  • Base Level: Acts as the primary trend filter. Price above is generally bullish, below is bearish.
  • Inner Levels (1-2): Often act as first targets or minor support/resistance in a trending market.
  • Outer Levels (3-5): Represent extreme deviations from the mean. Good areas to look for mean-reversion or exhaustion setups.
  • Level Channels: The filled areas between the lines act as zones of support/resistance, rather than exact price points.
/// Reference

Visual Legend

Element Meaning Interpretation Common Mistake
Base Line The central moving average. Determines the overall market bias. Ignoring the slope of the base line when taking trades at the outer levels.
Level Lines Dynamic support and resistance boundaries. Potential areas for price reactions or reversals. Placing stops exactly on the lines; use the zones instead.
Filled Channels Support/Resistance zones. Areas where price is likely to consolidate or reverse. Assuming price will always reverse at the first zone it touches.
/// Configuration

Settings Reference

Main

MA Type
The moving average algorithm used for the base level (SMA, EMA, RMA, WMA, HMA, EHMA, THMA, KAMA).
Length
The lookback period for the base moving average.
Band Height Factor
Multiplier for the ATR to determine the width of each level's channel.

Advanced: Levels Distance

Levels Distance Factor
Controls the spacing between the different levels. Higher values spread the levels further apart.

Advanced: KAMA

Fast Period
Number of periods for the fast smoothing constant. Only used when MA Type is KAMA.
Slow Period
Number of periods for the slow smoothing constant. Only used when MA Type is KAMA.

Advanced: Display

Show Inner Levels (1-2)
Toggle visibility of the levels closest to the base line.
Show Outer Levels (3-5)
Toggle visibility of the levels furthest from the base line.
Display Strategy
Mild: hide far-side levels gradually. Aggressive: only show levels immediately surrounding the current price.

Style

Theme
Dark/Light: preset colors for dark/light chart backgrounds. Custom: use the color pickers below.
Center Line Color
Color of the base moving average line.
Band Fill Color
Color of the inner level channels.
Outer Line Color
Color of the outer level lines.
Outer Band Fill Color
Color of the outer level channels.
Highlight Base Level
Emphasize the base level channel.
Base Highlight Factor
Transparency factor for the base level highlight.
/// Alerts

Alert Types

Level Midline Crossed

Triggered when price crosses any of the level midlines.

Entered Level Channel

Triggered when price enters any of the level channels.

Levels Adjusted

Triggered when the indicator recalculates and adjusts the level spacing.

Crossed Above Base

Triggered when price crosses above the base moving average.

Crossed Below Base

Triggered when price crosses below the base moving average.

/// FAQ

Frequently Asked Questions

This is the dynamic spacing at work. When volatility changes significantly or price moves outside the expected range, the indicator recalculates the optimal spacing to keep the levels relevant.

Mild gradually hides levels that are far away on the opposite side of the price action. Aggressive strictly limits visibility to only the 1 or 2 levels immediately surrounding the current price, keeping the chart very clean.

No, Market Structure Levels does not repaint historical data.

Connect With Us

Join our community of traders and stay updated with our latest tools and market insights.