Skip to content
All library documents

Building a Multi-Currency Parabolic SAR Expert Advisor in MQL5

Article MQL5 articles

Summary

This article outlines an MQL5 expert advisor that monitors 30 forex and metal symbols from one chart. Its entry rule requires Parabolic SAR to indicate the same direction on five timeframes, from M15 through D1. It uses the M15 signal to close profitable positions when momentum weakens, and the H1 SAR value for automatic trailing stop and profit management.

The design includes optional fixed or dynamically sized positions, configurable stop loss and take profit, trading-day controls, and buttons for modifying or closing groups of orders. The article describes the intended architecture and inputs, while much of the implementation is omitted from the supplied text. It reports that strategy tester results were not good and presents the advisor as a learning example rather than a validated strategy. The stated symbol list also assumes broker symbol names without prefixes or suffixes, a limitation for some installations.

Key ideas

  • The advisor scans 28 forex pairs and two metal pairs from a single chart.
  • A buy or sell entry requires agreement from Parabolic SAR across five timeframes, M15 through D1.
  • The design uses M15 SAR signals for exits and H1 SAR values for automatic trailing management.
  • Inputs cover position sizing, stop loss, take profit, trading days, and manual bulk order controls.
  • The author reports weak strategy tester results and presents the system as an example for further development.

Tags

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