ATR Signals for Volatility Breakouts and Risk-Based Position Sizing
Summary
The article presents ways to use Average True Range (ATR) in an MQL5 Expert Advisor. One signal looks for ATR and price to rise or fall across successive bars, treating aligned increases in range and direction as a volatility breakout. Another approach uses ATR thresholds to filter price moves and discusses choosing shorter or longer ATR periods for faster or slower trading. The article also describes using ATR-related stop distances in a custom money-management class to size positions by risk, while capping lots to reduce excessive exposure when the stop is very close.
Evidence is limited to selected optimization and testing reports described by the author, including an example using EUR/USD hourly data for a stated year. The author says several proposed ATR ideas were not coded or tested, and recommends broader testing across symbols and histories. The article also warns that combined pattern optimization can overfit and that stop-based sizing may produce oversized lots when stop distances are small. These examples are implementation ideas, not evidence of generally profitable signals.
Key ideas
- ATR measures price range volatility and can be used to identify periods of expanding movement.
- One example signal requires ATR and closing prices to move consistently in the same direction across several bars.
- ATR thresholds can help filter breakouts, although the article’s implemented approach differs from the illustrative threshold method.
- Stop distance can inform risk-based position sizing, but very small stop gaps can produce excessive lots.
- The reported optimization examples are limited, and the author calls for broader testing and cautions about curve fitting.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.