Skip to content
All library documents

Opposing Positions with Asymmetric Stops and Profit Targets

Article MQL5 code base

Summary

This document describes a hedging Expert Advisor that opens two opposing positions at the same time. Its premise is that the position whose take-profit is reached first will close, after which a price reversal may carry the remaining position to its own take-profit. The setup requires the stop loss to be farther from entry than the take-profit, and an optional trailing stop can be enabled.

The idea depends on the market reversing after the first target is hit, but the document offers no data or analysis showing that this sequence occurs often enough to offset losses and trading costs. It specifies that the EA works only on hedge accounts and calls for separate parameter optimization for each symbol and timeframe. No position-sizing rules, test results, or broader risk analysis are provided, so profitability and robustness cannot be inferred from the description.

Key ideas

  • The EA opens long and short positions simultaneously and requires a hedging account.
  • Each position has a stop loss farther from entry than its take-profit.
  • The strategy expects a reversal after the first position reaches its target.
  • A trailing stop is available as an optional setting.
  • Parameters are to be optimized separately for each symbol and timeframe, but no results are reported.

Tags

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