Skip to content
All library documents

Generalized Quantile Bands for Prices and Indicators

Article MQL5 code base

Summary

This document describes a quantile-band indicator that calculates its bands from a single input series rather than combining three prices. Quantiles divide observed values into groups of roughly equal frequency, so the resulting bands can mark distribution-based levels in the selected data. A separate lookback setting can identify high and low values over a chosen period, adding a distinction between the extremes; the author says this option is often unnecessary when its period is set to one or less.

The indicator is described as applicable to other indicators as well as price data, with RSI and Stochastic offered as examples. That flexibility may help show where oscillator readings sit relative to their own distributions. The document provides no formulas, parameter guidance, charts, or performance tests, so it does not establish how the bands should be interpreted as signals or whether they improve trading results.

Key ideas

  • Quantile bands partition a data series according to its value distribution.
  • This version calculates from one input series rather than three prices.
  • A configurable period can be used to find high and low values.
  • The bands can be applied to indicators such as RSI or Stochastic as well as prices.
  • The document gives no performance evidence or trading rules.

Tags

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