Skip to content
All library documents

Stochastic Overlay Candle Coloring Modes

Article MQL5 code base

Summary

This document explains an indicator that colors price candles according to selected Stochastic oscillator comparisons. Users can choose among four modes: compare the main and signal lines, compare the oscillator with level 50, compare current and previous main-line values, or compare the main line with overbought and oversold thresholds. The indicator also exposes parameters for the oscillator periods, slowing, price field, calculation method, and threshold levels.

In each mode, the comparison assigns green shades to bullish conditions and red shades to bearish conditions, with lighter shades used for candles moving against the indicated condition. Candles that meet neither stated condition are gray. The document describes the mapping rules and refers to example charts, but supplies no performance tests or evidence that the colors predict returns. It is therefore a chart visualization aid whose usefulness depends on the user's interpretation and separate evaluation of the signals.

Key ideas

  • The overlay colors candles based on a selected comparison involving the Stochastic oscillator.
  • The four comparison modes use line cross relationships, the midpoint, recent oscillator direction, or overbought and oversold levels.
  • Bullish and bearish candle bodies receive different shades based on the comparison result.
  • The description provides visualization rules but no evidence of predictive performance.

Tags

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