Spread Construction
How the engine combines individual strikes into a complete spread. While strike selection determines where each leg lands, spread construction controls how those legs relate to each other.
Overview
A spread has two legs: a short leg (the option you sell) and a long leg (the option you buy for protection). The engine supports several ways to specify how these legs are chosen, depending on what matters most to you — fixed width, fixed premium, or independent control of each leg.
Short Leg + Wing Width
Anchor the short leg using any strike selection method (delta, offset, premium, etc.), then place the long leg a fixed number of points away. The spread width stays constant; the premium collected varies with market conditions.
Example
Short leg at 16-delta put, wing width of 50 points. If the engine selects the 4950 put as the short leg, the long leg goes at 4900.
For credit spreads, the long leg is placed further out-of-the-money. For debit spreads, it’s placed closer to the money.
Independent Short + Long
Specify both legs independently using their own strike selection methods. The spread width is not fixed — it varies based on where each leg resolves.
Example
Short at 16-delta, long at 5-delta. On volatile days the spread might be 80 points wide; on calm days it might be 30 points. Each leg is anchored by its own delta.
This is useful when you want each leg positioned at a specific probability level regardless of the resulting spread width.
Long Leg + Wing Width
The reverse of short + wing width: anchor the long leg first, then offset the short leg by a fixed width. This is typically used for debit spreads where the long leg is the primary leg.
Example
Long leg at 40-delta call, wing width of 10 points. The engine buys the 40-delta call and sells a call 10 points further out.
Target Premium
Instead of fixing the width, you can specify a target dollar premium for the spread. The engine searches for the long leg that produces a spread closest to your target.
It works in two ways depending on what you anchor:
- Short leg anchored — the engine resolves the short leg first, then searches all available long strikes to find the one closest to your target premium
- Long leg anchored — same idea but reversed: resolve the long leg, then search for the short strike
Example
Short at 16-delta put, target credit of $3.50 with $0.50 tolerance. The engine finds the 16-delta put, then picks the long strike that makes the spread worth closest to $3.50. If no combination falls within ±$0.50 of the target, the day is skipped.
An anchored leg also works with a min credit (or max debit) instead of a target: the engine picks the tightest spread that still collects at least the minimum credit (or the widest one that costs no more than the maximum debit).
Anchored leg + wing width. If you anchor a leg (e.g. “short 10 delta”) and give a wing width, both strikes are already fixed, so the engine builds that spread and the target premium is not used. Leave the wing width out when you want the target to choose the second leg. With a wing width and no anchored leg, the target does pick the spread: the engine searches strike pairs at that width (see Wing Width + Premium Constraint).
When position sizing is based on spread width, contracts are sized using the actual width of the spread the search finds — which can vary day to day.
What it needs: a target credit plus either an anchored leg (short or long, by delta, offset or price) or a wing width (see the next section). With neither, there is nothing to search around and the run is refused. A tolerance is optional: without one the engine takes the closest spread it finds; with one (e.g. ±$0.15) it skips days where nothing is that close.
Prompts that work
“SPX 0DTE put credit spread at 10:00, short 10 delta, target credit $1.50 ± $0.15.” — anchored short leg, the long leg is searched.
“SPX 0DTE put credit spread at 10:00, 10 wide, collect about $2.70.” — fixed width, the strike pair is searched.
“SPY 14 DTE put credit spread, $2 wide, collect about $0.40.” — the same search on a multi-day backtest.
Multi-day backtests. Target credit works the same way when Target DTE is above 0: wing width + target searches the strike pairs at that width, and one anchored leg + target searches the other leg. The tolerance works the same too. Shapes where the target could not be used are refused with a clear message instead of being run without it:
- an anchored leg (short, long or a delta) plus a wing width plus a target
- both a short and a long leg plus a target
- a target with no wing width and no anchored leg
- a tolerance with no target
- a target on an instrument other than a credit spread, debit spread or iron condor
For a debit spread the target is the debit you pay. When a target is set, the trade log gets target_credit, target_credit_tolerance (if set) and target_credit_diff (actual credit minus the target), so you can check how close each trade came.
Note: older multi-day backtests ignored the target credit and used a 30-delta short strike instead, so a target run and a 30-delta run gave the same trades. Re-running a saved multi-day backtest with a target credit may give different (now correct) results.
Iron Condor Spreads
An iron condor has two spreads — a put side and a call side. You can configure them in three ways:
- Symmetric — one set of parameters applies to both sides (same delta, same width)
- Independent sides — the put side and call side each get their own spread construction parameters (different strike selection, different widths, different premium targets)
- Matching credit — one side is built normally (the anchor), and the other side automatically searches for a spread that collects the same credit. You can constrain the matching side with a fixed delta (engine varies width) or a fixed width (engine varies strikes). If neither is specified, the engine uses the anchor side’s delta and varies width.
Example — independent sides
Put side: short at 16-delta, 25-point wings. Call side: short at 10-delta, 50-point wings. Each side is built independently using any of the spread construction methods on this page.
Example — matching credit (fixed delta)
Put side: short at 16-delta, 25-point wings. Call side: match credit, short at 10-delta. The engine builds the put spread first, then fixes the call short leg at 10-delta and tries different wing widths until it finds one that collects the same premium as the put side.
Target credit on multi-day iron condors. You can set the target once for the whole condor (the Symmetric form) or on each side. A single target applies to both sides: for example, 5 wide with a target of $1.00 searches a 5-wide put spread near $1.00 and a 5-wide call spread near $1.00. If you fill in one side yourself, that side keeps what you wrote and takes anything you left blank (short, long, width, target, tolerance) from the whole-condor settings. A matching-credit side takes only the width and tolerance, since its target is the other side’s credit. Min/max credit filters are not copied into the sides. A side cannot have both a target and matching credit, and the same shapes listed above are refused on each side. The trade log shows each side’s target and actual credit (put_target_credit, put_side_credit, call_target_credit, call_side_credit).
Butterfly Spreads
Butterflies use a body (center) strike plus a fixed wing width. The body is selected using any strike selection method, and the wings are placed symmetrically on either side. Each variant supports two directions:
- Iron butterfly — four legs (puts + calls at the same body). Default direction is short: sell ATM straddle, buy wings → credit. Flip to long to buy the straddle and sell wings → debit, profiting from a big move away from the body.
- Put / Call butterfly — three legs using a single option type. Default direction is long: buy lower wing, sell 2× body, buy upper wing → debit, profits when price pins at body. Flip to short to sell the wings and buy 2× the body → credit, profits when price moves outside the wings.
P&L summary
| Variant | Direction | Max profit | Max loss |
|---|---|---|---|
| Iron butterfly | Short (default) | Credit received | Wing width − credit |
| Iron butterfly | Long | Wing width − debit | Debit paid |
| Call/Put butterfly | Long (default) | Wing width − debit | Debit paid |
| Call/Put butterfly | Short | Credit received | Wing width − credit |
Use the Direction field in the config editor (or set instrument.long in JSON) to override the default. Leave it on Default to follow the standard convention.
Reading entry and exit prices: the trade log’s Entry and Exit columns show the position’s value when opened and closed. For debit butterflies a winning trade exits above its entry. For credit butterflies it’s the reverse — the entry shows the credit collected, and a winning trade exits below it (the position got cheaper to buy back), down to $0.00 on a full win. A losing credit butterfly exits above its entry credit.
Note: older saved 0DTE backtests of short call/put butterflies could display the exit price moving in the wrong direction (e.g., a max-loss stop showing an exit near zero instead of the full buy-back cost). This was display-only — P&L and all statistics were always computed correctly — and re-running the backtest shows the corrected exit price.
Fill Prices & Slippage
When the engine enters or exits a position, it computes a fill price from the actual bid and ask quotes in the historical data. Two settings control how realistic those fills are:
Fill quality (entry and exit)
Fill quality controls where in the bid-ask spread the engine assumes you get filled, on a scale from 0 to 1:
- 0 (default) — mid price. The engine assumes you buy and sell at the exact midpoint between bid and ask. This is the most optimistic assumption.
- 0.5 — halfway between mid and the full spread. A moderate friction assumption.
- 1.0 — full bid/ask. You sell at the bid and buy at the ask. Most conservative.
One-sided quotes on illiquid strikes
Far out-of-the-money strikes sometimes have a one-sided market in the historical data — for example a standing bid but no ask. You can’t actually buy an option that nobody is offering, so the engine treats such a strike as unfillable for buying: when picking long legs and wings, it skips strikes with no ask instead of pretending to buy them at an artificially low price. Selling a leg requires a normal two-sided market.
Note: older backtests could “buy” a wing on a one-sided quote at a price below the standing bid, which inflated the entry credit of spreads with illiquid wings. After this correction, re-running such a backtest may select a slightly different wing, show a slightly smaller entry credit, or skip the entry with a no_quotes reason when no fillable strike exists. Entries where every leg had a normal two-sided quote are completely unchanged.
Slippage (exit only)
Slippage is a flat dollar amount added to the cost of closing a position. The default depends on the underlying — $0.05 for SPX and $0.02 for SPY / QQQ — applied once per closing transaction, not per leg. It represents the friction of actually getting out of a position in a live market (queuing for fills, price movement between decision and execution, etc.). See Price Modeling for the full details, including how iron condors managed per side are charged when their sides close at different times.
Slippage is only charged on exit. Entry prices are not adjusted by slippage — only by fill quality.
Changing the defaults
Both values are set in the fills section of the strategy config:
You can ask the AI to adjust these — for example: “model more conservative fills with quality 0.5 and $0.10 slippage.”
When No Spread Is Found
If the engine can’t construct a valid position — no strikes match your criteria, premium is outside tolerance, or quotes are unavailable — it skips that entry. This shows up as a skip row in your trade log (never as a loss), with a reason telling you which gate stopped it:
no_quotes— the chain was empty at entry time, or the required strikes had no usable two-sided market.no_spread— quotes existed but no strike combination satisfied your selection rules (delta target, wing width, target premium tolerance).wing_outside_chain— the anchor leg was found, but the strike one wing width away from it was not present in that day’s stored option chain, so the exact structure you asked for could not be built. See below.credit_filter/debit_filter— a position was found but its entry credit (or cost, for debit positions) fell outside your configured bounds.
wing_outside_chain — the width you asked for wasn’t listed that day
When you give a wing_width and let the engine pick the other leg by delta (or by any other strike descriptor), the wing is placed at exactly that distance from the leg it resolved: anchor ± width. If the chain that day does not list a strike there, the day is skipped and labelled wing_outside_chain. On an iron condor you will see it per side, as put_side_wing_outside_chain or call_side_wing_outside_chain.
What you will actually see. On a skipped day the reason is written into the Strikes column of that row in the trade log, because there are no strikes to show. For a single credit or debit spread it reads:
The side (PUT / CALL) and the width are the ones you configured, so you can read straight off the row which wing could not be placed. On an iron condor the row instead names the side and the code — Could not find put spread — put_side_wing_outside_chain — and the remedy is the same one described here.
Why we skip instead of using a nearby strike. A $15 wing when you asked for $20 is not a rounding difference — it is a different position, with different maximum loss, different margin and different P&L. Silently substituting it would quietly change what your backtest is measuring, and the days it happened on would be invisible in the results. We would rather show you a skip row you can count than a trade you did not configure.
The anchor leg is allowed to move a little, and only a little. Everything above is about the wing. The anchor — the leg your delta or strike descriptor resolves first — moves to the nearest strike the exchange actually listed that day, and the wing is then measured from where it landed. A trade is placed and there is no skip row, because on a normal chain that move is smaller than the gap between two strikes.
Beyond half a strike step, it skips instead. If the nearest listed strike is further away than that, the day is skipped with anchor_outside_chain rather than filled somewhere you did not ask for — the same promise the wing already carries, one leg over. The limit is half of that day’s own grid step, so it is 2.5 points on SPX’s $5 ladder and 50 cents on a $1 ETF ladder, without you having to configure anything.
That is the right behaviour on a normal chain: the exchange’s grid is not your arithmetic, so a descriptor that computes 4948 has to resolve to a listed strike. The question is how far it moves. We measured it over 5,184 resolutions, sampled across nine years of SPX: when the strike you asked for falls inside that day’s listed range, the move is rounding-scale — a median of 1.2 points, with 99.6% landing within half a $5 step, and the largest move in nine years was 11.4 points.
The larger moves in that measurement happened for a different reason: not a hole in the chain, but a target past the end of it. Ask for a strike 200 points from the money on a day whose stored chain does not reach that far, and there is nothing near it to resolve to. Those are the cases that now skip rather than landing on the outermost strike there happens to be. They are wing-sized distances rather than anchor distances — at 0, ±25 and −50 points the rate of any move beyond half a grid step was 0.0%, so a normal anchor is unaffected by the limit.
Two different things cause this, and only one of them is the market. Near the money the listed grid is sometimes coarser than usual — during the March 2020 volatility, for instance, the SPX grid around spot was $10 rather than $5 — so some requested widths are genuinely unbuildable that day no matter how complete the data is. That one is the market, and no amount of re-fetching produces a strike the exchange never listed.
The other one can be us. Every chain we store has an outer edge, and a wide wing will eventually run past it — but where that edge sits is our decision, not the exchange’s. We store a range of strikes around the money rather than the entire listed chain, and we have found days where that range was cut too close to spot, so a wing that the exchange did list had nothing to land on. We have repaired days like this, and we expect to find more. Note that a repair only reaches your results once the corrected data has been published to the service — so a date can still come back the old way for a while after we have fixed it. See Data & Methodology → known data limitations for what has and has not been measured.
Practically: if a wing fails at a width that is a valid multiple of the strike grid, and it fails on the same dates no matter how you move the anchor, that is worth reporting with your Backtest ID rather than tuning around.
What you can do about it:
- Match the symbol’s strike grid. Pick a width that is a whole multiple of the increment the underlying trades in — $5 on SPX, $1 on SPY and QQQ. A width that isn’t a multiple of the increment can never land on a listed strike.
- Prefer a coarser multiple on days you care about. A width that is a multiple of the coarser grid (say $10 or $20 on SPX rather than $15) survives the days when the near-money grid widens.
- Narrow a very wide wing. The rate climbs sharply with width: across our SPX and SPY history, ordinary widths of 1–20 points hit this on about 0.13% of days, while a 50-point wing on SPX hits it on about 4.9%. A handful of skips is normal; a large fraction of your days means you are asking for a wing the chain generally doesn’t carry.
- Check the skip count first. Because these days are skipped rather than filled, a config with a lot of them is being backtested on fewer days than you think. Sort the trade log by skip reason before you read the statistics.
wing_outside_chain is a diagnostic label, not a setting — there is nothing to turn on or off. It previously appeared as the generic no_spread; re-running an older backtest will relabel those days, but will not change any trade or any P&L.
This applies to every strategy type — credit spreads, iron condors, butterflies, and long options — and to every scheduled entry time. See the Entry Rules page for the full list of skip reasons, including the market-filter ones.
Tighter constraints (narrow tolerance, high min credit, specific delta + target premium) mean more skipped days. Looser constraints mean more trading days but potentially less ideal entries.
Note: butterfly and long-option strategies, and credit spreads with multiple entry times, previously skipped these days silently — no skip row was recorded. Re-running an older backtest may now show skip rows on days that previously just looked empty. The trades themselves are unchanged.