Skip to content
All library documents

Moving Average Levels and Stochastic Signals for Automated Entries

Article MQL5 code base

Summary

This document outlines an Expert Advisor strategy that combines custom moving-average levels with a custom stochastic indicator. It evaluates signals when a new bar appears. A sell condition occurs when the prior close is below the lower moving-average level and either stochastic line is below a configured lower threshold. A buy condition occurs when the prior close is above the upper level and either stochastic line is above an upper threshold. An option reverses the direction of these signals.

The EA can add multiple positions in the same direction and can close positions through stop loss, take profit, or an opposite signal. These details describe configurable mechanics, but the document supplies no threshold values, parameter-selection method, market, backtest, or performance evidence. The indicator definitions are custom, so the signals cannot be fully assessed from this description alone. Averaging into positions may also change exposure as trades accumulate; no position sizing or risk limits are specified.

Key ideas

  • The EA checks its indicator conditions only when a new bar appears.
  • It signals entries using the prior close relative to custom upper and lower moving-average levels.
  • The stochastic main or signal line must also cross a configured threshold for an entry.
  • A reverse option swaps buy and sell directions, and exits use stops, targets, or opposite signals.
  • The description gives no tested parameters, performance evidence, or exposure controls.

Tags

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