Reliability · Failover Design

What Happens If TradingView or Your Exchange Goes Down?
Failover Design for Automated Strategies

2026-07-22·6 min read

"Every exchange has some kind of disconnect protection, right?" They do — but you may not qualify. Bybit's dead man's switch (officially, Disconnect Cancel All) is blunt about it in the docs: institutional clients only, and VIP clients cannot access it. If you're a retail trader automating on Bybit, that safety net simply cannot be turned on.

This post is about gaps like that: the moment something upstream breaks, which protections genuinely exist and which only exist in your head. Short version — your open position doesn't vanish because you lost connection, but your stop-loss might effectively not exist at all.

TL;DR
Three things. One: not a single dead man's switch document we checked mentions positions — all of them talk only about resting orders. Two: the mechanism that cancels those orders isn't available to everyone; Bybit restricts it to institutional clients in writing. Three: Bitget is the only one of the four we checked that publishes an exact weekly maintenance window in its API docs.

Where your stop-loss lives decides what happens the moment you go dark

There are two ways to place a stop. Both get called a stop-loss, and their fates during an outage are opposites. Get this straight before anything else.

1
Where does your stop-loss actually live?
A real order resting on the exchange (stop-limit, stop-market, or a TP/SL bracket)It sits inside the exchange's own matching engine, not on your bot's connection. As long as that engine is running, the order isn't affected by your outage.
Logic in your strategy that decides when to send a close order (nothing resting at the exchange)It only fires if TradingView, the network, your server and the exchange API are all up at the moment price crosses your level. Any link down, nothing closes the position — there's no order at the exchange waiting.
2
Do you have a dead man's switch configured, and are you actually eligible?
Yes, and eligibleIf your heartbeat times out, the exchange cancels your resting stop order along with everything else. Check in often enough that it doesn't trigger by accident.
No, or not eligible on this exchange (e.g. Bybit retail/VIP)A disconnect alone triggers no cancellation. Your resting stop keeps waiting for the engine to trigger it normally — which is the behavior you generally want from a protective stop anyway.

This is why TVSBot places take-profit/stop-loss as real bracket orders directly on the exchange for futures positions, rather than only tracking a level in software — a resting order survives your connection dropping; logic that never reaches the exchange does not.

The exchange's auto-cancel-on-disconnect isn't for everyone

A dead man's switch works like this: you keep pinging an endpoint as a heartbeat, and if it stops for longer than a countdown you set, the exchange automatically cancels your resting orders. Eligibility varies a lot across the four.

BinanceOKXBybitBitget
Official nameAuto-Cancel All Open Orders (USDⓈ-M Futures)Cancel All AfterDisconnect Cancel All (DCP)CountDown Cancel All
Available to standard API usersYes — USDⓈ-M Futures onlyUTA accounts only
Official caveatDocumented as a USDⓈ-M Futures endpoint — spot-only traders don't get itExplicitly not meant to be used as part of your trading strategyRestricted to institutional ("Ins") clients — VIP clients cannot access itClassic (non-unified) accounts are not supported
The gap that trips people up
Third-party articles routinely list these four side by side as if they were interchangeable. They're not — on Bybit, even VIP-tier accounts don't get it. Eligibility for features like this tends to track the same account-tier distinctions covered in our API key permissions checklist: check what you actually have access to before designing a failover plan around it.

Bitget puts its maintenance window in the API docs. The others don't.

Every exchange schedules maintenance. What differs is how precisely the official docs will tell you when. These three say something concrete:

ExchangeWhat the official docs say
BitgetAPI docs publish a fixed regular release window — Tue/Wed/Thu, 14:00–17:00 (UTC+8). During it, REST calls may return specific error codes and WebSocket may disconnect; retry and reconnect logic is officially recommended.
OKXA public status page listing specific maintenance records. The official FAQ also notes error code 50004 is common around the 8/16/24 (UTC+8) funding-fee settlement times due to heavier server load, and recommends automated traders avoid them.
BybitNo public web dashboard; a GET /v5/system/status endpoint returns structured maintenance data instead. Official docs state disruptions or WebSocket disconnects under 10 seconds are normal and won't be announced.

For Binance we found no independent public status or incident page for binance.com, only a GET /sapi/v1/system/status endpoint reporting normal or maintenance. Which makes Bitget the only one that tells you, while you're still writing the code, not to schedule anything important on Tuesday, Wednesday or Thursday afternoon.

What TradingView's side actually admits to

TradingView runs a public status page at status.tradingview.com, with a dedicated "Alerts" component. As of this check it showed operational, and the only alert-related incident logged recently was "Technical alerts partly unavailable" (Jul 1, 10:14 – Jul 3, 18:23 GMT, marked resolved). Outages happen and are tracked publicly — but TradingView has never published whether alerts that should have fired during one get resent afterwards.

Worth being precise here, because a well-documented webhook resend mechanism often gets assumed to cover this. It only applies when your own receiving server errors: on a 5xx (with 504 explicitly excepted in TradingView's own wording) it resends after 5 seconds, up to 3 times; on a 504, a 4xx, or no response within 3 seconds there is no retry — it's treated as delivered and dropped. TradingView's own service degrading is a different scenario. For the receiving-end breakdown see our webhook delay deep-dive; if alerts aren't firing at all, this troubleshooting checklist covers the more common causes first.

The sentence we can't quote verbatim

No exchange states in plain language that "your position will not be closed if your connection drops." That conclusion is our own synthesis: every dead man's switch document we found scopes itself to orders, never positions, and liquidation risk is managed by a separate margin engine that doesn't reference your connection status. It's a reasonable inference backed by several independent official sources using the same careful wording — but it is an inference, not a direct quote, and we want to be upfront about the difference.

Questions to ask yourself before you go live

The ones you can't answer are your gaps:

  • Is my stop a real order resting at the exchange, or does it only exist inside strategy logic?
  • Does my account tier actually get this exchange's dead man's switch? — if you're not sure, assume no
  • For the short disconnects exchanges say won't be announced (Bybit: under 10 seconds), does my bot reconnect and retry by itself?
  • After an incident, can I tell whether the alert never arrived or arrived and failed downstream? — only a signal log kept in advance answers that
  • If the thing that goes down is my dashboard, do I have a second channel to find out, and a way to close everything manually?

Being honest: no design guarantees zero missed signals

No automated trading setup can promise 100% delivery — ours included. TradingView has never published an SLA for an alert missed during its own outages; we don't publish an uptime guarantee for TVSBot either, because we don't have a public SLA to point to. Design reduces the odds and the blast radius of a missed signal; it doesn't eliminate the possibility. Anyone claiming otherwise about their own platform is telling you something they can't back up.

FAQ

If my exchange goes down, will my open position get closed automatically?
There's no official statement either way. But every dead man's switch mechanism we checked across Binance, OKX, Bybit and Bitget is scoped to cancelling resting orders — none mention positions. Liquidation and margin calls run on a separate engine that isn't tied to your connection status.
Can I rely on my exchange to cancel orders if I lose connection?
It depends heavily on the exchange and your account tier. Binance and OKX offer it to standard API users; Bybit restricts it to institutional clients, so VIP accounts don't qualify; Bitget's version only works on unified trading accounts.
Does TradingView resend an alert if it was down when the alert should have fired?
Not documented either way. The retry logic TradingView does publish — resending after a 5xx other than 504, up to 3 times — only applies when your own receiving server errors out, which has nothing to do with TradingView's own service being degraded.

Get started

Ready to ship what you just learned?

TVSBot places TP/SL as real bracket orders on the exchange for futures positions, logs every signal for replay, and gives you a kill switch plus a rate-limited close-all.

Start free