Skip to content
All library documents

Parabolic SAR Expert Advisor with a Time-Based Exit

Article MQL5 code base

Summary

This document describes an expert advisor built around Parabolic Stop and Reverse signals. A trade signal is generated after a bar closes and the indicated trend direction changes. The system can also apply a fixed maximum holding period, closing an open position once that time limit is exceeded. Its inputs enable the time exit and set the holding duration in minutes.

The described test used default expert-advisor parameters on AUDUSD with six-hour bars over 2016, and omitted stop-loss and take-profit orders. The document refers to example trades and a results chart but supplies no numerical performance statistics in the text. It also notes that the supporting trading library assumes brokers with nonzero spreads and support for setting stop loss and take profit when opening a position. The short description does not specify signal parameter choices, transaction-cost assumptions, or risk controls, so the referenced test is insufficient to assess robustness or live-trading suitability.

Key ideas

  • The system uses Parabolic SAR direction changes confirmed at bar close to generate trades.
  • An optional fixed holding-time limit closes positions after a preset duration.
  • The document describes a test on AUDUSD six-hour bars over 2016 without stop-loss or take-profit orders.
  • No numerical test metrics are included in the text, limiting evaluation of performance.

Tags

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