Skip to content
All library documents

Using Bollinger Band Width to Identify Flat Markets with Stochastic

Article MQL5 code base

Summary

This indicator combines a Stochastic Oscillator with Bollinger Band width to flag flat market conditions. It treats a narrowing Bollinger range as evidence of a flat state, with the band’s half-width compared against a configurable threshold. During the identified state, the Stochastic and signal lines are described as converging around values of 45 and 55. The threshold is set in points, so its interpretation depends on the instrument and price scale.

The document gives a conceptual description and the name of an input parameter, but no entry or exit rules, performance results, parameter testing, or guidance on how to use the indicator outside the stated flat-market condition. It says the indicator was first implemented in MQL4 and published in 2014. Traders would need to validate the threshold and behavior on their own market and timeframe before relying on it; the note does not establish that band contraction reliably predicts a later move or improves trading outcomes.

Key ideas

  • The indicator uses Bollinger Band narrowing as a criterion for identifying flat market conditions.
  • During the detected state, the Stochastic and signal lines are described as tightening near 45 and 55.
  • A configurable threshold, expressed in points, determines how much band contraction qualifies as flat.
  • The description provides no performance evidence or complete trading rules.

Tags

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