Skip to content
All library documents

Building a Multi-Pair Expert Advisor with Triangular Moving Average Signals

Article MQL5 articles

Summary

The article describes an MQL5 expert advisor that manages trades across 30 forex and metal symbols from one chart. Traders can select which pairs to trade, add broker-specific symbol prefixes or suffixes, and restrict activity to a chosen trading session. The example is presented as a learning project rather than a finished strategy.

Signals come from a triangular moving average. In multi-timeframe mode, all selected timeframes must agree on the indicator’s color; in single-timeframe mode, a specified sequence of colors across recent bars triggers a buy or sell. The advisor also offers configurable stop losses, take profits, and trailing management, including options tied to the indicator. The article reports that its strategy tester results were not good and that single-timeframe results were better than multi-timeframe results. It provides no detailed performance statistics, and the author cautions that stronger signal rules and timeframe choices would need further development.

Key ideas

  • The example advisor trades a configurable selection of 30 forex and metal symbols from one chart.
  • Multi-timeframe signals require agreement across the selected timeframes, while single-timeframe signals use a sequence of recent indicator colors.
  • Trade management includes optional fixed or automatic stops, targets, and trailing behavior.
  • The reported tester results were weak, with single-timeframe results outperforming the multi-timeframe version.

Tags

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