Range Trap Detector
- 指标
- 版本: 1.25
- 更新: 13 十一月 2026
- 激活: 5
Range Trap Detector (RTD) is an advanced technical indicator for the MetaTrader 5 platform, specifically engineered to precisely detect back-and-forth (ranging or sideways) price movements . This indicator goes beyond simply drawing range boxes; it maps back-and-forth cycles, tracks breakouts, and identifies market traps such as False Breakouts in real-time.
It is ideal for various asset classes (Forex, Gold/XAUUSD, Crypto, and Indices) to help you avoid consolidation traps or capture reversal opportunities during fake breakouts.
Key Features
-
Cycle-Based Automatic Detection: Calculates back-and-forth price cycles before officially activating a range zone .
-
Flexible Swing Distance Modes: Supports fixed price distance (USD/points) or dynamic ATR (Average True Range) multipliers that adapt to shifting market volatility .
-
Auto Limits (Volatility Guard): Built-in automatic limits to prevent range boxes from expanding excessively due to momentary volatility spikes .
-
False Breakout Recognition: Automatically highlights instances where price attempts to break out of the range but closes back inside the box (fakeouts), marked with dedicated arrows .
-
Range Lifecycle Management: Monitors the entire lifecycle of a range through Building, Active, Suspended (initial breakout phase), and Broken/Dead (valid breakout) states .
-
Real-Time Interactive Panel: Features an integrated dashboard panel directly on the chart displaying the current range state, box width, tick volume, and candle close countdown .
-
Alerts & Notifications: Includes optional popup alerts and push notifications to immediately warn you when critical range events occur .
How It Works
-
Building Phase: The indicator scans price swing turning points and begins constructing a transparent, dashed-outline range box .
-
Active State: Once the back-and-forth cycles fulfill the minimum criteria, the range box becomes solid and actively monitors subsequent price behavior .
-
Suspended & False Breakout: When price pushes past the range boundaries (wicks piercing through), the state shifts to Suspended. If the candle successfully closes back inside the box, the indicator validates it as a False Breakout and plots a signal arrow .
-
Broken State: If price definitively leaves the range beyond specified tolerance thresholds or timeframes, the range is marked as finished (broken), and the indicator begins scanning for a new setup .
Main Input Parameters
-
InpMoveMode: Swing distance calculation mode (Choices: Fixed Price or ATR Multiple) .
-
InpCycles: Number of back-and-forth cycles required to activate a range (Default: 2) .
-
InpBreakTol: Boundary breakout tolerance before it is deemed valid .
-
InpMaxWidthD: Maximum allowable range box width relative to the swing distance .
-
InpAlerts / InpPush: Toggles for instant push and popup notifications .
Enhance your price action analysis, bypass fake market traps, and trade with structured clarity using the Range Trap Detector!

