Recherche

OCO Logic Must Be Tested Before Both Sides Fill

Two opposite pending orders are not automatically one controlled strategy. Unless the platform or broker supports a verified one-cancels-the-other link, both instructions may remain active and both may fill during a whipsaw, leaving an unintended position or two separate losses.

The setup is common before high-impact data: a buy stop above the market and a sell stop below it. Traders often assume the first trigger cancels the second. MetaTrader's general order model does not make that assumption universal. Automation, an expert adviser or a broker-specific bracket function may perform the cancellation, but each has different server, connection and latency risks.

Test the full sequence

  1. Place the smallest permitted test orders away from the live market.
  2. Trigger or simulate one side in the intended environment.
  3. Verify the opposite order is canceled at the broker, not merely hidden locally.
  4. Disconnect the terminal and repeat the logic in a demo account.
  5. Export the order and deal history to confirm timestamps.
Failure mode Result
Both orders remain live Whipsaw can open both directions
Local script disconnects Cancellation may never reach server
Partial first fill OCO treatment may be unclear
Cancellation arrives late Second order may already be triggered

August U.S. CPI rose 0.4% month on month and the Fed decision is scheduled for September 16. These facts create an obvious test window, not permission to assume a breakout. A sharp first move and reversal are possible paths that must be modeled before any straddle-style order is armed.

The CFTC reminds retail customers that OTC forex occurs against the dealer and under the conditions it offers. Ask the provider whether linked orders reside server-side, how partial fills affect the relationship, and what happens when both triggers arrive before cancellation completes.

XM's June 2026 pending-order session gives recent strategy context. It does not verify OCO behavior for another broker.

The closed-loop rule is simple: if cancellation has not been tested and documented, treat the two orders as independent exposures. Reserve margin and risk capital for both, or do not place both.

Sources

Platform automation and linked-order behavior must be verified with the specific provider.