Exiting positions
Every position your bots take is watched live for as long as it's open, and it comes off the moment one of your rules is met, or it rides all the way to settlement if that's how you set it up. This page walks through exactly how a trade closes: the rules that trigger it, the order the legs come off, how a close is confirmed, how iron condors are handled, what "riding to expiry" means, and how to step in and close a trade yourself.
The exit rules
A bot closes a position when any of the exits you configured triggers. You can set as many or as few as you like. Each one is an independent line in the sand, and whichever is hit first fires the close.
| Rule | What it watches | When it closes |
|---|---|---|
| Delta stop | The spread's net delta (or the short's alone, deltaCheck: primary) | Delta moves against you past the threshold you set |
| Hard backstop | A firm delta line beyond the delta stop | The move jumps past your stop between checks (this closes no matter what) |
| Value / loss stop | The position's loss or value | Loss (or value) reaches a level you set |
| Breakeven lock | Gains you've already banked | The trade was nicely ahead and gives it back to zero |
| Profit target | How much of the win is captured | The trade has made what you asked for |
Delta stop
This is the primary exit. As the market moves, the delta of your short side changes: the more the trade goes against you, the higher that delta climbs. You set the threshold as an offset from the delta your trade actually had when it opened. On a credit spread that is the delta when the order filled; an iron condor, a strangle or a naked short uses its delta from when the strike was picked. By default the delta watched is the spread's net delta: the short's delta less the long wing's (deltaCheck: all). For example, a bot that sold a 20-delta short with a 5-delta wing and a deltaOffset of 0.25 acts when the net reaches 0.40 (0.15 at entry plus 0.25). With deltaCheck: primary it watches the short alone and acts when the short reaches 45 delta, and if the same bot's short opened at 22 delta it acts at 47. This holds however the bot picks its strike. To measure the offset from targetDelta instead, set deltaBasis: target. When that line is crossed, the bot closes the trade. A long put or call and a debit spread have no delta stop: the most either can lose is what you paid.
Hard backstop
Markets can gap. The hard backstop (hardDeltaOffset) sits a little beyond your delta stop and catches a move that jumps clean past the regular stop between two checks. It's the firm line that closes the trade no matter what, a safety net so a fast move can't slip through.
A quick note that applies to every delta and loss stop: a breach has to persist for a brief moment before the close fires. A single-tick spike that immediately snaps back does not stop you out. The engine waits to confirm the level really held before it acts.
Only the stops that close a trade at a loss count toward a bot's daily stop limit (maxDailyStops): the delta stop and hard backstop, the value and loss stops below, the buy-back ceiling (maxStopValue) and a safety stop filled at IBKR. A profit target, the breakeven lock, a trailing stop, the timed exit and a close you make yourself never count, and each position counts at most once. A restart keeps the day's count, so a bot that reached its limit stays at it.
Value / loss stops
Instead of (or alongside) delta, you can stop on the trade's dollars. These come in a few flavors:
- The position's value reaching a multiple of the credit you took in (
lossPercent). - A specific dollar value on the position (
lossValue). - The index trading a set fraction of your short strike past it (
lossITM), not points: a 3950P at0.005stops below 3930.25. Credit positions only; on a strangle or a whole-mode iron condor either side closes the whole position, and on an independent-mode condor each side closes only itself.
Each expresses the stop in different terms, and any of them can be set on a bot. On a long put or call or a debit spread, lossPercent and lossValue are floors instead: lossPercent: 0.5 sells the position once it is worth half of what you paid, so there lossPercent must be below 1 (a bot set to 1 or more is refused when you save it). A Calendar or Diagonal runs no value-based exit (lossPercent, lossValue, maxStopValue, the breakeven lock, a profit target or a trailing stop): it exits on its delta stop, lossITM (when it opened for a credit), its timed exit or a close you make yourself.
Breakeven lock
Once a trade is comfortably ahead, the breakeven lock (breakevenAt) makes sure a winner can't turn into a loser. After you've captured the fraction of the credit you specify (on a long put or call or a debit spread, that fraction of what you paid), the rule arms: if the position drifts back to zero P&L, it closes there. You keep the trade from giving everything back. If TradeMint restarts after the lock (or a trailing stop) has armed, it comes back armed.
Profit target
The profit target (profitTarget) takes the win when the trade has made what you asked for, expressed as a fraction of the maximum profit. Set 0.9 and the bot closes once 90% of the potential profit is captured. On a long put or call or a debit spread it is a gain on what you paid: 0.5 closes once the position is worth 1.5 times its cost, and it can go above 1: 3.0 closes at four times the cost. On a credit spread (not an iron condor) you can also stage partial harvests on the way to the main target, taking a piece of the position off at an earlier capture level and letting the rest keep running under its full set of stops.
The short side comes off first
Whenever a stop or target fires on a position that has a short leg, the bot closes the short side first. The short leg carries the open-ended risk, so it is bought back before anything else happens.
That includes a debit spread: it closes by buying back the leg you sold first, then selling the leg you bought. Two cases have no short to close at all: a long put or call is a single bought option, so closing it means selling it. If a long put or call can't be sold after repeated tries, it is not abandoned: it is kept and watched like a kept long, sold once a bid at or above your salvageFloor appears, or left to expire. And a kept long left behind by an earlier stop (#L) is sold on its own terms once a real bid appears.
Two exits are not legged. The first is a resting profit target on a credit spread. It is a single order for both legs, working at the exchange, so when it fills the short and the long close together, and the long is not kept or trailed whatever you set for it. If TradeMint restarts while it is working, the resting target is placed again, sized to what the spread still holds.
The second is the safety stop TradeMint places at IBKR while its own live prices are missing (see If live prices stop below). On a spread or an iron condor it is one order that closes every leg, so when it fills the long closes with the short whatever secondary is set to, and the trade shows as Safety Stop (IBKR).
Once the short is confirmed bought back, the long wing is handled according to how you set the bot up:
- Sold to capture whatever value it has left, or
- Kept and managed on its own (for instance when there's no reasonable bid for it yet), and tracked until it can be sold or expires.
Either way, the risk leg is off first and the long is dealt with second.
If live prices stop
Every stop on this page is checked against live prices from Interactive Brokers. If those prices stop arriving, for example because your IBKR login is open on another device, TradeMint can't check the stops itself. So once a position has gone about 45 seconds without a fresh price, TradeMint places a safety stop order at IBKR for it, at the level where the bot's own stop would have fired. IBKR watches that order with its own prices and closes the position if the level is reached. When live prices return, TradeMint cancels the safety stop and goes back to checking the stops itself.
A trade closed this way shows as Safety Stop (IBKR). The safety stop is a stop-limit order: once triggered it won't pay more than a set amount above its trigger, and never more than the spread's full width. It covers credit spreads, iron condors, strangles and naked short puts and calls. A strangle or a whole-mode iron condor gets one safety stop for the whole position, at whichever side's stop would fire first; each side of an independent-mode condor gets its own, like a credit spread; a naked short gets a stop on that option. Bought options (debit spreads, long puts and calls) don't need one: the most they can lose is what you paid.
Confirmed flat, never assumed
A close isn't treated as "done" just because an order message came back. The engine verifies the position is actually flat against your broker's live account. If a close can't be confirmed, it keeps working until it is, up to the market's close: no order works past 4:00 p.m. ET (1:00 p.m. on a day the market closes early). A close still unfilled then is cancelled, and that position settles at expiry like one you held to the close.
A live position is never quietly marked closed. This is the guarantee behind every exit on this page: the trade is only finished when your broker's account agrees it's finished.
Iron condor exits
An iron condor goes on as a single four-leg order at one net credit, so the put side and the call side open at the exact same instant. From there, depending on how you set the bot up, the two sides are managed one of two ways:
- As two independent spreads (
condorStops: independent). The put spread and the call spread each get their own stop and each close on their own. One side stopping out buys back only its two legs; the other keeps running and settles separately. Each side runs its own block (stop.put/stop.call) plus any bot-level exit that block doesn't set itself (the profit target, loss stops, breakeven lock, trailing stop and timed exit), each measured against that side's own credit. Delta stops come from the side blocks only. A side's grace period and close order style come from its block, else the bot's. A side's wing always closes with its short. - As one combined position (
condorStops: whole, the default). A trigger on either side (a delta stop, or a combined loss or profit target) closes the whole condor at once. The bot-level loss stops, profit target, trailing stop (on the combined value) and timed exit apply to the combined four-leg position; a value set in a side block applies to the whole condor too, at whichever level would fire sooner. Each side's delta stop keeps that side's owndeltaCheck, grace period and close order style. The delta shown for the condor is its riskier side's, the number its stops measure. A whole condor with no exit set at all rides to expiry.
Whichever way you run it, the short-first and confirmed-flat rules above still apply.
After a restart, a condor picks up the exits it had, including an armed breakeven lock or trailing stop. If the restart lands while a whole condor is being closed and one side is already bought back, TradeMint finishes closing the other side straight away. If one side of a whole condor was closed some other way, for example by hand in IBKR, the side still open is watched on its own: it keeps that side's delta stops, lossITM, deltaCheck, grace period and close order style, and its timed exit, but no profit target, trailing stop, breakeven lock or value-based stop (lossPercent, lossValue, maxStopValue), since half a condor has no credit of its own to measure them against.
Riding to expiry
TradeMint does not force your 0DTE positions flat at the close. Some bots are built simply to hold to expiry and let SPX cash-settle. For those, live monitoring wraps up at the market close and settlement does the rest, so there's no scramble to close in the final minutes.
Whether a trade was stopped out, hit its target, or rode all the way to settlement, the realized result still lands in your P&L and performance history. Your numbers are always complete.
Closing a trade yourself
You never have to wait for a bot's own rules. You can step in and close any position at any time.
From the dashboard. Your open positions are listed with live marks, and you can close any of them directly.
Over Telegram.
/closelists your open positions, each with a tap-to-close button and a confirm step. You can also close a whole group at once:/close <tag>closes every open position carrying that tag, and/close allcloses everything. (/positionsshows today's positions with live marks, but it is text-only; use/closefor the tap-to-close buttons.)/btcsuspends automatic profit-target closing, so a position won't auto-close when it reaches its target. That is useful when you'd rather let a winner keep running. Send it again to re-arm the target. It only affects bots that use a profit target.
/close (or the dashboard) closes any position by hand at once, and /btc suspends automatic profit-target closing so a winner can keep running until you re-arm it.Every manual close runs through the same short-first, confirmed-flat path as an automatic exit, and it lands in your P&L the same way.