Skip to content
All library documents

Two-Bar Opening Price Comparison Expert Advisor

Article MQL5 code base

Summary

This document describes an Expert Advisor that compares the opening prices of the current bar (bar zero) and bar two. It identifies the comparison as the strategy’s central rule, but does not state what trade direction or entry condition follows from the price relationship. The available description therefore gives only a partial view of the trading method.

Inputs let the user set stop loss, take profit, trailing stop and step, breakeven behavior, and trade size. Position size can be specified as a lot amount or as a percentage of free margin risk, with a magic number to identify the EA’s trades. The document mentions test results for all symbols on the daily timeframe using every-tick testing, but includes no performance figures or methodology details. It provides no evidence about profitability, robustness, or live execution, and the missing entry logic limits what can be assessed.

Key ideas

  • The EA compares the opening prices of bar zero and bar two.
  • The document does not specify the trade rule that uses this comparison.
  • Risk and exit inputs include stop loss, take profit, trailing stop, and breakeven settings.
  • Position size may be set directly or based on a percentage of free margin risk.
  • Daily all-symbol testing is mentioned, but no results are supplied.

Tags

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