Exit Rules
How and when the engine closes your position. Multiple exit rules can be active at the same time — the first one triggered wins.
Profit Target
Close the position when your profit reaches a threshold, specified as a percentage of the entry price.
The percentage base depends on the instrument:
- Credit spreads, iron condors, butterflies (credit) — percentage of the entry credit received. A 75% target on a $2.50 credit triggers at +$1.875 profit. (The credit is the most a credit position can earn, so “75% of max profit” means the same thing.)
- Debit spreads, long options — percentage of the debit paid. A 75% target on a $4.00 debit triggers at +$3.00 profit — not 75% of the spread’s theoretical max profit.
Credit spread — 75% profit target
Entry credit: $2.50. Target triggers when P&L ≥ +$1.875 (75% × $2.50). The exit fills at that minute’s close, so the gain you get can be lower than $1.875, for example when the target was touched only inside the minute (see Monitoring Precision).
Debit spread — 75% profit target
Debit paid: $4.00. Target triggers when P&L ≥ +$3.00 (75% × $4.00). The spread may be worth more than $4.00 if the underlying moves far enough, but the target is anchored to the debit, not to the maximum theoretical profit.
Higher profit targets capture more premium but require waiting longer. Lower targets lock in gains faster but leave money on the table.
Dollar profit targets are available for the flip and double-down legs of an adjustment strategy (and for per-side iron condor exit overrides) — see Adjustments. The main position’s profit target is always percentage-based; a dollar target configured at the top level has no effect on it.
Note: long butterflies previously measured percentage targets and trailing stops against the theoretical maximum profit instead of the debit paid. They now follow the same debit-based convention as all other debit positions, so older long-butterfly backtests with percentage targets may show different results when re-run.
Stop Loss
Close the position when your loss exceeds a threshold. You can specify this as a percentage or as a fixed dollar amount per contract.
Like profit targets, the percentage base is the entry price — credit received for credit instruments, debit paid for debit instruments:
- Credit spreads — percentage of the entry credit. A 200% stop on a $2.50 credit closes at a $5.00 loss.
- Debit spreads, long options — percentage of the debit paid. A 50% stop on a $4.00 debit closes at a $2.00 loss.
Credit spread — 200% stop loss
Entry credit: $2.50. Stop triggers when loss ≥ $5.00 (200% × $2.50). You risk $5 to make $2.50.
Fixed dollar stop loss
Stop loss of $3.00 per contract. The engine closes once the position is down $3.00, regardless of the entry price.
A dollar stop loss can be applied two ways — choose with the stop’s unit:
- total (default) — the dollar figure is the maximum loss for the whole position. A “$1,000 total” stop closes the trade once its combined loss reaches $1,000, no matter how many contracts the trade holds. This cap now stays fixed regardless of how large a trade sizes into.
- per_contract — the dollar figure is applied per option contract. A “$3 per contract” stop on a 10-contract trade allows up to $3,000 of loss; the limit scales with position size.
Total vs. per-contract stop
A trade sizes into 50 contracts. A $1,000 total stop closes it at a $1,000 loss. A $20 per-contract stop on the same trade closes it at a $1,000 loss too ($20 × 50) — but if the next trade sizes into 100 contracts, the per-contract stop allows $2,000 while the total stop still caps at $1,000.
This matters most with dynamic position sizing (percent-of-account, fixed-risk, fixed-width), where the contract count changes from trade to trade. A total stop holds the same dollar ceiling on every trade even as the account — and the position size — grows.
Note that the SL Basis setting (side vs. total credit, used with per-side iron condor exits) applies to percentage stops only — it chooses which credit the percentage is measured against. A dollar stop is an absolute threshold with no credit to reference, so combining a dollar amount with a basis of total is rejected as a configuration error. If you want a dollar stop measured across the whole position, that is exactly what the total unit above does.
Both the dollar amount and its unit can be set directly in the strategy editor’s Exit section (Max Loss ($) and SL Unit). Leaving the unit at $ total is the default; clearing the dollar amount removes the dollar stop and falls back to the percentage stop. Note that clearing the field and setting it to 0 are not the same thing: a stop amount of 0 is a real stop at breakeven, and the backtest runs it that way. (Earlier versions rejected 0 with “must be a positive number” on some paths and accepted it on others; it is accepted everywhere now. Negative amounts are still rejected — a negative stop would fire the instant the trade opens.) A strategy saved earlier with a different unit setting keeps its original behavior — the editor shows the saved unit as-is and leaves it untouched until you explicitly pick one of the standard options.
Note: backtests saved before this behavior was corrected may show losses that ran past a total stop on larger trades. Re-run an older saved backtest to reflect the corrected stop-loss behavior.
Tighter stops reduce tail losses but increase the number of losing trades due to normal intraday fluctuation. Wider stops give positions more room to recover but increase downside per trade.
Fixed dollar stops work on all position types — credit and debit alike. On strategies with independently sized legs (flip and double-down legs, or an iron condor managed per side), a dollar stop configured for the total position is measured against that leg’s own contract count, so each leg’s stop reflects its actual size.
Note: dollar stop losses on debit positions (debit spreads, long options, long butterflies) were previously not applied — those positions fell back to the default percentage stop. Dollar stops on debit positions now trigger as configured, so older backtests using them may show different results when re-run. Percentage-based stops are unaffected.
Trailing Stop
A trailing stop locks in profits once a position reaches a certain profit level, then follows the profit upward and exits if it drops back by a set amount.
It has two components, each a percentage of the entry price:
- Trigger — the profit level that activates the trailing stop (e.g., 30% of the entry credit)
- Trail — how far profit can drop from its peak before closing (e.g., 20% of the entry credit)
Example
Credit of $2.50, trigger at 30% ($0.75 profit), trail of 20% ($0.50). Once profit reaches $0.75, the trailing stop activates. If profit climbs to $1.50 and then drops back to $1.00 (a $0.50 drop), the position closes — locking in $1.00 of profit.
Trailing stops are useful when you don’t want to leave a fixed profit target on the table during strong trends, but still want protection against reversals.
A trailing stop can close at a loss. It is checked once a minute and fills at that minute’s closing quote (see Monitoring Precision). On 0DTE the quotes are used as recorded: they are not filtered or smoothed, so a one-minute price spike can trigger the trailing stop and fill at a loss (never more than the spread’s max loss). On multi-day, a single leg whose bid/ask suddenly widens to more than 4× its normal width is ignored for up to 2 minutes; a wider market that lasts longer is used.
Example (SPX 0DTE, 2025-07-16): a $0.80 put credit spread cost $0.30 to close at 10:53 (up $0.50). During the 10:54 minute SPX fell about 14 points and both puts roughly tripled, so the spread cost $1.10 at that minute’s close and the trailing stop closed it for −$0.30. The market then calmed: six minutes later the same spread cost $0.70. A trailing stop locks in the price of the minute it fires, even if prices come back. Note that Spot Out shows the index at the start of the exit minute, so on a fast minute it can differ from the price the fill was based on.
Like dollar profit targets, dollar trigger and trail amounts are available for flip and double-down legs (and per-side iron condor overrides) — see Adjustments. The main position’s trailing stop is percentage-based.
Holding to Expiration
Say “hold to expiration” (or “hold until expiry”, “let it expire”) and the position is held to the close with no time exit. On multi-day, Review shows it as Multi-Day → Hold until expiry. On 0DTE the position settles at the 4:00 PM close, so Review shows it as Time Exit 16:00.
A clock time (“exit at 15:50”) is a time exit, not hold-to-expiry. On multi-day trades, holding to expiration and closing at a DTE (“close at 21 DTE”) are opposites: if you ask to hold to expiration, no DTE exit is added, and a config that asks for both is refused with an explanation.
Time Stop
Close or let the position expire at a specific time, or after a certain number of minutes from entry. There are two behaviors:
- Close — actively buy back the position at market prices
- Let expire — hold through to expiration and settle at intrinsic value
Example
“Close after 60 minutes” — if you enter at 9:35, the engine closes the position at 10:35 regardless of P&L.
A time exit can be set three ways:
- A time of day (e.g.
15:30) — the engine closes the position at that time at market prices. For 0DTE strategies, that’s the trade day itself. A 0DTE time exit in the last 5 minutes (15:55 or later, e.g. “hold to 15:59”) is treated as holding to the close: it settles at the spread’s intrinsic value at that minute’s spot (the Spot Out in the trade log), the same at any fill quality, because quotes in the final minutes are often missing or out of line with the index. A stop, target or trailing stop that fires in those minutes is still a close at market, except that a credit position never closes for less than its intrinsic value at that minute’s spot (a quote below that is broken). For multi-day strategies, the close happens on the expiration day: the position is held normally on every earlier day, then closed at the configured time on its final day instead of riding to settlement. The trade log shows atime_exitexit reason. To close on an earlier day, use a DTE exit (“close N days before expiration”) — the time of day then applies on that DTE day instead. DTE is counted in calendar days, so it jumps over a weekend or holiday (Friday is 3 DTE for a Monday expiration, Monday is 0). A DTE exit closes on the last trading day still at or above the number you gave: “close at 1 DTE” on a Monday expiration closes on the Friday before, and the trade log shows it as exit DTE 3. A day that is already that last day takes no new entry. - A number of seconds after entry (e.g.
1800for a 30-minute time stop) — instead of a clock time, the time exit can be an elapsed duration measured from the moment the position was opened, so an entry at 10:00 closes at 10:30 and an entry at 11:15 closes at 11:45. It is really a time stop written in the time-exit field, and the trade log labels ittime_stoprather thantime_exit. If you also enable the “close after N minutes” time stop, that setting wins and the number here is ignored — so use one or the other, not both. This form is multi-day only. On a 0DTE strategy the time exit must be a clock time or “hold until expiry”; use the “close after N minutes” time stop described at the top of this section for the elapsed-time behaviour there. - Hold until expiry — no time-of-day close; the position settles at expiration. This is the multi-day default, and it is accepted on 0DTE strategies too: there it means the 4:00 PM market close (1:00 PM on half-days — see below), which is when a 0DTE position settles.
Example — multi-day, close at 15:30
A 7 DTE credit spread with a 15:30 time exit. The position is held and monitored for the full week; on expiration day, if no other exit has triggered, it is bought back at 15:30 instead of settling at the close. The trade log shows a time-exit close at 15:30.
A time exit that isn’t one of the three forms above now produces a clear configuration error before the backtest runs, instead of being silently ignored. A clock time outside 09:30–16:00 ET is rejected the same way. Note that a plain number is only meaningful on a multi-day strategy — on a 0DTE strategy it is reported as a bad time of day rather than being read as a duration.
Note: in older multi-day backtests, a time-of-day exit passed validation but had no effect — the position always rode to expiration. It is now honored as an expiration-day close, so re-running a saved multi-day backtest that configured one may show different (now correct) exit times, prices, and results. Separately, “hold until expiry” was previously rejected with a format error in some configurations; it is now accepted everywhere.
Spot Stop (Spreads & Iron Condors)
A spot stop closes a spread or an iron condor when the underlying touches a level between a short strike and its long strike, instead of waiting for the option prices to reach a P&L stop.
The level is set as a % of the spread width, measured from the short strike toward the long strike: 0% is the short strike itself, 100% is the long strike.
Example
A $10-wide call credit spread short at 6000 with a 20% spot stop closes when SPX touches 6002. On a put spread short at 6000 the same 20% means 5998 — the engine works the direction out from the legs.
- It fires on a touch of the underlying’s 10-second high or low, then fills at the next 1-minute quote.
- On an iron condor each side gets its own level, using the same % of that side’s own width: the put level sits below the put short strike, the call level above the call short strike. A touch on either level closes the whole condor. If you use per-side exits, it closes only the side that was touched and the other side keeps running. The trade log shows which side fired. “Close if SPX trades through either short strike” is 0%.
- If option quotes are missing at the moment of the touch (common when the price races through a strike), the touch is not forgotten: the spread, the condor (or that side) closes at the next minute that has a quote. The trade log shows both: Touch Time is when the underlying touched the level, Exit Time is the minute it closed. A touch whose next quote is the 4:00 pm close settles as expiry instead.
- Available on credit spreads, debit spreads and iron condors, in same-day (0DTE) backtests only. It can’t be used on iron butterflies or other butterflies (the short strikes start at the money, so the stop would fire as soon as the trade opens) or on single options (no spread width). It isn’t available on multi-day backtests yet; the backtest will refuse it there.
- A stop on how far the underlying moves in % (“exit if SPX moves 0.3% against me”) is not supported; the chat will say so and offer a stop on the option price instead.
- Set it in Review → Exit → Spot Stop, or say e.g. “spot stop at 20% of the width”. Exits it causes show the reason “spot stop”.
Max Loss Cap
A hard dollar floor on the worst-case loss per contract. For defined-risk strategies (like credit spreads), the max loss is naturally capped by the spread width.
To cap it lower, ask for a dollar stop: “max loss $1,000 per contract”, or in index points, “max loss 10 points per contract”. One point is $100 per contract (options cover 100 shares), so 10 points and $1,000 per contract are the same cap. The trade closes when its loss reaches the cap. Review shows it under Exit → Stop Loss (a points cap appears as that amount per share).
With a % stop as well (“stop at 200% of credit, max loss $1,000 per contract”):
- 0DTE — there is one stop. The dollar cap replaces the % stop; the % is not used. Exit reason: stop loss.
- Multi-day — both are active and whichever is reached first closes the trade. The % stop exits as stop loss, the dollar cap as max loss stop.
It applies to every strategy the chat builds: credit and debit spreads, iron condors (both sides together, or each side on its own with Per-Side Exits), butterflies and long options.
This ensures that even in extreme market moves, the engine records a bounded loss per trade for position sizing and risk management purposes — but only for defined-risk positions, which is every structure the backtester supports (see the next section).
Straddles & Strangles: Not Supported
Straddles and strangles (long or short, 0DTE or multi-day) are not supported by the backtester. If you ask for one, the chat says so plainly and does not build a config.
The closest supported structures, with defined risk (a long option on each side caps the loss):
- Iron condor — a short strangle with protective wings, e.g. “SPX 0DTE iron condor, 10 delta shorts, 25-point wings”.
- Iron butterfly — a short straddle with protective wings, e.g. “SPX 0DTE iron butterfly, 20-point wings”.
The chat offers one of these instead and keeps the rest of your settings (entry time, schedule, exits) as you described them.
Daily Valuation & Equity Curve (Multi-Day)
In multi-day backtests, positions can stay open for days or weeks. At the end of every trading day, the engine values each open position at that day’s closing prices — the same prices and valuation it uses when checking your exit rules — and feeds the unrealized gain or loss into the daily equity curve.
This means the equity curve moves while a position is held, not just on the day it closes. Max drawdown is computed from that daily curve, so a position that goes deeply underwater mid-hold and later recovers still shows up as a drawdown — exactly as it would on a live account statement.
Example — 30 DTE credit spread held 3 weeks
The spread is down $800 in week two, then recovers and closes for a $200 profit. The equity curve dips during week two and the backtest’s max drawdown includes that $800 swing — even though the trade itself ended green.
Daily valuation also respects each position’s theoretical P&L bounds. A defined-risk structure (vertical, iron condor, butterfly) is never marked above its maximum profit or below its maximum loss — so a bad or crossed quote at the close can’t make the equity curve or max drawdown show a value the position could never actually realize. This matches how closed trades are already valued.
Daily valuation uses your configured fill model — the same fill quality and slippage settings (or per-underlying defaults) that price your entries and exits. See Slippage in Price Modeling for the defaults and how the values resolve.
For iron condors managed per side, daily valuation respects partial closes. Once one side has closed — say the call side stopped out while the put side is still working — the daily mark is the closed side’s locked-in realized P&L plus the open side’s current market value. The closed side’s contribution never moves again: its quotes can keep fluctuating in the market, but that no longer affects your equity curve, because you no longer hold it. The open side’s market value is capped at that side’s own bounds — it can never be marked above its own credit or below its own maximum loss.
Note: in older multi-day backtests, open positions were valued at roughly $0 unrealized P&L on most days they were held, so the equity curve only moved when positions closed and max drawdown missed mid-hold swings entirely. This has been corrected — re-running a saved multi-day backtest will show a more realistic daily equity curve and, typically, a larger (accurate) max drawdown. Separately, per-side iron condors with one side already closed used to re-value the whole structure at market each day, so the closed side’s post-close quote movement could leak into the equity curve until the position fully closed. That has also been corrected.
Forced Closes When Quotes Go Stale
Deep in-the-money options often stop trading actively, so their quotes can be missing or stale right when a multi-day backtest needs to force a position closed — at a DTE exit, at expiration settlement, or when one side of a per-side iron condor must be closed on its final day.
When that happens, the engine never records a fictitious $0 for the close. Instead it falls back, in order:
- Intrinsic value — the position is priced from the underlying’s price at (or nearest to) the close, which is exactly what a deep-ITM option is worth at settlement.
- Last valid value — if no underlying price is available either, the engine uses the most recent P&L it computed from real quotes, carried across days if needed.
Example — deep-ITM put spread at DTE exit
The underlying has fallen far through both strikes and the options no longer have usable quotes on the exit day. The spread settles at its full intrinsic loss — not at $0.
The order above applies to closes at or near settlement, where intrinsic value is the right price for a deep-ITM option. Force-closes that fire mid-hold — such as the VIX exit filters below — prefer the most recent real-quote value first instead, because an option closed mid-hold still has time value that intrinsic alone would miss.
The same rule covers long calls and long puts, on 0DTE and multi-day. An in-the-money option whose bid has been pulled (no bid, only an ask) can’t be sold, so it settles at its intrinsic value instead of $0. During the day that minute is skipped, so a pulled bid can’t trigger a false stop. An out-of-the-money option with no market is still worth $0.
Note: older multi-day backtests could record $0 P&L on these forced closes — including one side of a per-side iron condor settling at expiration — which overstated results on big-move trades. This has been corrected; re-running a saved backtest may show larger (accurate) losses on positions that finished deep in-the-money.
Exit Filters (VIX Force-Close)
In addition to P&L-based exits, you can attach market-condition exit filters that force-close an open position when conditions move against you — regardless of where the trade’s P&L stands.
- VIX exit filter — set a minimum and/or maximum VIX bound. While the position is open, the engine checks VIX every minute; if it crosses outside the bound, the position is closed immediately at market prices and the trade log shows a
vix_filterexit reason. Note that older and more recent dates are measured by two different volatility series, so a bound of 25 does not describe the same market condition across a long backtest — check whether your date range crosses the changeover. On 0DTE strategies each trade records the series its own day was measured on, in anexit_vix_instrumenttrade-log column. - Term-structure filters (contango / backwardation) — not available yet. They need VIX term-structure data that is not in the system yet. If you ask for one (“only trade in contango”, “close on backwardation”), the chat says so and offers a VIX level band instead.
How to ask: “close the position if VIX rises above 25” is an exit filter (it closes an open position); “only enter when VIX is below 25” is an entry filter (it skips the day). Both work from the chat.
VIX level exit filters are set by asking in chat — they have no controls of their own in the strategy editor. If a strategy already has one set, the editor says so where the controls used to be. (Term-structure exit filters are not available yet; see above.) They work in both 0DTE and multi-day strategies. Leaving a field blank turns that bound off entirely — an unset filter is removed from the strategy, never treated as zero. On days where VIX can’t be measured, the filter steps aside rather than force-closing on missing data.
That step-aside covers days we have no usable reading for — either our history genuinely doesn’t reach them, or the readings we hold for them can’t be identified as belonging to either volatility series, which we will not guess at. It is not how a fault gets handled. If a VIX reading can’t be retrieved because something has gone wrong on our side rather than because the day has no reading, the backtest now stops with an error instead of continuing as though you had never set the bound. That is deliberate, and it is the same rule the IV rank filter follows: a run that quietly drops a filter you configured holds positions you asked it to close and returns results that look valid.
And if no usable volatility reading is available for the dates you asked for — the history does not reach that far back, it does not cover that window, or we hold readings for those dates that cannot be identified as belonging to either series — then a VIX exit bound steps aside on every day: nothing is ever force-closed by it, and the run is effectively one with no VIX exit filter set. In that third case the readings exist, but we will not guess which measure they are, and an unidentified reading cannot be compared against a bound; it is the easiest of the three to miss, because the range looks covered. There is no per-day marker for any of this — an inert bound and one that simply never triggered both produce no VIX exit at all. The date range is the thing to check: re-running over a range we hold usable readings for will let the bound do its job.
Example — VIX max of 25
You sell a credit spread with an exit filter of VIX max 25. At entry, VIX is 18. Mid-session, VIX spikes to 26 — the engine closes the spread at that minute, even if the position hasn’t hit its stop loss.
Exit filters apply to all strategy types — credit and debit spreads, iron condors (combined and per-side), butterflies (iron and single-side), long options, and the main spread of flip / double-down strategies. (Straddles and strangles are not supported — see above.)
For multi-day strategies, exit filters are evaluated from the moment the position opens — including the entry day itself — and on every day the position is held.
These filters are checked on every monitored minute — including minutes where the position’s own option quotes are missing or stale. VIX is measured independently of your option quotes, so a spike doesn’t go unnoticed just because the options briefly stopped printing usable prices. If a filter fires during such a stretch, the position is still closed at that minute, valued at the best available price: the most recent value computed from real quotes; if none exists yet, the position’s intrinsic value from the underlying’s price. P&L-based exits (profit targets, stops) still wait for a real quote — they depend on the position’s price, so there is nothing to evaluate them against on a stale minute.
Like every other exit, a filter-triggered force-close is capped at the position’s theoretical P&L bounds. For iron condors managed per side, each side is capped at its own bounds — a side can never record more profit than its own credit or a larger loss than its width minus that credit, even if quotes are bad at the moment the filter fires. In per-side mode each side is judged against its own band, so by default — when both sides use the same filter — the filter closes bothsides at once, including a side whose quotes happen to be stale at that moment; that side uses the same best-available valuation described above.
You can also give each side its own filter band. Put a filters block inside the put-side or call-side exit overrides and it replaces, key by key, whatever the main exit filters say. A side that sets only an upper bound keeps the lower bound from the main filters, so you only write the part you want to change.
Example — close the call side earlier on a volatility spike
The main exit filter force-closes at VIX 30. The call side sets its own upper bound of 22. A rally pushes VIX to 25: the call spread closes, and the put spread stays open until VIX reaches 30 or one of its own exit rules fires. Both sides still share the lower bound from the main filters, because neither side changed it.
Per-side filters take effect only when Per-Side Exits is on, and only for iron condors. When a side overrides a filter, its trades record the band that side actually used and which of the bounds it set for itself, so you can tell an inherited bound from an overridden one.
Note: in older backtests, exit-time VIX filters were only applied to some strategy types, and multi-day positions weren’t checked on their entry day. In addition, per-side iron condor force-closes triggered by these filters were not capped at the side’s bounds, so a bad quote at that moment could record an impossible P&L. Older backtests also skipped the filter check entirely on minutes with stale option quotes — a VIX spike during such a stretch wasn’t acted on until quotes returned, and in per-side mode a side with stale quotes could be silently left open when the filter fired. All of these have been corrected — re-running a saved backtest that uses these filters may produce different (now accurate) results, typically with earlier force-close times.
Per-Side Exits (Iron Condors)
By default, an iron condor is managed as one combined position: profit targets and stop losses are measured against the total P&L of both spreads versus the total credit received, and the whole structure closes together.
Turning on Per-Side Exits in the strategy editor’s Exit section changes that: the put spread and the call spread are monitored independently. Each side can hit its own profit target or stop loss and close while the other side stays open — for example, the call side stops out on a rally while the put side rides to its profit target.
Example — per-side stop loss
An iron condor collects $1.20 on the put side and $1.30 on the call side, with a 200% stop. The market rallies: the call side hits its stop at a $2.60 loss and closes. The put side stays open, decays, and later closes at its profit target. Combined management would instead have closed (or kept) both sides together based on total P&L.
- This setting applies to iron condors only — the toggle is only shown when the instrument is an iron condor, and it has no effect on single-sided spreads.
- When it is off (the default), the engine uses combined monitoring.
- Per-side exit overrides — different profit-target, stop, trailing-stop, time-stop or exit-filter settings for the put and call sides — only take effect when per-side exits are on.
- The SL Basis setting (whether a percentage stop is measured against each side’s own credit or the total credit) also only matters in per-side mode — and only for percentage stops. Combining a dollar stop amount with a basis of total is rejected as a configuration error; use the stop’s total unit for a whole-position dollar stop instead (see Stop Loss).
- Because each side can close at a different time, exit slippage is charged per closing transaction — see Exit Price & Slippage.
Removing an Exit Rule vs. Disabling It
Removing the whole Exit section — or removing one whole rule from it, such as the entire Profit Target block — means “no settings here”, and the engine’s defaults for what you removed apply. Every exit rule is off by default, so in practice clearing a rule does switch it off, and clearing the whole Exit section leaves a strategy that simply rides to the 16:00 settlement default. An emptied Exit section is a valid strategy and runs; it no longer ends a run with an error that names nothing.
Even so, removing a rule and disabling a rule are different statements, and only one of them is explicit. Deleting a rule says you have no opinion and leaves you at the mercy of whatever the default becomes; setting that rule’s own enabled to false says what you mean. Prefer the second, especially in a strategy you will come back to.
Per-side overrides follow exactly the same rule: clearing Put Side → Profit Target means that side has no profit-target override and falls back to the top-level exit settings, not that the put side stops taking profit. To exempt one side, give that side its own explicitly-disabled rule.
This is about removing a whole rule, not about leaving an individual value blank inside a rule you have enabled. That case behaves differently, and it splits two ways. A blank exit-filter field — a VIX bound — means that filter is off, the same on 0DTE and multi-day. A blank threshold inside an enabled profit target, stop loss, trailing stop or time stop is the other case, and that one does still differ by mode. Both are covered in Blank Fields and Engine Defaults, which also states the removal rule in its general form for every section of a strategy.
Monitoring Precision
Open positions are checked every minute from entry until exit or expiration, regardless of how long the position is held. Exit conditions are evaluated against the position’s value at each minute, so recorded exit times and prices land on the minute the condition was actually crossed.
Within each minute, the engine also checks the intra-minute price extremes in both directions. A stop that is breached by a spike inside the minute fires even if prices recover by the minute’s close. A profit target touched inside the minute exits only if the trade is still profitable at that minute’s close; otherwise the engine keeps watching. (The high and low quotes inside a minute are not always printed at the same moment, so a target “touch” alone can be a price nobody could trade.) Either way the exit is filled at the minute’s close. This works for both credit (short) and debit (long) positions. See also Price Modeling → What happens inside a minute.
For defined-risk structures (spreads, butterflies, iron condors, long options), the per-minute P&L is capped at the position’s theoretical bounds. A momentarily stale or unusually wide quote can’t register a loss beyond the structure’s maximum loss or a profit beyond its maximum profit, so stops and trailing stops only react to losses and peaks the position could actually realize.
Note: positions held for more than about two hours were previously checked at a coarser interval (roughly every three minutes), intra-minute extremes were only examined in the direction that hurts short positions, and quote spikes were not capped at the position’s bounds. All three now apply uniformly, so older backtests — especially long-held positions, debit/long positions with stops or targets, and trades stopped out during a brief quote anomaly — may show different exit times, prices, and outcomes when re-run. The new behavior is the more accurate one.
Exit Price & Slippage
When an exit condition triggers, the engine closes the position at the mid price of the current bid/ask quotes, plus a flat slippage charge on the total closing cost ($0.05 by default for SPX; $0.02 for SPY / QQQ). This slippage is deducted from P&L on every exit, regardless of which exit condition triggered it.
The slippage amount and fill quality (0 = mid price) can both be adjusted in the strategy config. See Fill Prices & Slippage in Spread Construction for details.
Slippage is charged per closing transaction. For combined positions that is one charge at close. For iron condors managed per side, each side’s close is its own transaction: two sides stopped out at different times pay two charges; both sides closing at the same minute (for example via an exit-time filter) count as one four-leg close and pay one; a side held to expiration pays its settlement slippage inside that side’s P&L rather than a separate charge. Per-side trade records include early_close_events and exit_slippage fields showing how many charges were applied and their dollar total.
Note: two earlier corrections to per-side slippage. Per-side condors previously charged one extra exit slippage hit when both sides were held all the way to expiration — that now matches combined management (slightly improved results on re-run). Separately, both sides stopping out early at different times previously paid only one charge for two independent closes — those trades now pay two, so older per-side backtests with dual early exits may show slightly lower results when re-run. Both changes make the slippage model consistent: one charge per closing transaction.
Exit Priority
When multiple exit rules are enabled, they are checked every minute in this order:
- Exit filters (VIX level) — checked before all P&L-based exits
- Spot stop (spreads and iron condors) — checked on the underlying before the option prices
- Profit target
- Stop loss — on 0DTE a dollar max loss cap replaces the % stop, so this is one check
- Max loss cap (multi-day, when both a % stop and a dollar cap are set) — checked right after the % stop; the first one reached closes the trade
- Trailing stop
- Time stop
If none of these trigger during the day, the position settles at expiration (0DTE options expire at the end of the trading day).
Market Half-Days (1:00 PM Early Close)
A few days each year, US markets close early at 1:00 PM ET instead of 4:00 PM:
- The day after Thanksgiving — every year (“Black Friday”)
- July 3 — most years, when it falls on a regular trading day ahead of the July 4 holiday
- Christmas Eve (December 24) — most years, when it falls on a regular trading day
Backtests model these half-days correctly. On an early-close day, the trading session — and 0DTE expiration — ends at 1:00 PM:
- Positions that run to expiration settle at the 1:00 PM close, using the underlying price at that time.
- Exit times in the trade log on those days show ~13:00 instead of 16:00.
- Time-based exits scheduled after 1:00 PM (for example, “close at 15:30”) simply settle at the 1:00 PM close on those days.
- Multi-day positions held across a half-day are valued at the 1:00 PM close for that day, and positions expiring on a half-day settle there.
Example — Black Friday
You sell a 0DTE credit spread at 9:35 AM on the Friday after Thanksgiving. No exit rule triggers, so the position runs to expiration — which is 1:00 PM, not 4:00 PM. The trade log shows an expiry exit at 13:00 with the spread settled at the early-close price.
Note: backtests saved before this behavior was corrected handled half-days incorrectly, which could distort the P&L of trades on those dates. Re-run an older saved backtest to reflect the corrected settlement — results that include trades on half-days may change (the new numbers are the accurate ones).
Market Holidays & Full Closures
Backtests follow the official NYSE holiday calendar, including the “observed” rules: when a holiday falls on a weekend, the market usually closes on the adjacent weekday instead (Saturday holidays are observed the Friday before, Sunday holidays the Monday after).
- New Year’s Day exception — when January 1 falls on a Saturday, the NYSE does not close on the preceding Friday. December 31 stays a normal trading day in those years (for example, the market was open on Friday, December 31, 2021). Other Saturday holidays, like July 4 and Christmas, do close the Friday before.
- Ad-hoc full closures — the calendar also includes one-off closures that don’t follow any rule, such as National Days of Mourning (December 5, 2018 and January 9, 2025). The market is closed all day on those dates, and backtests treat them like any other holiday.
Note: older saved backtests treated the December 31 before a Saturday January 1 as a holiday. This only affected multi-day strategies using weekly expirations around those year-end weeks (2021, 2027, 2032) — the engine could pick the wrong expiry or skip an entry. 0DTE backtests were unaffected. Re-run an older multi-day backtest to pick up the corrected calendar.