Skip to content
All library documents

Opposing-Position EA with Increasing or Decreasing Lot Sizes

Article MQL5 code base

Summary

The document describes two versions of an expert advisor that open opposing positions and manage their volumes in opposite sequences. One starts with the minimum lot and increases the size of later positions; the other starts at the maximum and reduces later position sizes. Both versions expose a maximum-lot ratio, stop-loss and take-profit distances, and a minimum monetary profit threshold that closes all positions and restarts trading.

The material explains the configuration and position-sizing concept, but gives no performance evidence, market conditions, entry rationale, or detailed risk controls. Opening opposing positions does not by itself guarantee a hedge or limit losses; the outcome depends on execution, costs, sizing, and how positions are closed. Readers would need to inspect and test the actual implementation before judging exposure, drawdown, or suitability. The description does not specify how the EA decides when to open each position, so the trading logic is incomplete as presented.

Key ideas

  • The first EA version begins with a minimum lot and increases the size of subsequent positions.
  • The second version begins at the maximum lot and decreases the size of subsequent positions.
  • Both versions use stop-loss and take-profit settings and can close all positions after reaching a monetary profit threshold.
  • The document provides no backtest results or detailed rules for when opposing positions are opened.

Tags

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