Skip to content
All library documents

Overlaying a Stochastic Oscillator with a Moving Average

Article MQL5 code base

Summary

The document describes a chart indicator that displays a Stochastic oscillator alongside a moving average in the main price chart window. It distinguishes the plotted oscillator, its signal line, the moving average, and the channel borders marking the Stochastic levels. The settings let users choose the Stochastic periods and price field, the averaging method and depth, a smoothing parameter, channel deviation, applied price, overbought and oversold levels, and a horizontal bar shift.

This is a configuration and visualization description, not a trading system: it does not specify entry or exit rules, explain how to interpret crossings, or provide performance evidence. The implementation also depends on an external smoothing library, so the indicator is not self-contained. Traders considering it as a signal source would need to define rules and test them independently; the document makes no claims about profitability or robustness.

Key ideas

  • The indicator overlays Stochastic and its signal line with a moving average in the main chart window.
  • Users can configure oscillator periods, smoothing, price input, channel width, and overbought and oversold levels.
  • The description supplies no trading rules or performance results.
  • The indicator requires a separate smoothing library to run.

Tags

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