Skip to content
All library documents

Bollinger Band and Donchian Channel Breakout Rules with R-Squared

Article MQL5 code base

Summary

The document describes an Expert Advisor that combines Bollinger Bands with the Donchian Channel. A sell setup requires a falling Donchian Channel, an open above the Bollinger upper band, and a close below it. A buy setup requires a rising channel, an open below the lower band, and a close above it. Positions are closed at a stop or take-profit level, or when the Donchian Channel is broken. The code also includes an R-squared calculation, but the text does not explain how that statistic affects trading decisions.

A EURUSD test period is mentioned, but the document supplies no results, settings, benchmark, or risk statistics. It therefore describes entry and exit conditions without demonstrating their profitability or robustness. The rules and the role of R-squared would need to be clarified and independently tested before drawing conclusions about their use.

Key ideas

  • The strategy combines Bollinger Bands with Donchian Channel direction.
  • A sell setup uses a falling channel and a move from above the upper band to below it.
  • A buy setup uses a rising channel and a move from below the lower band to above it.
  • Positions exit at stop or take-profit levels, or when the Donchian Channel is broken.
  • Although the code calculates R-squared, the description does not state how it informs trades or report test outcomes.

Tags

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