Skip to content
All library documents

A Two-Direction Forex Expert Advisor with Unequal Stop and Target Levels

Article MQL5 code base

Summary

The document describes a draft expert advisor that opens long and short positions simultaneously. Its defining condition is that the losing position’s stop loss is reached five points before the profitable position’s take profit. It says the strategy parameters can be optimized, but gives no explanation of the entry timing, market conditions, or how the paired positions are managed beyond those exit levels.

A reported EUR/JPY one-minute test covers a historical sample and uses an open-prices-only model. The stated configuration uses a stop loss smaller than the take profit, and the results show a small net gain, a profit factor just above one, and a maximum drawdown reported as 1.23%. The 334 trades include more losses than wins, with the average winning trade larger than the average losing trade. This single historical test is limited evidence: the document calls the system a draft, offers no out-of-sample validation, and does not establish robustness to execution costs or other periods.

Key ideas

  • The advisor opens long and short positions at the same time.
  • The losing side’s stop is designed to trigger five points before the profitable side reaches its target.
  • The reported EUR/JPY test uses one-minute bars and an open-prices-only model.
  • In the sample, the strategy reports a small net profit and a 1.23% maximum drawdown.
  • The single historical test does not establish robustness or performance outside its sample.

Tags

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