All articles
Brokers

Switching Brokers While Running Algo Strategies

The order of operations matters, because doing it in the wrong sequence leaves a position open with no strategy managing it. A sequence that avoids that.

Arthalab6 min read
The risk in switching brokers is not the setup — it is ending up with an open position at the old broker and no strategy managing it. The sequence below avoids that.

Why a broker-neutral platform matters here

If your platform is attached to a broker, switching brokers means switching platforms and rebuilding everything. On a broker-neutral platform your strategies stay where they are and only the connection changes.
That is the whole argument for keeping the two decisions separate. Arthalab supports multiple brokers specifically so this is a configuration change rather than a migration.

The sequence

1

Flatten everything at the old broker

No open positions. Not reduced — closed. This is the step that prevents the bad outcome.
2

Stop every strategy

Confirm each one, not just the ones you remember.
3

Open and fund the new broker account

Including API access, which can take a day or two to be enabled.
4

Get your new API credentials

Key and secret from the new broker's developer console.
5

Whitelist your IP with the new broker

The whitelist is per broker — the old entry does not carry over.
6

Connect the new broker on the platform

Then validate before doing anything else.
7

Restart one strategy, one lot

Confirm the whole path works before restoring the rest.

Validating before you trust it

Validation means a small real order, placed and reversed. Not a connection test — an actual order that reaches the exchange.
This proves the whole chain: credentials accepted, address whitelisted, order routed, fill reported back. A connection indicator that says connected proves only the first link.

What differs between brokers

AreaWhat to re-check
Margin policyRequirements for short options differ by broker
Order typesNot every broker supports every type the same way
Rejection behaviourError messages and reasons are worded differently
Session handlingDaily login routine varies
Rate limitsOrder throughput caps differ
The margin row is the one that surprises people. A strategy that fitted comfortably at one broker can be short of margin at another, which shows up as a rejection on day one.

On the session row

On Arthalab, XTS is the exception on the session row — its session is renewed server-side, so there is no daily login step there. The self-serve brokers all require one.

Timing the switch

The calendar matters more than people expect, because some windows make the flattening step harder than it needs to be.
WhenVerdict
Expiry weekAvoid — positions you must close are also ones you may not want to close now
A quiet week, mid-cycleIdeal — nothing urgent to unwind
While holding a losing positionAvoid — you will be tempted to delay step one
Before a long breakGood — nothing running while you set up
Mid-week, markets openFine, provided you are flat first
The third row is the honest one. The hardest version of this is switching while you are down on a position, because closing it crystallises the loss and every instinct says wait. Waiting is how you end up with the open position and no strategy.

The first week on a new broker

  • Run one strategy at one lot, not your full set
  • Read the logs daily — broker replies are worded differently and worth learning
  • Watch for margin rejections specifically
  • Confirm the daily session routine, if this broker needs one
  • Only then restore the rest of your strategies
The temptation is to restore everything on day one because the setup worked. Resist it — the setup working and a week of ordinary operation working are different pieces of evidence.

Running two brokers at once

Some people keep both, which is reasonable, with one caution.
  • Margin is per broker. Capital split across two accounts is not capital available in either.
  • Be explicit about which strategy runs where. Ambiguity here produces duplicated positions.
  • Both sessions need maintaining, where the broker requires a daily login.
  • Your P&L is split across two statements at year-end.

The short version

  • Flatten all positions and stop all strategies before touching anything
  • A broker-neutral platform makes this a configuration change, not a migration
  • Whitelist your IP with the new broker — the old entry does not carry over
  • Validate with a real small order, not just a connection indicator
  • Run one strategy at one lot for a week before restoring the rest

Frequently asked questions

Ending up with an open position at the old broker and no strategy managing it. Nothing will close that position, including at expiry, until you do it manually.

Not on a broker-neutral platform. Your strategies stay where they are and only the broker connection changes. On a broker-attached platform you would be rebuilding.

No. The whitelist is per broker, so you need to add your address in the new broker's API app.

Place a small real order and reverse it. A connection indicator proves only that credentials were accepted, not that an order can reach the exchange.

Margin. Requirements for short options differ by broker, so a strategy that fitted comfortably at one can be short of margin at another and get rejected.

Yes. Be explicit about which strategy runs where to avoid duplicated positions, and remember margin is per broker, so split capital is not available in either account.

Start with a free 3-day trial

Build a strategy, backtest it and run it on paper — no broker, no IP and no money needed to try it.

Ask us on Telegram
Switching Brokers While Running Algo Strategies | Arthalab — Algo Trading India