Skip to content
All library documents

Stochastic Histogram EA with Two Trend Detection Modes

Article MQL5 code base

Summary

This Expert Advisor uses a Stochastic Histogram indicator and evaluates its signals when a bar closes. A selectable trend mode determines how signals are recognized. One method responds to a crossing between the indicator’s main and signal lines together with a change in cloud color. The alternative detects a histogram shift from neutral gray to pink or lime, which the document associates with the RVI oscillator entering an overbought or oversold zone.

The EA requires a compiled indicator file to be installed in the platform’s indicators folder. A helper trading library is mentioned for handling brokers with nonzero spreads and placing stop loss or take profit when opening positions. The displayed testing setup uses default EA parameters on EURUSD H8 in 2015, but the text gives no numerical performance results. It also states that stop loss and take profit were omitted from those tests, so the described test evidence does not establish risk-adjusted performance or robustness.

Key ideas

  • The EA checks the Stochastic Histogram signals at bar close.
  • One trend mode uses a main-line and signal-line crossover with a cloud color change.
  • The alternate mode uses histogram color changes associated with RVI zone entry.
  • Operation depends on an external compiled indicator, and a helper library supports trade handling.
  • The cited EURUSD H8 test omits stop loss and take profit and provides no numerical results in the document.

Tags

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