Skip to content
All library documents

Building a Session Range Breakout System with ATR Volatility Filters

Article MQL5 articles

Summary

The document presents an MQL5 Expert Advisor design that tracks a daily trading-session range and evaluates breakouts using ATR-based volatility thresholds. The stated motivation is to filter brief moves beyond range boundaries that may reverse in low-volatility or noisy conditions. Users configure the range schedule, ATR period and multiplier, trade risk, range-based stop and target multipliers, and optional breakeven and trailing-stop rules.

The EA maintains session highs and lows, records whether either boundary has triggered, and uses ATR to calculate volatility stops alongside position sizing and trade management. It also plots session and volatility references on the chart. The article says testing covered a roughly two-month period on the one-hour timeframe, but the provided text gives no settings table, performance figures, instrument details, or comparison against an unfiltered breakout. Consequently, the claimed improvement in avoiding false signals is a design rationale rather than demonstrated evidence in the excerpt.

Key ideas

  • The system defines a daily range from configurable session start, duration, and close times.
  • A breakout must pass both a range-boundary condition and an ATR-based volatility threshold.
  • Stop losses and take profits can be scaled to the range, with optional breakeven and trailing-stop management.
  • The article mentions a short one-hour backtest but supplies no performance results in the provided text.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.