Manual contents

Reference

Strategies and campaigns

Every strategy ThetaWiz recognizes and the leg shape behind it, how your legs are sorted into strategy groups, how to add your own strategies in a definition file, and how campaigns follow a position through rolls and assignments.

Overview

ThetaWiz works with two layers. A strategy is the structure your open legs form right now, such as a bull put spread or a covered call. Each strategy group on Positions has exactly one. A campaign is a chain of trades on one underlying in one account that ThetaWiz follows over time, such as a Wheel that goes from short puts to shares to covered calls. Campaigns are built from your synced trade history, so earlier, closed trades still count toward the result.

Both are driven by strategy definitions: a description of a leg shape plus how positions of that shape should be managed. The built-in definitions ship with the app. You can turn built-ins off, replace them or add your own in a definition file. See Custom strategies.

Strategies and campaigns only change how ThetaWiz labels, groups and flags your positions. Nothing here places or changes an order.

Built-in strategies

These are the strategies ThetaWiz recognizes on its own, in the order it tries them. The butterflies and the four verticals are each one matcher: it finds the shape, and the shape picks the name. The name is exactly what the app shows. Type is how the strategy is managed on Today: Credit (premium-selling rules), Debit (long-premium rules), Covered call (its own rules) or None (no profit target, stops or management rules). Risk is Defined or Undefined; an undefined-risk strategy also gets the undefined-risk TESTED safety rail on Today.

Recognized from the shape of your legs
StrategyLeg shapeTypeRisk
Zero Extrinsic Back RatioCalls (or puts): two long, one short, same expiry, exactly 2:1 by quantity. The long strike is deeper in the money (below the short for calls, above it for puts).DebitDefined
CollarLong stock, a short call and a long put (100 shares per contract). The two options may have different expiries; the group is then marked approximate.NoneDefined
Covered CallLong stock and a short call. Fewer than 100 shares per contract still counts (partly covered). Skipped when a long put with the same expiry as the call exists, so the Protective Put or Collar can form.Covered callUndefined
Poor Man's Covered CallA long call with at least 180 days to expiry, either now or when you opened it, and a short call that expires earlier.DebitDefined
Protective PutLong stock and a long put. Skipped when a short call with the same expiry exists (that is a collar).NoneDefined
Iron ButterflyLong put < short put = short call < long call, all one expiry.CreditDefined
Iron CondorLong put < short put, and short call < long call, all one expiry.CreditDefined
Long Call Butterfly / Long Put ButterflyThree strikes, one expiry, 1:2:1: long low wing, two short middle, long high wing, with equal wing widths.DebitDefined
Short Call Butterfly / Short Put ButterflyThe same with the sides reversed: short wings, two long in the middle.CreditDefined
Butterfly (Broken Wing)A 1:2:1 butterfly whose two wings have different widths, long or short.CreditDefined
Bull Call SpreadLong call below a short call, same expiry.DebitDefined
Bear Call SpreadShort call below a long call, same expiry.CreditDefined
Bull Put SpreadShort put above a long put, same expiry.CreditDefined
Bear Put SpreadLong put above a short put, same expiry.DebitDefined
Calendar SpreadOne long and one short of the same right at the same strike, different expiries.DebitDefined
Diagonal SpreadOne long and one short of the same right at different strikes and different expiries.DebitDefined
Long StraddleLong call and long put, same strike and expiry.DebitDefined
Short StraddleShort call and short put, same strike and expiry.CreditUndefined
Long StrangleLong call and long put, different strikes, same expiry.DebitDefined
Short StrangleShort call and short put, different strikes, same expiry.CreditUndefined
Cash Secured PutA short put, when no long stock (1 share or more) and no option other than short puts is left in that account and underlying. Other short puts and short stock don't block it. ThetaWiz doesn't check that you hold the cash.CreditUndefined
QQQ LEAP CallA long QQQ call with at least 365 days to expiry, now or when you opened it, that no earlier strategy claimed.DebitDefined
ZEBRA + Short CallA call Zero Extrinsic Back Ratio that has taken in leftover short calls expiring on or before its long calls.DebitDefined
Never recognized from shape
StrategyHow a group gets itTypeRisk
Long Stock / Short StockA stock leg that fits no structure.NoneStock
Long Call / Short Call / Long Put / Short PutAn option leg that fits no structure.Debit for long, Credit for shortDefined for long, Undefined for short
Ratio Spread, Synthetic, Income PMCC, SPX Put Butterfly 5 DeltaOnly by choosing it with Reclassify… in Group overrides.None, except Income PMCC and SPX Put Butterfly 5 Delta (Debit)Undefined for Ratio Spread and Synthetic, else Defined
  • Where a structure holds more contracts on one leg than it needs, it claims only the matching quantity. The rest is grouped on its own.
  • Income PMCC as a strategy name is separate from the Income PMCC campaign described under Campaigns.
  • A group of type Credit, Debit or Covered call gets the time-spread rules (ROLL FRONT, TENT BREACH) on Today when it holds a short option that expires before a long option on the same underlying. Short legs that are part of a campaign anchor, such as a ZEBRA's short call, don't count. This usually means a Calendar Spread or Diagonal Spread, but not a reverse one whose long leg expires first; the name alone doesn't decide it.

Management rules on Today

No built-in strategy sets its own profit target, stop or management DTE. Every built-in uses the defaults for its type, and the ones you can change are in Settings → Risk. A custom definition can set its own values.

RuleApplies toDefaultWhere it is set
Manage at DTE (MANAGE DTE)Credit, Covered call: nearest short leg21 daysFixed in the app; a definition can change it
Time stop (TIME STOP)Debit: nearest long option21 daysFixed in the app; a definition can change it
Short strike tested (TESTED)Credit, Covered callWithin 2% of the strike (0.02)Short-strike tested band in Settings → Risk
Stop loss (STOP LOSS)CreditLoss of 2× the opening creditCredit stop in Settings → Risk (0 = off)
Stop loss (STOP LOSS)DebitLoss of 50% of the debit paidDebit stop in Settings → Risk (0 = off)
Stop lossCovered callNoneOnly a definition can set one
Profit target (TARGET)Credit / Covered call / Debit50% / 50% / offProfit target fields in Settings → Risk
Roll the front short (ROLL FRONT)Time spreads7 days to the front short's expiryFixed in the app
Tent (TENT BREACH)Time spreadsSpot more than 5% from the front short strikeFixed in the app; a definition can change it

Strategies with type None (Collar, Protective Put, single stock, Ratio Spread, Synthetic) get no profit target, stop or management rule, and their Capt% is blank. The safety rails still apply to every strategy.

How a group gets its strategy

  1. Your legs are split by account, then by underlying. Legs in different accounts are never grouped together.
  2. Within one account and underlying, ThetaWiz tries each strategy definition in order (the order of the table above, with your own definitions slotted in). The first definition whose shape fits claims those legs, and only the quantity it needs. It repeats until nothing more fits.
  3. Then a call Zero Extrinsic Back Ratio takes in any leftover short calls that expire on or before its long calls, becoming ZEBRA + Short Call.
  4. Any leg still left over becomes its own single-leg group: Long Stock, Short Stock, Long Call, Short Call, Long Put or Short Put.
  5. Your group overrides are applied last: merges, splits, rejected groups, renames, reclassifications and locks.

Grouping runs every time positions refresh. Because the first definition that fits wins, the same legs can group differently when you add or remove a leg. For example, selling a call above a long call you hold, with the same expiry, turns the lone Long Call into a Bull Call Spread.

The `?` mark. Each match has a confidence. When a multi-leg group's confidence is below 0.6, a muted ? follows its name. Choose Accept (confirm group) in Group overrides to confirm it, or change it.

Choosing a different strategy. Open Overrides… from the row menu (or press Ctrl+O), then Reclassify…. The list shows every strategy name, including your custom ones. The legs stay together; only the strategy and its management rules change. Lock (pin name/type) keeps the name and strategy through later regrouping. Clear group overrides… removes your choice. On a campaign row, expand it and select a leg first.

Shapes nothing recognizes. ThetaWiz never hides a leg it can't place. Each one shows as its own single-leg group, so an unusual structure appears as several single-leg rows. To keep it together, merge the rows and reclassify the result, or write a custom strategy for the shape.

Custom strategies

ThetaWiz has no strategy editor screen. Custom strategies live in YAML text files that you edit with any text editor, or that Ethan (Pro) drafts for you. Without a file, only the built-ins are used.

Where the files live
FileLocation
One file for everythingstrategies.yaml in the ThetaWiz settings folder
One file per strategyAny .yaml or .yml file in the strategies.d folder inside the settings folder. Files are read in name order, after strategies.yaml.
Settings folderBy default, macOS: ~/Library/Application Support/tw. Windows: %APPDATA%\tw. Linux: ~/.config/tw. If the THETAWIZ_CONFIG_DIR environment variable is set, that folder is used instead.
  • Create: make a new file in one of those places, or ask Ethan to draft one (see below).
  • Edit: change the file and save. ThetaWiz picks up the change about 2 seconds later and regroups your positions. No restart is needed.
  • Delete: delete the definition from the file, or delete the file. Groups you had reclassified to a deleted strategy show Unknown (<id>) until you clear the override or add the definition back.
  • Turn a built-in off: list its id under disable: (see Precedence).
  • Other computers: when you are signed in, your strategy files sync through your ThetaWiz account along with your group overrides. Settings → Connections shows Strategies and overrides synced at <time>. Files changed on another computer are installed at your next sign-in; until then you see Strategy definitions changed on another computer — restart to apply.
  • To keep files somewhere else, set file or dir under [strategies] in config.toml in the settings folder, then restart ThetaWiz.

With Ethan (Pro). Ask Ethan to make a strategy from trades that no strategy groups, to copy an existing strategy under a new id, or to fix a file that has errors. Ethan only drafts and edits files in the strategies.d folder; he can't change a single strategies.yaml, so edit that one yourself. He shows a Strategy draft — not saved until you click Apply card with the YAML, the changes against the current file (badge New file or Edit), the validation result and a preview of how your groups would change (Preview · groups N → M). Click Apply to save it, or Discard. A new draft is saved as strategies.d/<id>.yaml, and the card reads Saved as <name>. If the file changed since Ethan read it, Apply refuses with Not saved: …; ask again. See Ethan.

If a file has errors, a banner above the groups on Positions lists up to three problems. Strategy file not applied (N problems) — using built-in strategies means the broken file (and any file that refers to it) was left out; your other files still load. Strategy file has errors — using the previous version means you broke a file that was already in use, so ThetaWiz keeps every strategy file exactly as it was before your edit until you fix it. See Validation.

Definition file reference

Every key is listed here; the size and format limits are collected under Validation. An unknown or misspelled key is an error, never silently ignored. Ids (strategy ids, slot names, before, after, disable) use lowercase letters, digits and underscores and start with a letter, for example put_112.

File
KeyMeaningAllowed valuesDefault
versionFormat version.1Required
disableBuilt-in ids to stop recognizing. The name and management rules still apply to existing groups and reclassifications.List of built-in strategy or campaign idsNone
strategiesYour strategy definitions.ListNone
campaignsYour campaign definitions. See Custom campaigns.ListNone
Strategy
KeyMeaningAllowed valuesDefault
idStable id, saved with your overrides. Reusing a built-in id replaces that built-in.Up to 64 charactersRequired
nameName shown in the app.1 to 80 charactersRequired
legsNamed leg slots, for example a: { right: put, side: long, ratio: 1 }.1 to 6 slotsRequired, except: optional with native, not allowed with match: none or absorb
matchHow the slots relate (table below), or none for a name-and-rules-only strategy you assign with Reclassify.Mapping or noneAny strikes and expiries, exact quantities
underlyingsOnly match these symbols (case doesn't matter).any or a non-empty list, each 1 to 24 plain ASCII characters, no spacesany
before / afterIds this definition must be tried before or after. Use a built-in's main id (for example bull_call_spread for all four verticals).List of idsNone
unless_existsSkip the match when a leg of this shape is also held, for example { right: put, side: long, expiry: "same_as:sc" }.right, side, optional expiry: same_as:<slot>None
confidenceConfidence of a match. Below 0.6 shows the ? mark.0 to 10.9
confidence_rulesLower the confidence and add a warning when a condition holds. Conditions: residual_on: [slots], qty_mismatch: [slots], expiry_mismatch: [a, b], width_mismatch: [[a, b], [c, d]], stock_remaining.Up to 32 { when, confidence, warning }None
checksWarnings only, never block a match. credit_at_least: "a - b" warns when the net credit is less than the strike difference.Up to 32None
explanationSentence describing the match. Placeholders: {qty:slot}, {strike:slot}, {right:slot}, {expiry:slot}, {ratio}, {name}.Up to 200 charactersGenerated
tagsFree-form labels.Up to 32, each up to 64 charactersNone
variantsOther ids produced from the same shape, each with its own id, name, and optionally legs (right or side changes), strikes, expiries, strike_width, widths_equal, explanation, behavior. When more than one fits, the one that uses the earliest legs wins; on a tie, variants win in file order, then the parent.Up to 16None
absorbInstead of legs: let groups of another strategy take in extra legs, for example { into: zebra, right: call, side: short, expiry_lte: l }.MappingNone
nativeInstead of legs, use one of ThetaWiz's built-in shape finders. Use it only when you reuse that built-in's id to replace it, for example to change its behavior. Under a new id it doesn't work as expected: groups still show the built-in's name, and butterfly and vertical never match. Can't be combined with match, confidence, confidence_rules, checks, explanation or unless_exists; its variants may set only id, name and behavior.zebra, collar, iron_condor, butterfly, vertical, calendar, diagonal, cash_secured_putNone
behaviorHow the strategy is managed and shown (table below).MappingSee below
Leg slot
KeyMeaningAllowed valuesDefault
rightCall, put or shares.call, put, stockRequired
sideLong or short.long, shortRequired
ratioContracts per unit. On a stock slot it counts per contract: shares per unit = the contract multiplier of the first option leg, normally 100. { min: 2 } takes all the remaining quantity, at least 2 per unit; add max to cap it.Whole number ≥ 1, or { min, max }1
dteDays-to-expiry bounds, inclusive. min is met if the leg had that many days when opened or has them now.{ min, max } with min ≤ max; not on stockAny
moneynessAccepted but not applied yet: the app doesn't pass prices to the matcher, so this filter is skipped.itm, atm, otm; not on stockAny
match
KeyMeaningAllowed valuesDefault
strikesStrike order between slots, for example "a > b > c" or "c != p".>, >=, <, <=, =, != between slot namesAny
expiriesExpiry relation.any, same, or a chain such as "sc < lc"any
quantityexact: no quantity left over on the matched legs. min_fill: claim the matching quantity and leave the rest. partial: like min_fill, but leftovers cap confidence at 0.64.exact, min_fill, partialexact
strike_widthBound on the distance between two strikes, for example { slots: [a, b], max: 10 }.slots plus equals, or min and/or max (not both forms); each 0 or more, min ≤ maxNone
behavior
KeyMeaningAllowed valuesDefault
managementWhich Today rules apply: credit, covered call, debit, or none.premium_credit, covered_call, debit_directional, nonenone
riskundefined turns on the undefined-risk TESTED safety rail.defined, undefined, stockundefined
profit_target_pctProfit target as a decimal (0.50 = 50%).Above 0Settings default for the type
profit_targetsInstead of profit_target_pct: 1 to 4 targets, each { pct, slots, label }. Without slots a target measures the whole structure; with them, only those legs. Two targets can't cover the same slots, or both the whole structure. Above 1 is allowed for debit trades.List; label up to 80 charactersNone
stop_losses1 to 4 stops, each with exactly one of multiple_of_credit or pct_of_debit (a decimal), plus optional slots and label. Same scope rules as profit_targets.List; label up to 80 charactersSettings default for the type
actions.manage_at_dteDays to expiry for MANAGE DTE (credit, covered call) or TIME STOP (debit).Whole number ≥ 121
actions.tested_pctShort-strike tested band for this strategy's own TESTED rule.Decimal above 0Settings band (0.02)
actions.stop_lossA single whole-structure stop: { multiple_of_credit: 3 } or { pct_of_debit: 0.5 }. Don't combine with stop_losses.MappingSettings default
actions.tent_pctTent half-width for time spreads.Decimal above 00.05
familyColour of the strategy chip and the card subtitle.income, directional, hedge, stock, otherIncome for credit and covered call, Directional for debit, Stock for risk: stock, else Other
max_lossHow the from-entry worst case on the campaign and strategy card is measured. The Positions Max Loss column always uses the legs' payoff.expiry_payoff, net_debit, noneexpiry_payoff
roll_basisCapital Roll Assist uses for its return figure on a single-leg roll.none, spread_width, strike_capital, stock_basisnone
categoryValue written to the closed position's Strategy category, used by Performance's Strategy Type cohort.Up to 200 charactersCUSTOM
exempt_eventsTurn off rules for the whole group: expiring_soon (MANAGE DTE and ROLL FRONT), short_strike_tested (the strategy's TESTED rule), high_bp.ListNone
event_policyzebra_same_right_shorts_exempt: short legs on the same right as the longs skip the tested checks.none or that valuenone
treat_ascash_equivalent: shown muted under Cash Equiv., with no Today rules. Only takes effect when every leg is on a European cash-settled index such as SPX.none, cash_equivalentnone

A behavior block is never merged with anything. A replacement for a built-in, or a variant that sets behavior, starts from the defaults above (management: none, risk: undefined). If you set only category, the strategy loses its Today rules and gains the undefined-risk rail. Copy the built-in's whole behavior and change what you need.

Order and precedence

  • A new id adds a strategy. It is tried alongside the built-ins: definitions with more fixed-quantity legs are tried earlier, and the built-ins themselves stay in their fixed order. If a built-in could take your legs first (for example a vertical taking two legs of your 112), add before: naming that built-in.
  • Reusing a built-in id replaces it in the built-in's place in the order, unless you give it before or after. Built-in variants you don't redefine keep their name and rules but stop being recognized. To replace one variant only (for example bull_put_spread), define it as its own strategy with that id.
  • `disable:` stops a built-in from being recognized. You can disable a single variant such as short_strangle, or a built-in campaign (wheel, ipmcc_campaign).
  • When two definitions fit the same legs, the earlier one in the order claims them. The later one only sees what is left.
  • Across files, an id may be defined only once. A later file that repeats an id from an earlier file is left out entirely. Files that refer to each other's ids load or fail together.
  • Precedence over the strategy chosen in a group: your Reclassify… override always wins over any definition.

How a definition's rules replace Settings

A definition's behavior sets the rules for its own groups. Anything it leaves out falls back to the Settings default for its type.

  • Profit target: the definition's targets, else the Settings Profit target for the type. If none of the definition's targets has any legs left in its slots (for example you closed them), one whole-structure target at the first target's percentage is used. A target whose legs are still held but have no price simply shows no value; it doesn't trigger the fallback.
  • Stops: the definition's stops replace the Settings stop. If none of its stops has legs left in its slots, a whole-position stop applies instead: the first stop's kind and value if it fits the type (multiple_of_credit for Credit and Covered call, pct_of_debit for Debit), otherwise the Settings stop for the type. That Settings stop may not exist: Covered call has none, and a Settings stop set to 0 is off. Then no stop applies.
  • Manage DTE, tested band and tent from actions replace the defaults in the strategy's own MANAGE DTE, TIME STOP, TESTED and TENT BREACH rules.
  • Safety rails ignore the definition. ASSIGN AT EXPIRY and the undefined-risk TESTED rail use the Settings thresholds; a wider tested_pct does not quiet them. EARLY ASSIGN uses fixed thresholds: a short call in the money with less than $0.10 of time value per share, or, for a short leg that is part of a campaign anchor, time value below 5% of the premium it opened for. None of these follow the definition's actions or exempt_events.
  • actions on a strategy with management: none have no effect.

Worked example: a 112

A put 112 is one long put, one short put below it and two short puts further below. Without a definition, ThetaWiz doesn't pair the legs the way you meant. For the example below it makes a Bear Put Spread from the 560P and one 520P, then two Cash Secured Put groups: the other 520P and the 550P. Save this as strategies.d/put_112.yaml in the settings folder:

strategies.d/put_112.yaml
version: 1
strategies:
  - id: put_112
    name: "112"
    before: [bull_call_spread]     # ahead of the verticals
    legs:
      a: { right: put, side: long,  ratio: 1 }
      b: { right: put, side: short, ratio: 1 }
      c: { right: put, side: short, ratio: 2 }
    match: { strikes: "a > b > c", expiries: any, quantity: min_fill }
    behavior:
      management: premium_credit
      risk: undefined
      profit_target_pct: 0.25
      actions:
        manage_at_dte: 30
        stop_loss: { multiple_of_credit: 3 }
Example: What happens
You hold SPY 1× long 560P, 1× short 550P, 2× short 520P, one expiry.
About 2 seconds after saving, Positions regroups: one row `SPY 112`.
Today: TARGET at 25% of the opening credit kept (instead of 50%).
Today: MANAGE DTE at 30 days to the nearest short (instead of 21).
Today: STOP LOSS at a loss of 3× the credit (instead of Settings' 2×).
Today: TESTED uses the Settings band (none set here); risk: undefined
  also turns on the undefined-risk TESTED rail.
With 3× short 520P, min_fill claims 2; the third is grouped on its own (as a Cash Secured Put).

Validation and errors

A file is checked when it loads. Each problem in the banner starts with strategy file and the file's path, then the strategy id and the message. Checks inside one file run first, so some problems only show once earlier ones are fixed.

Message (start)Cause
unsupported version N; expected 1version is set to something other than 1.
invalid YAML: …A typo, bad indentation, an unknown key, or a missing required key such as version (missing field).
strategy id … must be snake_caseIds: lowercase letters, digits, underscores, starting with a letter, up to 64 characters.
id is defined more than onceThe same id twice in one file. Across files the later file is left out: id is already defined by strategy file …; this file is dropped.
name must not be empty / is longer than 80 charactersEvery strategy needs a name of 1 to 80 characters.
declares no legsAdd legs, or match: none for a strategy you only assign with Reclassify.
references unknown slotA slot used in match, explanation, a rule or a check isn't listed under legs.
ratio must be ≥ 1 / ratio max is below minQuantity ratios start at 1.
confidence must be between 0 and 1Also applies to each confidence rule.
before/after references unknown id / form a cycleName an existing top-level id, and avoid loops.
set either behavior.profit_target_pct or behavior.profit_targets, not bothPick one form. The same applies to actions.stop_loss and stop_losses.
needs management debit_directional (and similar)A whole-structure pct_of_debit stop needs management: debit_directional; multiple_of_credit needs premium_credit or covered_call.
manage_at_dte must be a positive number of daysUse 1 or more.
disable names an id that is not a built-in definitiondisable only takes built-in ids.
  • The banner shows three problems, then +N more (run tw-cli strategies validate). That command-line tool isn't included in the app. To see every problem, fix the first three and save, or, for a file in strategies.d, ask Ethan (Pro) to fix it.
Limits
WhatLimit
FilesEach file up to 1 MB; up to 256 files in strategies.d; up to 512 strategies and 64 campaigns per file.
IdsStrategy, variant and campaign ids up to 64 characters; slot and phase names up to 32. Both use lowercase letters, digits and underscores, starting with a letter.
TextNo text value may be blank or contain control characters. Names and target or stop labels up to 80 characters; tags up to 64; warnings, explanation and category up to 200.
Lists1 to 6 leg slots, up to 16 variants, up to 32 tags, up to 32 confidence rules and 32 checks, 1 to 4 profit targets and 1 to 4 stops.
SymbolsEach entry in underlyings is 1 to 24 plain ASCII characters, no spaces.
Numbersdte.min ≤ dte.max. strike_width values are 0 or more, with min ≤ max; equals can't be combined with min or max.

Campaigns

A campaign is a chain of trades on one underlying in one account that ThetaWiz follows as one position over time, through rolls, assignments and new entries. Its P&L adds up every trade in the chain, so the result of earlier, closed legs is not lost when you roll. Campaigns need your synced trade history and a signed-in ThetaWiz account; they are saved to that account.

Built-in campaigns
CampaignShown asStarts withJoinsEnds
WheelWheelA Cash Secured Put that isn't already income for an Income PMCC.Moves through three phases: puts (Cash Secured Put) → assigned → shares (Long Stock) → a call sold → calls (Covered Call) → called away → puts again. Calls that expire or are bought back return it to shares.10 days after it last held anything. A Wheel that ends without ever being assigned is dropped as a plain short put, unless it saw a change ThetaWiz couldn't explain.
Income PMCCZEBRA Income (tag ZEBRA), Income PMCC (IPMCC) or Covered Call Income (CC), after the anchorAn anchor: a Zero Extrinsic Back Ratio, the long call of a Poor Man's Covered Call, the shares of a Covered Call, or Long Stock.Short calls, short puts and cash-secured puts sold as income, if they expire on or before the anchor's earliest option expiry (any expiry against shares).When the last anchor leg is closed.
  • Income PMCC is tried first, so a short put sold against an anchor is income, not the start of a Wheel.
  • Both built-ins run on stocks and ETFs only. Futures options and cash-settled index options (SPX, SPXW, XSP, RUT, NDX, VIX) never form a campaign.
  • A plain rolled position is not a campaign. If you roll a spread or an iron condor, the strategy card still shows its roll history (N rolls and the Events table) and the subtitle reads … · not in a campaign. To follow repeated trades of one structure as a campaign, add a series campaign.
  • There is no way to create, link, unlink, rename or end a campaign by hand. Campaigns come only from your trade history and the campaign definitions. Group overrides (merge, split, reclassify) don't change campaigns; they only change which group shows the campaign tag.

How trades join a campaign

Campaigns are rebuilt after every trade-history sync: at startup, once at 4:15 pm Eastern every weekday (market holidays included), when you re-sync from Settings → Connections, and after you save Schwab opening history.

What happensEffect on the campaign
RollA close and an open filled in the same order (fills within 24 hours of the order's first fill), or one trade that closes a position and opens the opposite one. Each new option inherits the campaign of the option it replaced with the same right and side (put to put, short to short). Strike, expiry and quantity can all change.
Roll of the anchor (Income PMCC)The old campaign ends and every leg carries over to a new one. Events show Carried to new campaign and Carried from earlier campaign, and the card's Days and ROC start again.
Assignment / exercise (tastytrade)The option leaving is paired with the matching stock delivery: same underlying, within 24 hours or by the end of the next trading day, matching direction, shares = contracts × multiplier. A Wheel moves from puts to shares, or from calls back to puts when called away.
ExpirationA broker expiration record, or an option still open after expiry when your synced history covers it from open through the next trading day.
CloseRealized P&L is banked. A Wheel or series with nothing left starts its end clock; an Income PMCC ends when the anchor closes.
New entryA new trade of a structure the campaign's current phase accepts joins it, including after a gap shorter than the end window (10 days for the Wheel).

States. A campaign is Open, Needs sync or Closed. Only open and needs-sync campaigns appear in the app; closed campaigns aren't shown anywhere yet (the Performance Closed toggle is disabled). Needs sync means ThetaWiz saw something it can't explain, for example a Schwab short option still open past expiry, an unclean sync, or an open leg you no longer hold. The figures wait for the next clean sync.

Schwab. Schwab doesn't report the option side of an assignment, so assignments aren't inferred there, and trades before Schwab's history cutoff are missing until you add opening history.

Campaign fields

On Positions, when two or more groups in one account share a campaign, they fold into a single row named after the campaign (for example KRE Wheel). A campaign with a single group stays a normal row with the campaign tag. The folded row's MktVal, P&L, Greeks and βΔ$ are the sums of its members, DTE is the nearest, and the strategy comes from the member holding the anchor (a multi-leg one first), otherwise from a multi-leg member, otherwise the first member. The strategy chip reads <strategy> · <campaign>, for example Cash Secured Put · Wheel, with ⚠ when figures are incomplete. The P&L column stays unrealized only.

Hover the strategy chip for a summary (Net P&L (after fees), ROC, ROM, Peak capital, Max Campaign Loss, Days). Click it or press Ctrl+I (Cmd+I on macOS) for the full card in the Strategy tab of the details panel. Its title is <UNDERLYING> · <strategy>; the subtitle is <campaign> · <phase> · cycle N, plus covers N groups when it spans several.

P&L
ColumnWhat it showsHow it's calculatedFrom
RealizedP&L of the campaign's closed lots, before fees. A campaign not rebuilt since fees were split out shows Realized after fees, and the Fees row's note says Not split out yet (next rebuild); Realized is after fees.FIFO matching of the campaign's tradesThetaWiz
UnrealizedOpen legs at their mark against broker cost, before fees.—ThetaWiz
Dividends (while campaign held shares)Dividends paid while the campaign held stock. Shows unavailable when they haven't loaded.—Your account
Total before feesEverything before fees.Realized + Unrealized + DividendsThetaWiz
FeesEvery fee on the campaign's trades, closed and still open.—Your account
Net P&L (after fees)The campaign's result. Equals Total P&L on Performance.Total before fees − FeesThetaWiz
Return
ColumnWhat it showsHow it's calculatedFrom
ROCReturn on the capital the campaign tied up.Net P&L (after fees) ÷ Peak capitalThetaWiz
AnnualizedROC per year. Shows after 30 days until the campaign is 30 days old.ROC × 365 ÷ days runningThetaWiz
Peak capitalThe most capital tied up at any point, before fees: the core at its net debit, other long legs at cost, short puts at strike × contracts × multiplier (spread width plus any net debit when covered by a long put). Income short calls count 0, and a same-day roll isn't counted twice.Highest value after each group of fillsThetaWiz
Margin req. / ROM / Annualized ROMMargin requirement (from the broker when it matches this strategy, otherwise ThetaWiz's estimate), and the return on it.ROM = Net P&L ÷ margin; annualized × 365 ÷ daysThetaWiz
Max campaign loss, after fees (from entry)The most the campaign can end down: net cash paid on every trade plus fees, minus dividends, minus what the open legs are still worth at their worst point. None when the worst case is a profit; Unlimited when a leg's loss has no floor.—ThetaWiz
Wheel block
ColumnWhat it showsHow it's calculatedFrom
Premium collectedOption credits minus debits, before fees.—ThetaWiz
Adj. cost basisCost per held share after the premium, shown as $X/sh. It uses figures after fees, while the Premium collected row above is before fees, so you can't reproduce it from the displayed values.(cost of the shares still held, including opening fees − option credits minus debits, after fees) ÷ shares heldThetaWiz
Underlying spotCurrent price, green above the adjusted basis and red below.—Broker
Core & income block (Income PMCC)
ColumnWhat it showsHow it's calculatedFrom
Core costNet debit of the anchor legs, before fees, with the legs spelled out (for example 2×49C − 1×61C).—ThetaWiz
Core extrinsicTime value left in the anchor legs.—ThetaWiz
Income collectedCredits minus debits of the income trades.—ThetaWiz
Core paybackHow much of the anchor the income has paid for. It uses figures after fees, while the Income collected and Core cost rows are before fees, so dividing those two can give a different percentage.income collected after fees ÷ remaining core cost including opening feesThetaWiz
Income close costCost to buy back the open income shorts at their mark.—ThetaWiz
Series block (custom series campaigns)
ColumnWhat it showsHow it's calculatedFrom
CyclesNumber of times the structure was opened in this campaign.—ThetaWiz
Closed / winningClosed cycles, and how many of those made money, as n / m.—ThetaWiz
Avg per closed cycleAverage realized P&L of the closed cycles.Closed cycles' realized ÷ closed cyclesThetaWiz

The card also has a Greeks section (Net Δ, Net Θ, Net Vega, βΔ$), an Also in this group list when other campaigns share the group, and an Events table with the columns Event, Leg, Side, Qty, Price, Fees, Cash and Running, grouped by date. Events are Opened, Closed, Rolled, Expired, Assigned, Exercised, Called away and Unexplained change; sides are BTO, STO, BTC, STC, Buy and Sell. Running is the cumulative cash, oldest first.

Warnings on the card (a ⚠ marks the affected figure)
WarningMeaning
Needs sync: figures may be stale until the next clean syncRe-sync from Settings → Connections.
History incomplete: earlier trades are missingA close or delivery had no matching opening trade in your synced history.
Dividends unavailable: the total excludes themDividends haven't loaded; they count as zero.
Valuation incomplete: … / Unrealized incomplete: …Some open quantity has no mark or broker cost, or is in no live group.
Income close cost partial: … / Core extrinsic incomplete: …A leg is missing a price, strike or the underlying price.

Campaign items on Today

ItemBucket and tagFires when
Take profit: close the tradeACTION · TARGETAn Income PMCC's P&L before fees reaches +50% of the remaining core cost. Needs a complete valuation and a remaining core cost above zero; a shares-only anchor qualifies only once income has joined.
Stop loss: close the tradeACTION · STOP LOSSThe same ratio falls to −30%, with the same conditions.
Close or roll the short callREVIEW · TARGETAn income short call has kept 80% of its opening credit.
Roll the short callREVIEWThe open income short calls cost at least the anchor's remaining time value to close.
Assignment likely (Wheel)MONITOR · EXPIRING or TESTED · ASSIGN LIKELYA Wheel's short put is near expiry or tested; assignment is expected.
Early assignment risk: roll or acceptREVIEW · EARLY ASSIGNA Wheel's short call is in the money with less than $0.10 of time value.

When every leg of a group belongs to campaigns whose profit and stop exits can be evaluated, those exits replace the group's Settings debit stop and any whole-structure profit target, so you don't get both. A definition's own stops and slot-scoped targets still apply, and a group only partly in the campaign keeps its usual rules. Likewise, when the campaign's 80% rule covers all of a group's short calls, the Settings covered-call profit target gives way to it. The exits are skipped when the campaign's valuation is incomplete.

Custom campaigns

The campaigns: list in a definition file adds or replaces campaign definitions the same way strategies do. Campaigns are rebuilt from your history at the next trade sync. The Wheel and Income PMCC Today items stay tied to the built-in ids wheel and ipmcc_campaign; the exits rules work for any anchored campaign.

KeyMeaningAllowed values
id, nameAs for strategies. A campaign id can't equal a strategy id.Required
kindseries: repeated trades of one structure. phased: moves between phases (like the Wheel). anchored: income sold against an anchor (like Income PMCC).series, phased (default when omitted), anchored
underlyingsequity leaves out futures options and cash-settled index options.any (default), equity
structureSeries: the strategy id each member matches.Strategy id
phases, start, phase_precedence, transitionsPhased: phase name → { structures: [...] }, the first phase, the phase order decided by what you hold, and { from, on, to } moves on opened, closed, rolled, expired, assigned, exercised or called_away. A phased campaign needs phases, a start that is one of them, and a phase_precedence that lists every phase exactly once.Mapping / list
rolls_continueRolls stay in the campaign.true / false (default)
keep_if_reachedPhased: drop a closed campaign that never reached this phase.Phase name
anchor_structures, incomeAnchored: { strategy, slots } anchors (at least one; slots defaults to every slot of that strategy) and { strategy, before_anchor_expiry } income (before_anchor_expiry defaults to false).Lists
endsflat_days: N ends N days after it holds nothing (required for series); anchor_closed: true ends when the anchor closes.Mapping
exitsAnchored only: core_profit_pct (> 0), core_loss_pct and income_profit_pct (above 0, up to 1).Mapping
trackExtra figures to save with the campaign. Capital, premium, income, core cost and open fees are saved for every campaign anyway, so track adds adjusted_cost_basis, campaign_pnl and anchor_extrinsic_remaining.premium_collected, adjusted_cost_basis, campaign_pnl, capital_committed, short_premium_collected, anchor_extrinsic_remaining, anchor_cost, income_collected, open_fees
strategies.d/put_112_series.yaml (add below the 112 above)
campaigns:
  - id: put_112_series
    name: "112 Series"
    kind: series
    structure: put_112
    ends: { flat_days: 30 }
    track: [premium_collected, campaign_pnl]

Common questions

QuestionAnswer
What determines which strategy a position shows?In order: your Reclassify… override if you set one; otherwise the first definition, built-in or yours, whose leg shape fits, in precedence order; otherwise a single-leg name. A campaign row takes the strategy of the member holding the anchor.
Why is my group a single leg, Unknown (…) or not the name I expected?No definition fits the legs together, so each leg shows on its own; or an earlier definition claimed some legs first; or quantities don't line up and the leftover was split off. Unknown (<id>) means the group was reclassified to a custom strategy that no longer exists. Merge and reclassify the rows, clear the override, or add a definition.
Why didn't my roll join the campaign?Common causes: the close and the open were separate orders, or filled more than 24 hours apart; the new leg has a different right or side (a put rolled into a call); an Income PMCC short was rolled past the anchor's expiry; the campaign had already ended; the position is on a futures or index underlying; it's in another account; the new structure isn't one the campaign accepts (a short put inside a spread isn't a cash-secured put); or your history is incomplete or needs a sync. Rolls of a plain spread never form a campaign.
My short put shows Cash Secured Put · Wheel. Did I start a Wheel?A cash-secured put on a stock or ETF starts a Wheel in its puts phase unless an Income PMCC claims it first as income against an anchor you hold. If the put closes or expires without assignment and nothing new joins within 10 days, the Wheel is dropped, unless it saw a change ThetaWiz couldn't explain.
I edited my strategy file and nothing changed.Check for the banner on Positions. If it says using the previous version, fix the file and save again. If you changed [strategies] in config.toml, restart.