Skip to content
All library documents

Trading Envelopes with Trend Breakouts and Range Reversals

Article MQL5 articles

Summary

The article explains Envelopes as upper and lower bands placed at a fixed percentage above and below a moving average. It outlines their calculation and describes using the bands differently by market regime: in an uptrend, a move above the upper band is a buy signal; in a downtrend, a move below the lower band is a short signal. In sideways conditions, it proposes buying near the lower band and taking profit near the upper band, or shorting near the upper band and covering near the lower band. It also recommends combining band signals with price patterns or another indicator for confirmation.

The article presents a system blueprint and MQL5 implementation, with chart examples showing signal states such as no signal, short, and take profit. The examples are illustrative rather than a quantified backtest, and the text does not establish that one parameter set or strategy works across instruments or market regimes. Band width depends on the selected percentage and moving-average settings, so the approach requires choices suited to the price behavior and timeframe being studied.

Key ideas

  • Envelopes are fixed-percentage bands around a moving average.
  • An upper-band break is proposed as a buy signal during an uptrend, while a lower-band break is a short signal during a downtrend.
  • For sideways markets, the article describes trading reversals between the lower and upper bands.
  • Band width affects how frequently price reaches or crosses the bands.
  • The MQL5 examples illustrate the rules but do not provide quantified performance evidence.

Tags

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