Skip to content
All library documents

Combining WPR and Bollinger Band Signals with ATR-Based Exits

Article MQL5 code base

Summary

The document describes an Expert Advisor that opens a position only when Williams’ Percent Range and Bollinger Bands produce coincident signals. It uses Bollinger Band width and Average True Range to derive stop-loss and take-profit levels when their corresponding inputs request automatic calculation. Users can instead supply fixed levels or disable either exit setting. The Advisor also has a signal-only mode for displaying labels during visual testing.

The configuration covers indicator periods, WPR overbought and oversold thresholds, Bollinger Band settings, ATR period, trade volume, and order-execution controls. The document says the defaults were optimized for four-hour chart testing and refers to an all-ticks test over the last year, but supplies no performance figures here. The Expert Advisor is limited to hedging accounts. Without the missing results or further risk and robustness analysis, the description explains the rules and controls but does not establish that the strategy is profitable.

Key ideas

  • A position opens only when WPR and Bollinger Band signals coincide.
  • Bollinger Band width can determine the automatic stop-loss distance.
  • ATR can determine the automatic take-profit distance.
  • The Expert Advisor offers a signal-only mode for visual strategy testing.
  • It supports hedging accounts, and the document provides no numerical test results.

Tags

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