What happens to copied trades if the trade copier goes offline or restarts?

Updated

Sooner or later a trade copier is interrupted: a broker connection drops, a server is updated, a machine fails. The question that matters is what your accounts look like afterwards. Is a trade copied twice? Is one missed for good? Does a copy stay open after the master closed?

This guide describes what SnapCopier does in each case, in the order it happens, and says plainly what it cannot repair. The settings it mentions are explained in every copy setting.

What can go offline, and what happens

What is interruptedWhat happensWhat you do
Your computer, browser or phoneNothing. The connections to the brokers are made from our servers, not from your devices.Nothing
The connection between the copier and one brokerIt reconnects by itself. Afterwards the follower is compared with its master and anything missed is repaired.Nothing
A copier server is stopped for an updateIts accounts are taken over by another server, or reconnect when it is back. A server that is stopped on purpose lets go of its accounts at once, so the handover takes seconds to about half a minute.Nothing
A copier server fails or loses its connectionIts accounts move to another server within about a minute. The server that lost contact stops placing orders before the other one starts.Nothing
The broker’s own server is down or the market is closedNothing can be placed on that account meanwhile. When it is back, the follower is compared with its master.Nothing

In every row the repair step is the same: the copier looks at what is open on the master and on the follower now, and fixes the difference. It does not replay a list of missed events, because after an interruption that list is incomplete by definition.

Why a trade is not copied twice

Doubled exposure is the failure to worry about most, because it costs real money. Two things prevent it.

  • One server per account. An account is traded by exactly one server at a time. A server that can no longer confirm it owns an account stops placing orders for it before another server is allowed to take it, so there is a safety margin between the two, not an overlap.
  • Every copy carries its own label on the broker’s side: the link’s magic number and the master’s ticket in the comment. After a restart or a takeover, the new server finds a copy that already exists on the follower and continues with it instead of opening it again. This also covers a copy that was sent just before the interruption and was not yet recorded.

We tested the handover with demo accounts and a real master trade: one server was cut off from the rest while the master opened positions. The cut-off server did not copy, the other one copied each trade once, and no follower ended up with a second copy.

What happens to a trade the master makes during the gap

For the seconds between the old server stopping and the new one being ready, nobody trades that follower. When the new server is ready, it compares the follower with the master and acts on the difference:

While the copier was away, the master…The follower afterwards
opened a tradeThe copy is opened late if the follower’s price is still within **Max slippage** of the master’s entry (50 points by default). If the price has moved further, the trade is skipped with the reason late_open_price_moved, and looked at again every five minutes while the master trade stays open.
closed a tradeThe copy is closed too, while **Close orphaned positions** is on (the default). Only copies made by this link are ever closed.
closed part of a tradeThe same share of the copy is closed.
moved a stop loss or take profitThe follower’s stops are changed to match, if stop copying is on.

The details of late copies and their price rule are in why copied trades open at a different price and connecting with open trades.

Stops keep working while the copier is away

With stop loss and take profit copying switched on, the stops sit on the follower’s broker server, so the broker executes them whatever the copier is doing. With both switched off, the copier places no stops, and a follower’s copy is only closed when the master’s trade closes and the copier is able to act. What happens to stops when the connection drops has the details.

What a restart cannot repair

  • Timing. A comparison puts the follower back in line with the master. It cannot make a late copy as early as it would have been, so the entry price can differ from the master’s, or the trade can be skipped when the market ran away.
  • Anything the broker refuses. If the follower’s broker rejects an order, for example for margin or a closed market, the copier records the reason in the copy log. Why a trade was not copied lists the reasons.
  • The follower’s own trades. The copier never closes or changes a position that its link did not open.

We do not promise a handover time to the second, and we do not promise that a trade made during one is copied. What we do promise is that a trade is not copied twice, and that the follower is brought back in line with its master afterwards. The status of every SnapCopier node, with its interruptions, is on the status page.

Questions

Will a trade be copied twice after the copier restarts?

No. Each copy carries the link’s magic number and the master’s ticket in its comment. After a restart or a takeover the copier finds the existing copy on the follower and continues with it instead of opening the trade again.

What if the master opens a trade while the copier is restarting?

When the follower is back, it is compared with the master. A trade that is still open is copied late if the follower’s price is within the max slippage of the master’s entry (50 points by default), and skipped with the reason late_open_price_moved if the price has moved further. A skipped trade is looked at again every five minutes while the master trade stays open.

What if the master closes a trade while the copier is away?

With Close orphaned positions on, which is the default, the follower’s copy is closed at the next comparison. Only copies made by that link are closed.

How long does a failover take?

If a copier server fails, its accounts move to another within about a minute. A server that is stopped on purpose hands its accounts over in seconds to about half a minute. We do not promise an exact time.

Do my stop losses still work if the copier is down?

Yes, if stop copying is on. The stops sit on the follower’s broker server and the broker executes them whatever the copier is doing.

Try it with your own accounts

Connect a master and a follower and watch the first copy appear in the log.

Join for free