Skip to content
All library documents

A Single-Symbol Strategy That Adds Positions by Comparing Side Profits

Article MQL5 code base

Summary

This Expert Advisor trades one configured symbol and chooses a trade direction by comparing the combined profit of its existing buy positions with that of its sell positions. When the buy side has lower profit, it opens another buy; when the sell side has lower profit, it opens another sell. If both sides have zero profit, it starts with a buy. The description frames these comparisons as indications of trend direction, although the logic adds exposure on the opposite side of the stated trend inference.

The document reports testing on EURUSD using a four-hour chart, but gives no numerical performance results. It explicitly notes that prolonged trends can cause deposit usage to rise substantially and says this issue remains unresolved. The method does not specify a clear cap on positions or a complete risk-control plan, so the reported test context is insufficient to establish how the strategy behaves under sustained market moves.

Key ideas

  • The EA trades a single configured symbol and bases its direction choice on relative profits of existing buy and sell positions.
  • It adds a buy when buy-side profit is lower, and adds a sell when sell-side profit is lower.
  • It opens a buy when both sides have zero profit.
  • The stated EURUSD four-hour test has no reported performance figures.
  • The document warns that prolonged trends can sharply increase deposit usage, with the issue unresolved.

Tags

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