Skip to content
All library documents

Designing MQL5 Infrastructure for Envelopes Trend-Bounce Scalping

Article MQL5 articles

Summary

This installment lays the software foundation for an MQL5 Expert Advisor based on Envelopes trend-bounce scalping. The described signal concept buys when price reaches the lower Envelopes band during an uptrend and sells at the upper band during a downtrend, with a longer-term EMA or RSI proposed as a trend filter. The bands are formed around a moving average using a selected deviation. The article outlines modular indicator and signal handling alongside order configuration, market data helpers, account information, and error reporting.

The installment mainly covers infrastructure and initialization, with trade execution and dynamic management deferred to a later part. It says the setup is intended for trending conditions and recognizes false signals in ranging markets, but offers no quantitative performance results in the excerpt. A backtest visualization is mentioned as evidence that initialization works; it does not demonstrate strategy profitability or robustness. The claimed scalping use also makes signal validation and risk controls important considerations for further testing.

Key ideas

  • The strategy concept looks for a lower-band bounce in an uptrend and an upper-band bounce in a downtrend.
  • An EMA or RSI can serve as a trend filter for Envelopes interactions.
  • The installment builds indicator, order, market-data, and error-handling infrastructure in MQL5.
  • Signal confirmation and limits on trade frequency are proposed to help control false entries.
  • The described backtest concerns initialization and does not establish trading performance.

Tags

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