ZigZag Support and Resistance Levels
- Indicators
- Version: 2.0
- Updated: 28 August 2026
ZigZag Support and Resistance Levels (v2.0) is an indicator for MetaTrader 5 that identifies support and resistance levels based on ZigZag pivot points, now with an interactive on-chart control panel. It groups nearby levels into zones using a clustering method to help visualize areas where price has reacted multiple times, and distinguishes broken (breakout) levels from active (extension) levels.
Key Features
1. ZigZag Pivot Detection
- Detects swing highs and lows using configurable Depth, Deviation, and Backstep parameters.
2. Support and Resistance Level Detection
- Creates support levels from low pivots and resistance levels from high pivots.
- Levels extend forward and remain active until price breaks through them.
- Broken levels are shown as breakouts, distinct in color from active extension levels, with a configurable maximum breakout count.
3. Cluster Detection and Zone Visualization
- Groups nearby levels into zones based on a configurable ATR-based merge distance.
- Uses ATR to adapt clustering to current market volatility.
- Option to show or hide cluster labels.
4. Interactive Panel & Visualization Controls
- On-chart panel for live toggling of levels, clusters, cluster labels, horizontal lines, and the ZigZag overlay.
- Independent color settings for breakout levels, extension levels, and cluster zones (high/low separately).
- Adjustable label font size.
- Panel settings persist between chart sessions.
Key Benefits
- Provides a structured view of support and resistance based on price pivots.
- Distinguishes broken levels from active ones at a glance.
- Helps visualize areas where price has reacted multiple times.
- Live, on-chart control over what's displayed — no need to reopen settings mid-analysis.
- Self-contained: no separate indicators to install.
Who This Indicator Is For
- Traders who use price action and want a systematic way to identify support and resistance levels.
- Intraday and swing traders who need a clear view of price structure.
- Users who prefer configurable, live-adjustable visualization of market levels and zones.
Input Parameters
| Parameter Group | Parameter | Description |
|---|---|---|
| General | ||
| General | Lookback (Days) | Number of days of history to analyze. |
| ZigZag | ||
| ZigZag | Depth | Number of bars used to detect pivots. |
| ZigZag | Deviation | Minimum price movement required to form a pivot. |
| ZigZag | Backstep | Number of bars used to filter nearby pivots. |
| Cluster | ||
| Cluster | ATR Period | Period used for ATR-based calculations. |
| Cluster | Cluster Merge Distance (ATR) | Maximum distance between levels, in ATR multiples, to form a cluster. |
| Cluster | Max Breakout Count | Maximum number of breakouts tracked per level. |
| Visuals | ||
| Visual | High Breakout SNR Color | Color for broken resistance (high) levels. |
| Visual | Low Breakout SNR Color | Color for broken support (low) levels. |
| Visual | High Extension SNR Color | Color for active resistance (high) levels. |
| Visual | Low Extension SNR Color | Color for active support (low) levels. |
| Visual | High Cluster Color | Color for resistance cluster zones. |
| Visual | Low Cluster Color | Color for support cluster zones. |
| Visual | Font Size | Font size for level and cluster labels. |
| Panel (Live Controls) | ||
| Panel | Show Levels | Show or hide support and resistance levels. |
| Panel | Show Clusters | Show or hide cluster zones. |
| Panel | Show Cluster Labels | Enable or disable cluster labels. |
| Panel | Show Horizontal Lines | Show or hide horizontal cluster lines. |
| Panel | Show ZigZag | Attach or remove the underlying ZigZag overlay from the chart. |
Summary
- ZigZag Support and Resistance Levels v2.0 identifies support and resistance levels using ZigZag pivot data.
- Levels are classified as breakout or extension, and grouped into ATR-based clusters to highlight areas of repeated price interaction.
- An interactive on-chart panel gives live control over every visual element, with settings saved between sessions.
Disclaimer
Trading financial markets involves risk. This indicator does not guarantee any specific outcome and should not be used as the sole basis for trading decisions. It is intended for analytical purposes only.

После обновления индикатор теперь очень плохо работает, верните предыдущую версию