Skip to content
All library documents

SerialMA Signal Rules and Reversal-Based Expert Advisor

Article MQL5 code base

Summary

The document describes an Expert Advisor built around a dynamically calculated moving average whose period grows from a price-line intersection until the next intersection, then resets. A long signal occurs when a signal bar closes above the line after the prior indicator point lies on it; the inverse condition produces a short signal. The EA can reverse these signals and either open on every signal or hold a single directional position that flips when an opposite signal appears.

Users can enable either direction and set lot size, slippage, stop loss, and take profit. The EA adjusts invalid order distances and lot sizes to symbol or account limits, skipping a trade if the minimum lot cannot be funded. The document reports a test using default settings over the stated historical interval that performed poorly, while reversed signals did better. It provides no detailed performance figures or broader validation, so this comparison does not establish reliability. The indicator has no optimization parameters; trailing stops are suggested as a possible extension.

Key ideas

  • The indicator increases its calculation period between price intersections and restarts from a minimum after each intersection.
  • A long or short signal depends on the signal bar's close relative to the indicator and the prior indicator point.
  • The EA supports repeated entries or a one-position swing mode that reverses on an opposing signal.
  • The reported default test was weak, while reversing the signals improved the reported results.
  • Order size and stop distances are adjusted to symbol and account constraints.

Tags

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