Range Detector Pro ATR
- インディケータ
- バージョン: 1.0
- アクティベーション: 5
ATR-Based Consolidation Zone Indicator with Breakout Markers
Overview
Range Detector Pro is a professional chart indicator designed to identify and visualize market consolidation zones in real time. It uses an ATR-normalized approach to detect price compression, classify range size, and display the active range directly on the chart.
Unlike simple rectangle overlays, this indicator continuously manages the detected zone as price evolves, making it suitable for traders who want a clear and structured view of consolidation phases, breakout behavior, and range expansion.
The indicator also outputs structured buffer values, which makes it suitable not only for discretionary analysis, but also for algorithmic integration with Expert Advisors.
Key Features
1. ATR-Normalized Range Detection
The indicator measures consolidation using ATR as a volatility reference, helping it adapt to changing market conditions rather than relying on fixed-point thresholds.
2. Minimum Bar Consolidation Filter
A range is only recognized when price remains compressed over a defined number of bars, reducing noise and improving signal quality.
3. Dynamic Range Classification
Detected zones are categorized into three size levels:
- Small
- Medium
- Large
This allows traders to quickly distinguish between tight accumulations and broader consolidation structures.
4. Live Range Visualization
The indicator draws a rectangular consolidation box directly on the chart, with optional:
- Midline display
- Range label display
- Breakout marker arrows
5. Breakout Detection
When price closes beyond the active range by a volatility-based buffer, the indicator finalizes the zone and marks the breakout direction on the chart.
6. EA-Friendly Output Buffers
The indicator provides five output buffers:
- InRange status
- Range size class
- Range top
- Range bottom
- Range midpoint
These buffers make it easy for EAs to read the current market structure programmatically.
7. Clean and Configurable Chart Presentation
Users can customize:
- Range size thresholds
- Visibility of small / medium / large ranges
- Midline display
- Label display
- Breakout marker display
- Colors and transparency levels
How It Works
The indicator scans the market for periods where price remains within a limited height relative to ATR. When a valid consolidation structure is found, it creates a live range box and tracks it forward bar by bar.
While the range remains intact, the indicator updates the boundaries dynamically. If price breaks above or below the zone by the defined breakout buffer, the range is closed and the breakout is marked on the chart.
This design helps traders identify:
- consolidation accumulation
- pre-breakout compression
- range expansion
- structural breakout events
Main Parameters
Detection
-
Min Consolidation Bars
Sets the minimum number of bars required before a zone can be recognized. -
Reference ATR Length
Defines the ATR period used as the volatility baseline. -
Max Range Height
Sets the maximum allowed zone height in ATR multiples. -
Breakout Buffer
Adds a volatility-based buffer before confirming breakout.
Size Thresholds
- Small Threshold
- Medium Threshold
- Show or hide each range category individually
Visual Options
- Show Midline
- Show Labels
- Show Breakout Markers
Colors
Separate colors are available for:
- Small ranges
- Medium ranges
- Large ranges
- Breakout markers
Transparency settings are also included for box fill, border, midline, and labels.
Suitable For
This indicator is suitable for traders who focus on:
- consolidation breakout strategies
- accumulation and distribution analysis
- range trading
- market structure reading
- volatility compression setups
- EA-based strategy development
It can be used across multiple symbols and timeframes, depending on your trading style and market behavior.
Advantages
- Adapts to volatility using ATR
- Filters out weak and short-lived consolidations
- Provides clear visual structure
- Supports breakout confirmation logic
- Offers machine-readable buffers for EA integration
- Lightweight and practical for chart analysis
- Designed with professional and stable market behavior in mind
Buffer Output for EA Integration
The indicator exposes the following buffer values:
-
Buffer 0: InRange
1 = inside active range, 0 = not in range -
Buffer 1: RangeSize
1 = Small, 2 = Medium, 3 = Large -
Buffer 2: RangeTop
Upper boundary of the active range -
Buffer 3: RangeBot
Lower boundary of the active range -
Buffer 4: RangeMid
Midpoint of the active range
This makes the indicator highly suitable for automated systems that need to detect compression zones or breakout conditions.
Recommended Usage
Range Detector Pro is best used as part of a broader trading framework. It can help you:
- locate pre-breakout market structures
- confirm consolidation before entry planning
- avoid chasing impulsive price movement
- align breakout strategies with structured zones
- integrate range detection into automated trading systems
For best results, use it in combination with your own risk management rules and trade confirmation logic.
Important Notes
- Market conditions vary, and no indicator can predict future price movement with certainty.
- Consolidation zones and breakout markers are analytical tools, not trade signals by themselves.
- Historical performance does not guarantee future results.
- Always test the indicator on demo accounts before using it in live trading.
