Skip to content
All library documents

Bollinger Bands with Configurable Moving Averages and Price Inputs

Article MQL5 code base

Summary

This indicator extends standard Bollinger Bands by allowing the center line to use a selectable moving average and the calculation to use different price fields. The available moving averages are simple, exponential, smoothed, and linear weighted. Price choices include open, high, low, close, median, typical, and weighted close. The band deviation can be entered as a decimal value, allowing finer adjustment than a whole-number setting.

The document describes the indicator’s controls but gives no trading rules, chart examples, performance results, or guidance for choosing a moving average, price input, period, or deviation. It is therefore a flexible indicator specification rather than evidence for a particular trading strategy. Its usefulness depends on how a trader tests and interprets the chosen settings.

Key ideas

  • The indicator generalizes Bollinger Bands by allowing several moving-average methods for its center line.
  • The calculation can use seven standard price inputs, from open or close to median or weighted close.
  • The band deviation accepts a decimal value for finer setting adjustments.
  • The document provides no tested settings or evidence that one configuration outperforms another.

Tags

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