Adaptive Swing Density Heat Map 2
- Göstergeler
- Sürüm: 1.0
- Etkinleştirmeler: 5
Adaptive Swing Density Heat Map
MT4 Structural Density Indicator — Swing Clustering, Participation Tracking, Acceptance vs Rejection & Color-Coded Heat Map
Adaptive Swing Density Heat Map analyzes swing point density across price levels, then tracks how price actually interacts with each zone — measuring participation, acceptance, and rejection.
The result is a heat map of structural zones, color-coded by density strength. Not all support and resistance levels are equal — this indicator quantifies the difference.
MT4 Native • No Repainting • Adaptive to Volatility • Fully Customizable
The Idea in One Line
See where price clusters. See where price fights.
What the Indicator Does
Adaptive Swing Density Heat Map answers one core question:
Where have swings repeatedly clustered — and is price accepting or rejecting those levels right now?
The indicator detects swing points using a fractal algorithm, clusters them by ATR-based price proximity, and assigns each cluster a density score from 0 to 100%. It then tracks how price interacts with each zone over a configurable behavior window — separating genuine structural levels from weak ones.
Zones are color-coded by density strength:
-
Red zones = Highest density (80–100%) — levels where price has repeatedly turned
-
Orange zones = High density (60–80%) — significant structural levels with active interest
-
Yellow zones = Moderate density (40–60%) — areas of some interest but less conviction
-
Blue zones = Low density (below 40%) — weak structural levels, best ignored
A level where many swings have clustered indicates genuine market attention. A level with only one or two touches is statistically less significant. This indicator quantifies that difference.
Core Logic and Calculation
The indicator begins by detecting swing points using a fractal algorithm. Each swing point represents a structural high or low where price reversed direction — these points are the foundation of all subsequent analysis.
Swings are then clustered by price proximity using an ATR-based radius. This radius adapts to market volatility, ensuring clusters are meaningful in both quiet and volatile conditions. Clusters that are too wide are rejected, as they represent broad ranges rather than specific levels.
Density is normalized by comparing each cluster to the top clusters in the current analysis window. This creates a 0 to 100 percent scale that remains consistent across different market conditions. A zone with 80 percent density has significantly more swing clustering than the reference zone, indicating strong structural importance.
Participation analysis measures how often price candles touch each zone. This is distinct from density — a zone may have many swings (high density) but rarely be visited (low participation). Such zones are less actionable.
Acceptance and rejection analysis distinguishes support from resistance. When price closes inside a zone, it indicates acceptance and suggests the zone is acting as support. When price leaves long wicks without closing inside, it indicates rejection and suggests the zone is acting as resistance.
A smoothing mechanism stabilizes the density reference across bars, preventing zone colors from flickering due to normal variations in which zones qualify as the strongest. This makes the indicator visually reliable and easier to interpret.
Key Strengths
Swing Density Analysis
Clusters swing points by price proximity using an ATR-based radius that adapts to volatility. The more swings at a level, the higher the density score — directly indicating structural significance.
Participation Tracking
Measures how often candles touch each zone as a percentage. A zone with high density but low participation is less actionable than one with high participation.
Acceptance vs Rejection
Tracks closes inside the zone as acceptance and wick rejections as rejection. This distinguishes support levels from resistance levels based on actual price behavior.
Adaptive Smoothing
Density reference is smoothed across bars to prevent color flickering, making the visual output stable and reliable.
Color-Coded Heat Map
Uses a Red to Blue intensity scale for instant visual interpretation of zone strength.
Fully Customizable
Swing strength, lookback, clustering radius, zone filtering, and behavior lookback are all adjustable.
Anchor Zones to Formation
Zones remain fixed to their structural formation period, preserving the context of their origin.
No Repainting
All calculations are based on historical data and do not change on the current bar, ensuring consistency for backtesting.
What You See on the Chart
-
Red zones represent the highest density levels, indicating the strongest structural interest
-
Orange zones represent high density levels with significant swing clustering
-
Yellow zones represent moderate density levels with some market attention
-
Blue zones represent low density levels where structural interest is minimal
-
Semi-transparent halo extends above and below each zone for rejection detection
-
Data labels show Density %, Participation %, Acceptance %, and Rejection %
-
Swing high and low arrows can be toggled on or off
-
Zones auto-clean and redraw automatically on each new bar
How It Works
-
Detects swing points using configurable strength and lookback limits.
-
Clusters swings by price proximity using an ATR-based radius that adapts to volatility.
-
Filters clusters by compactness — rejecting zones that are too wide.
-
Assigns density scores normalized from 0 to 100 percent.
-
Analyzes price behavior around each zone to measure participation, acceptance, and rejection.
-
Draws a color-coded heat map with data labels and halo extensions.
Parameter Architecture
Swing Detection
Swing Strength — bars to check for local extrema (higher = fewer swings) · Lookback Bars — how far back to detect swings
Clustering
ATR Period — for adaptive radius calculation · Cluster ATR Radius — how close swings must be to cluster · Max Cluster Height ATR — rejects zones wider than this · Zone Extension ATR — halo size for rejection detection
Zone Filtering
Minimum Swings In Zone — minimum cluster size · Minimum Density Percent — only show zones above this · Normalization Top Zones — reference for density scaling · Max Zones — maximum zones displayed · Reference Smoothing — prevents color flickering (0 = frozen, 1 = no smoothing)
Behavior Analysis
Behavior Lookback Bars — period for participation analysis
Visual
Extend Right Bars — zone projection forward · Zone Opacity — transparency of core (0–255) · Halo Opacity — transparency of halo (0–255) · Show Swing Highs / Lows — toggle arrows · Anchor Zones To Formation — zones remain fixed to structure
Practical Usage Guide
The primary use of this indicator is to identify genuine structural levels for entries, exits, and stop placement. Red zones are your strongest levels — they represent price levels where swings have repeatedly clustered, indicating strong market attention. These zones are the most reliable for support and resistance decisions.
To interpret a zone, examine the four metrics displayed in the label:
-
Density tells you how strong the zone is relative to others.
-
Participation tells you whether price actually visits the zone.
-
Acceptance tells you if price closes inside — meaning the zone acts as support.
-
Rejection tells you if price leaves long wicks — meaning the zone acts as resistance.
A high density zone with high acceptance (above 50%) is a strong support level. Price tends to hold above this zone, making it suitable for buy entries and stop placement below.
A high density zone with high rejection (above 50%) is a strong resistance level. Price tends to reverse at this zone, making it suitable for sell entries and stop placement above.
A zone with high density but low participation (below 20%) may be less reliable. The market has shown interest through swing clustering but has not recently interacted with the level. Consider waiting for a touch and reaction before trading.
A zone with low density but high participation may be a temporary area of interest rather than a structural level.
For the most reliable trades, combine high density with high participation. These are zones where price has historically fought. When price returns to a high density zone, watch for acceptance or rejection to confirm the direction. Entry can be made on rejection candles or close confirmations.
Recommended Workflow
-
Attach the indicator to your chart with default settings.
-
Identify the highest density zones, shown in red and orange.
-
Check participation, acceptance, and rejection metrics for each zone.
-
Use acceptance zones as support and rejection zones as resistance.
-
Confirm with price action, such as candlestick patterns, before entering trades.
Practical Use Cases
-
Identify high-density structural zones where the strongest levels are located
-
Distinguish acceptance zones that act as support from rejection zones that act as resistance
-
Avoid low-density, low-participation areas that are unlikely to hold
-
Find structural clusters for entry and exit placement with higher probability
-
Use as confluence with trend indicators or order flow analysis
Technical Notes
-
Overlay indicator that draws directly on the price chart
-
Works on any timeframe and symbol
-
Adaptive to volatility via ATR-based radius calculations
-
No repainting — all calculations are historical and do not change on the current bar
-
Optimized for performance with once-per-bar recalculation and configurable lookback limits
-
Compatible with MetaTrader 4
Support
Lifetime updates included. For assistance, click Developer's Profile below.
Adaptive Swing Density Heat Map — MT4 Structural Density Indicator | Swing Density Heat Map | Swing Clustering Indicator | Participation Tracking | Acceptance Rejection Analysis | Support Resistance Heat Map | ATR Adaptive Zones | Structural Levels MT4 | High Density Zones | No Repaint Heat Map | Market Structure Indicator | Swing Point Analysis | Price Cluster Indicator | MT4 Heat Map Indicator | Order Flow Alternative | Institutional Levels Indicator
