cTrader

AlgoWay Blog

Guides, manuals and platform references.

Core
JSON & Alerts
MT5 / Expert Advisors
Errors
Integrations
Other Publications
AlgoWay Strategy Lab

MT5 Manual Trades: Keep Automated Exits in Their Lane

Published December 4, 2026 · View Markdown

Separate manual and automated trade tickets, with a merged netting position inset

To keep an AlgoWay exit from managing a separate manual MT5 position, check trade ownership and account mode first. The AlgoWay MT5 EA uses its configured MAGIC_NUMBER to identify its positions. That distinction is useful when positions remain separate. On a netting account, however, manual and automated trades in the same symbol contribute to one position. A label cannot turn that shared position into two independent holdings.

This matters when using AlgoWay for TradingView-to-MT5 automation alongside discretionary trading. The practical question is not simply whether the exit says EURUSD. It is which position the execution instruction can manage, and whether your broker account keeps the two trades separate at all.

Start with the position, not the chart

Suppose you manually buy 0.10 lots of EURUSD, then your automated strategy buys another 0.20 lots. These are illustrative quantities, not a recommendation.

  • On a hedging account, the two entries can remain separate positions. You can compare their individual tickets and ownership before testing an automated exit.
  • On a netting account, the result is one 0.30-lot EURUSD position. A 0.20-lot reduction leaves 0.10 lots, but that arithmetic does not prove a separate manual ticket was protected.

MetaTrader's official position-accounting explanation distinguishes these models. See also our worked guide to MT5 netting and hedging. Selecting Hedge in an EA cannot change the broker account's accounting system.

What to configure in AlgoWay

In the current AlgoWay MT5 EA Inputs guide, MAGIC_NUMBER identifies trades belonging to the EA. Use distinct values for independent EAs that should not manage each other's positions. Keep the assigned value stable while its trades remain open; changing settings is not a migration plan for existing exposure.

A flat message invokes closing logic. The setting Close size: Lots / Percent % determines how its quantity is interpreted. Do not copy a percentage example into a configuration that expects lots. The documented percent basis is initial position volume, not an arbitrary percentage of the entire account.

Magic-number ownership and strategy identifiers answer different questions. Ownership separates the EA's positions from other positions; identifiers can distinguish trades within an automated workflow. A different chart name is not evidence that an exit targets a different holding. Use the documented route-specific identifiers when you also need strategy-level targeting.

A small demo check that answers the actual question

Use a demo account with the same accounting mode as the intended live account. The following is a proposed verification procedure, not a test result.

  1. Record the broker account, symbol, account mode, EA magic setting and close-size mode. Confirm that the EA is connected to the intended AlgoWay route.
  2. Open one small manual position and one small AlgoWay position on the same symbol, using broker-permitted sizes. Record the tickets and volumes before any exit.
  3. Send the automated exit you actually intend to use. Check AlgoWay's received message and execution result, then inspect MT5 positions and deal history.
  4. On a hedging account, confirm that the intended EA position changed and the separate manual position did not. A reduced combined volume alone is insufficient evidence.
  5. Repeat for any different exit path you intend to use, such as a directional close or a reverse signal. Do not assume one successful close proves every mode behaves identically.

If the manual position changes unexpectedly, pause the relevant alert and reconcile the remaining exposure before another attempt. Compare the actual message, the account mode and the position records. Repeatedly pressing Test adds trades, not clarity.

Separate ownership still shares account risk

AlgoWay's daily equity limits include account-wide realized and floating results, including manual trades. A manual loss can therefore affect permission for new automated entries even when the EA manages only its matching positions. This is a separate issue from which position an exit closes.

When manual and automated activity must have independent same-symbol positions, independent equity budgets and independent emergency exits, separate trading accounts provide a clearer operational boundary. They also require their own connection setup. Choose that separation deliberately instead of asking a trade comment to perform the duties of an account.

Last updated: December 4, 2026