Skip to content
Automation

Halt first, ask questions later: emergency exits done right

The Emergency Exit stops entries and flattens the book; the hard part is knowing when to press it and how to come back.

By Greeks Vault · · 6 min read

Cover image for: Halt first, ask questions later: emergency exits done right
In this article
  1. Two switches, in a fixed order
  2. What actually triggers it
  3. Flattening is never free
  4. The resume protocol

Every automated book needs a way to stop that does not depend on the thing that has gone wrong. Ours is called the Emergency Exit. It does two things in a fixed order: it halts all new entries, then it flattens whatever is open. It is deliberately blunt. It does not ask whether the positions are profitable, whether the market might recover, or whether the problem is really a problem. Those are questions for afterwards. This post covers what triggers it, why flattening is never free, and the resume protocol, which is the part most people skip and the part that decides whether the next halt is handled any better.

Two switches, in a fixed order

Halt entriesFlattenNever the reverse
Halt entries, then flatten, never the reverse

It is worth being precise about what the Emergency Exit is not. It is not the daily loss breaker. The breaker is a money rule: a fixed dollar amount of realized loss per book, after which entries stop and positions are left alone. The Emergency Exit is an operations rule. It exists for the moments when we no longer trust our own picture of the book.

When pressed, it does two things.

  • Halt: every bot in the book is refused entry. The router is told the book is closed. Any working entry orders are canceled.
  • Flatten: every open position is closed. Resting take-profit orders at the broker are canceled first, then closing orders are sent for each leg or spread, and the bot keeps working them until the broker confirms flat.

The order matters. Halting first means a flatten cannot race a fresh entry. We learned this the ordinary way, by watching a bot try to open a spread while its sibling was closing one.

The halt part can also be used on its own. A soft halt stops entries and leaves positions to their normal rules, which is the right response when the concern is about tomorrow rather than the next five minutes.

What actually triggers it

Most triggers are not about the market. They are about our view of the market going blind.

A stale price feed is the classic case. If the quotes stop updating, the bot's stop schedule is meaningless, because it is comparing the position against a number that is no longer true. A lost broker session is similar: the resting take-profit is still at the broker and will still fill, but any stop the bot intended to work cannot be sent. A fill that comes back at a price far from the quoted market, or a position that appears in the account that the bot did not place, both count as the picture being wrong.

Then there are market triggers, kept deliberately short. A gap in SPX during the session that is far outside the day's expected range, or an unscheduled event that makes every scheduled-print rule irrelevant. Our rule against selling premium into CPI, NFP or FOMC is a planning rule; the Emergency Exit is for the print nobody scheduled.

Finally, the human. The person running the book may press it for any reason or none. We would rather explain an unnecessary halt afterwards than a necessary one that was delayed while someone gathered evidence. Halt first, ask questions later is the rule precisely because the questions take time.

Flattening is never free

Pressing the button is easy. Getting flat is not, and anyone who has only flattened on paper has a rosy view of it.

An iron condor is four legs. Closing it means buying back two short options and selling two longs, ideally as one spread order, at a moment when we have often just decided the market is unreliable. Spreads widen exactly when you want them narrow. A marketable limit that would have filled instantly at ten in the morning can sit for a minute at a bad moment, and a minute is a long time when the reason for the halt is a moving market.

So the flatten logic is patient in a specific way. It starts with a limit inside the current spread, then walks the price towards the far side in small steps on a schedule, and only goes fully aggressive at the end. It never sends a bare market order on a four-leg spread; the fills on those are the stuff of postmortems.

The cost of flattening comes out of the week's reserve, and it is written in the log as its own line. Over a year those lines are a useful reminder that the exit is part of the trade, and that a stop is a schedule, not a guarantee.

The resume protocol

Resuming is where discipline usually breaks. The feed comes back, the market looks fine, and the temptation is to flip the switch and get on with the day. We do not do that.

The book does not resume the same day. Whatever triggered the halt, the day's buckets are marked spent, the flatten cost is logged, and the router is left closed until the next morning's plan. A halt is evidence that something in the setup was not working, and the afternoon after a halt is the worst time to find out it still is not.

Before the next session, a short written note answers four questions. What triggered it? Was the trigger correct? Did the flatten execute as designed, and at what cost? What, if anything, needs to change? The answer to the last question is not implemented that evening. It goes into the queue for off-live testing like any other rule change, because a change made under pressure is the one most likely to introduce the next halt.

Only then is the book reopened, on a normal weekly plan, with a normal bucket. If the note shows the trigger was a false alarm, that is fine. The cost of a false alarm is a day's opportunity and a little slippage. The cost of the alternative is not bounded.

An emergency exit is a promise you make to yourself on a calm day: when the picture goes wrong, stop looking at it and get flat. The button is the easy part. The discipline is in pressing it early, paying the exit cost without complaint, and coming back only after the note is written.

See the tools behind the ideas

Try Greeks Vault free and practice on a paper account first. Or read today's free SPX levels.

Start your free trial

Keep reading

Education only, not advice. Greeks Vault is software, not a broker-dealer or investment adviser. Options involve risk and can lose money. Models and estimates can be wrong.