Skip to content
All library documents

A Moving Average and Parabolic SAR Trend-Following Expert Advisor

Article MQL5 code base

Summary

This document outlines an automated trading strategy that compares a moving average with the Parabolic SAR indicator to generate trading signals. The expert advisor operates using the current, still-forming bar, allows only one open position at a time, and includes position trailing. Users can configure trade size, stop loss, take profit, trailing stop, and trailing step; indicator settings can use a different timeframe from the chart.

The page names EURUSD on the hourly timeframe and an every-tick test mode, but it provides no test figures or performance discussion. It warns that setting stop loss or take profit to zero disables that exit mechanism, so a position may remain open without being closed by it. No entry or exit details beyond the indicator comparison are explained, and the document does not establish profitability, robustness, or how the system behaves across markets and timeframes.

Key ideas

  • The advisor bases signals on a comparison between a moving average and Parabolic SAR.
  • It uses the current bar and restricts the system to one open position at a time.
  • Trade size, stop loss, take profit, and trailing settings are configurable.
  • The document names an hourly EURUSD test mode but gives no test results or evidence of profitability.
  • Disabling stop loss or take profit can leave a position without that exit mechanism.

Tags

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