Skip to content
All library documents

Using a Stochastic Oscillator on a Moving Average to Signal Trends

Article MQL5 code base

Summary

STOCH in MA is an indicator that applies stochastic calculations to a moving average, with the stated purpose of helping identify a currency pair’s trend. Its configurable inputs include the moving average period and method, stochastic K and D periods, a slowing value, a price field, and upper and lower signal levels. A reverse-signals option can invert the indicator’s uptrend and downtrend signals, while a bar-count setting controls how much history is displayed.

The document describes the indicator’s components and settings but does not specify exact entry or exit rules, explain how the signal levels should be interpreted, or provide charts, testing, or performance evidence. Traders would need to determine how to use the resulting signals and assess them across instruments and market conditions. The description is therefore useful as a compact overview of the indicator’s design and configurable parameters, rather than as a complete trading strategy.

Key ideas

  • The indicator applies stochastic calculations to a moving average to represent a pair’s trend.
  • Its settings include moving average and stochastic periods, smoothing, price inputs, and signal thresholds.
  • A reverse-signals option can invert the indicated uptrend and downtrend signals.
  • The description gives no explicit trading rules or performance evidence.

Tags

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