Rollover: why the SL is removed and then put back

What ProTradingEA's rollover protection does, how to turn it on, and what to check if the SL is not removed or not put back.

4 min read

Every weekday, when the broker's trading day changes (the rollover), the spread often widens for a few minutes. A nearby Stop Loss can then be hit without the market really moving.

What the protection does

When the protection is on, ProTradingEA:

  1. removes the Stop Loss from positions just before the rollover (at most 30 minutes before);
  2. puts it back at the same level after the window, as soon as the spread is normal again, and at most 60 minutes after quotes return.

Important details:

  • Only the Stop Loss is affected. The take profit does not move.
  • The protection applies to every position on the account that has a Stop Loss, including positions opened by hand or by another EA, except on symbols where no rollover was detected (« Sans fenêtre », no window, on the panel).
  • Timings are detected automatically, symbol by symbol, from the broker's history. There is nothing to set.
  • If you place a new Stop Loss yourself during the window, yours is kept.
  • The EA closes the position instead of placing a stop again if the market has already gone past the Stop Loss level, if that level is now too close to the price for the broker to accept it, or if you increased or reversed the position while it had no stop. On the Signals page, this closure shows without a specific reason.
  • ProTradingEA refuses any new opening with Opening blocked during the rollover window: on a symbol during its window and until its Stop Losses are back; on every symbol during calibration or after a failed restore. The signal is not replayed later.

During the window, positions have no Stop Loss at the broker. If MetaTrader, your PC, your VPS or the network goes down at that moment, the position stays without a stop until the EA is back. If you remove the EA or close MetaTrader normally, it tries to put the Stop Losses back before stopping, or closes the position if the stop is no longer valid.

Turn the protection on

The protection is set per account. It is off by default.

  1. Open Dashboard and choose the account.

  2. At the top of the account, the Auto rollover chip shows in amber while the protection is off: click it to turn it on. You can also go through Account settings › EA settings, turn on Automatic rollover protection, then click Save.

  3. The Auto rollover chip is no longer amber and shows a ticked shield. In MetaTrader, the PROTECTION ROLLOVER column goes from CALIBRATION to PRÊTE (ready).

Run only one ProTradingEA with this protection per trading account, even on different machines.

Follow the protection in MetaTrader

The ProTradingEA panel (in French) shows a PROTECTION ROLLOVER column with a state:

  • CALIBRATION: at startup, the EA analyses the broker's history. Opening signals received during this step are refused.
  • PRÊTE (ready): the next window is known.
  • FENÊTRE (window): the window is open, openings are blocked on that symbol.
  • EN ATTENTE (waiting): the window is open but the EA is not removing the SL yet. The panel says why after « SL pas encore retiré : ».
  • SANS SL — ROLLOVER: the Stop Loss is removed.
  • RESTAURATION: the EA is putting the Stop Losses back.
  • CONFLIT (conflict): the EA cannot locate the rollover, so it keeps the Stop Losses.
  • CRITIQUE (critical): a Stop Loss could not be put back, or a position could not be closed. Openings are blocked on every symbol.

If the EA is not ready, it keeps the Stop Loss: that is the safe behaviour. Possible reasons are « terminal déconnecté » (terminal disconnected), « Algo Trading désactivé », « trading automatique non autorisé pour l'EA » (automated trading not allowed for the EA), « trading refusé par le compte » (trading refused by the account), quotes that are too old, or « heure du PC incohérente » (PC time inconsistent).

The PC clock

The EA compares the time of the broker's quotes with your PC's time. Before version 1.6.2, a clock a few seconds off was enough to block the protection: the SL was not removed (PC behind) or not put back (PC ahead).

Since ProTradingEA 1.6.2, the EA measures this gap itself and corrects it, up to a 30-minute difference. From 2 seconds of gap, the panel shows it under DISPONIBILITÉ, for example « horloge PC +3 s corrigée » (PC clock +3 s corrected).

  1. Check your EA's version under Account details (EA version), and install the latest one from Downloads if needed.

  2. If the panel shows « heure du PC incohérente », turn on automatic date and time in Windows.

If a Stop Loss could not be put back, the panel shows CRITIQUE and the EA keeps trying. Check the position in MetaTrader's Trade tab and put its Stop Loss back by hand if needed.

Did this article help?
Can't find the answer?Email support, or sign in to ask the help assistant.