Skip to content
All library documents

Displaying a Stochastic Oscillator on the Price Chart

Article MQL5 code base

Summary

The document describes an on-chart presentation of the stochastic oscillator. Because the oscillator has bounded values, it can be mapped onto the price panel using a channel formed from the highest high and lowest low. This places the indicator alongside price rather than in its usual separate pane, while retaining its use as a stochastic indicator.

The described version adds a coloring option that changes color when the stochastic line crosses its signal line, alongside three existing coloring modes. The document mentions a visual comparison with the conventional separate-window display using this crossing-based color mode, but supplies no quantitative evidence, trading rules, or performance results. It does not explain settings or establish whether the on-chart transformation improves interpretation, so users should regard it as a visualization choice rather than a tested strategy.

Key ideas

  • The stochastic oscillator can be mapped onto the price panel using a highest-high and lowest-low channel.
  • The on-chart display is intended to retain the indicator's usual function.
  • An added coloring mode marks crosses between the oscillator and its signal line.
  • The document provides a visual comparison but no evidence of trading performance.

Tags

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