Skip to content
All library documents

Bar-Based Stop Entries with Trailing Stops and Doubled-Lot Adds

Article MQL5 code base

Summary

This Expert Advisor description outlines a bar-driven pending-order strategy. When there are no open positions or pending stop orders, it places a buy stop and a sell stop at a configured distance from price. If neither order is triggered by the next bar, both are removed and the setup restarts. This creates repeated two-sided entry attempts tied to new bars.

After one entry triggers, the opposite pending order is canceled and a trailing stop is applied to the position. The system also places two additional stop orders using twice the lot size. The description gives the operating sequence, but no parameter values, market, backtest, or risk analysis. In particular, it does not explain how the added exposure is managed if price reverses, how trailing distance is selected, or whether transaction costs and execution conditions were considered. The strategy mechanics are therefore clear at a high level, while its profitability and risk remain unsubstantiated.

Key ideas

  • The EA places buy-stop and sell-stop orders when a new bar begins and no trade is active.
  • Untriggered orders are canceled after the next bar and the setup is renewed.
  • When one entry triggers, the opposite order is removed and a trailing stop manages the open position.
  • Two additional stop orders are placed with doubled lot size, increasing exposure according to the described rules.

Tags

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