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.
| Strategy | Leg shape | Type | Risk |
|---|---|---|---|
| Zero Extrinsic Back Ratio | Calls (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). | Debit | Defined |
| Collar | Long 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. | None | Defined |
| Covered Call | Long 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 call | Undefined |
| Poor Man's Covered Call | A long call with at least 180 days to expiry, either now or when you opened it, and a short call that expires earlier. | Debit | Defined |
| Protective Put | Long stock and a long put. Skipped when a short call with the same expiry exists (that is a collar). | None | Defined |
| Iron Butterfly | Long put < short put = short call < long call, all one expiry. | Credit | Defined |
| Iron Condor | Long put < short put, and short call < long call, all one expiry. | Credit | Defined |
| Long Call Butterfly / Long Put Butterfly | Three strikes, one expiry, 1:2:1: long low wing, two short middle, long high wing, with equal wing widths. | Debit | Defined |
| Short Call Butterfly / Short Put Butterfly | The same with the sides reversed: short wings, two long in the middle. | Credit | Defined |
| Butterfly (Broken Wing) | A 1:2:1 butterfly whose two wings have different widths, long or short. | Credit | Defined |
| Bull Call Spread | Long call below a short call, same expiry. | Debit | Defined |
| Bear Call Spread | Short call below a long call, same expiry. | Credit | Defined |
| Bull Put Spread | Short put above a long put, same expiry. | Credit | Defined |
| Bear Put Spread | Long put above a short put, same expiry. | Debit | Defined |
| Calendar Spread | One long and one short of the same right at the same strike, different expiries. | Debit | Defined |
| Diagonal Spread | One long and one short of the same right at different strikes and different expiries. | Debit | Defined |
| Long Straddle | Long call and long put, same strike and expiry. | Debit | Defined |
| Short Straddle | Short call and short put, same strike and expiry. | Credit | Undefined |
| Long Strangle | Long call and long put, different strikes, same expiry. | Debit | Defined |
| Short Strangle | Short call and short put, different strikes, same expiry. | Credit | Undefined |
| Cash Secured Put | A 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. | Credit | Undefined |
| QQQ LEAP Call | A long QQQ call with at least 365 days to expiry, now or when you opened it, that no earlier strategy claimed. | Debit | Defined |
| ZEBRA + Short Call | A call Zero Extrinsic Back Ratio that has taken in leftover short calls expiring on or before its long calls. | Debit | Defined |
| Strategy | How a group gets it | Type | Risk |
|---|---|---|---|
| Long Stock / Short Stock | A stock leg that fits no structure. | None | Stock |
| Long Call / Short Call / Long Put / Short Put | An option leg that fits no structure. | Debit for long, Credit for short | Defined for long, Undefined for short |
| Ratio Spread, Synthetic, Income PMCC, SPX Put Butterfly 5 Delta | Only 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.
| Rule | Applies to | Default | Where it is set |
|---|---|---|---|
| Manage at DTE (MANAGE DTE) | Credit, Covered call: nearest short leg | 21 days | Fixed in the app; a definition can change it |
| Time stop (TIME STOP) | Debit: nearest long option | 21 days | Fixed in the app; a definition can change it |
| Short strike tested (TESTED) | Credit, Covered call | Within 2% of the strike (0.02) | Short-strike tested band in Settings → Risk |
| Stop loss (STOP LOSS) | Credit | Loss of 2× the opening credit | Credit stop in Settings → Risk (0 = off) |
| Stop loss (STOP LOSS) | Debit | Loss of 50% of the debit paid | Debit stop in Settings → Risk (0 = off) |
| Stop loss | Covered call | None | Only a definition can set one |
| Profit target (TARGET) | Credit / Covered call / Debit | 50% / 50% / off | Profit target fields in Settings → Risk |
| Roll the front short (ROLL FRONT) | Time spreads | 7 days to the front short's expiry | Fixed in the app |
| Tent (TENT BREACH) | Time spreads | Spot more than 5% from the front short strike | Fixed 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
- Your legs are split by account, then by underlying. Legs in different accounts are never grouped together.
- 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.
- 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.
- Any leg still left over becomes its own single-leg group: Long Stock, Short Stock, Long Call, Short Call, Long Put or Short Put.
- 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.
| File | Location |
|---|---|
| One file for everything | strategies.yaml in the ThetaWiz settings folder |
| One file per strategy | Any .yaml or .yml file in the strategies.d folder inside the settings folder. Files are read in name order, after strategies.yaml. |
| Settings folder | By 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 seeStrategy definitions changed on another computer — restart to apply. - To keep files somewhere else, set
fileordirunder[strategies]inconfig.tomlin 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.
| Key | Meaning | Allowed values | Default |
|---|---|---|---|
version | Format version. | 1 | Required |
disable | Built-in ids to stop recognizing. The name and management rules still apply to existing groups and reclassifications. | List of built-in strategy or campaign ids | None |
strategies | Your strategy definitions. | List | None |
campaigns | Your campaign definitions. See Custom campaigns. | List | None |
| Key | Meaning | Allowed values | Default |
|---|---|---|---|
id | Stable id, saved with your overrides. Reusing a built-in id replaces that built-in. | Up to 64 characters | Required |
name | Name shown in the app. | 1 to 80 characters | Required |
legs | Named leg slots, for example a: { right: put, side: long, ratio: 1 }. | 1 to 6 slots | Required, except: optional with native, not allowed with match: none or absorb |
match | How the slots relate (table below), or none for a name-and-rules-only strategy you assign with Reclassify. | Mapping or none | Any strikes and expiries, exact quantities |
underlyings | Only match these symbols (case doesn't matter). | any or a non-empty list, each 1 to 24 plain ASCII characters, no spaces | any |
before / after | Ids 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 ids | None |
unless_exists | Skip 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 |
confidence | Confidence of a match. Below 0.6 shows the ? mark. | 0 to 1 | 0.9 |
confidence_rules | Lower 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 |
checks | Warnings only, never block a match. credit_at_least: "a - b" warns when the net credit is less than the strike difference. | Up to 32 | None |
explanation | Sentence describing the match. Placeholders: {qty:slot}, {strike:slot}, {right:slot}, {expiry:slot}, {ratio}, {name}. | Up to 200 characters | Generated |
tags | Free-form labels. | Up to 32, each up to 64 characters | None |
variants | Other 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 16 | None |
absorb | Instead of legs: let groups of another strategy take in extra legs, for example { into: zebra, right: call, side: short, expiry_lte: l }. | Mapping | None |
native | Instead 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_put | None |
behavior | How the strategy is managed and shown (table below). | Mapping | See below |
| Key | Meaning | Allowed values | Default |
|---|---|---|---|
right | Call, put or shares. | call, put, stock | Required |
side | Long or short. | long, short | Required |
ratio | Contracts 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 |
dte | Days-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 stock | Any |
moneyness | Accepted but not applied yet: the app doesn't pass prices to the matcher, so this filter is skipped. | itm, atm, otm; not on stock | Any |
| Key | Meaning | Allowed values | Default |
|---|---|---|---|
strikes | Strike order between slots, for example "a > b > c" or "c != p". | >, >=, <, <=, =, != between slot names | Any |
expiries | Expiry relation. | any, same, or a chain such as "sc < lc" | any |
quantity | exact: 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, partial | exact |
strike_width | Bound 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 ≤ max | None |
| Key | Meaning | Allowed values | Default |
|---|---|---|---|
management | Which Today rules apply: credit, covered call, debit, or none. | premium_credit, covered_call, debit_directional, none | none |
risk | undefined turns on the undefined-risk TESTED safety rail. | defined, undefined, stock | undefined |
profit_target_pct | Profit target as a decimal (0.50 = 50%). | Above 0 | Settings default for the type |
profit_targets | Instead 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 characters | None |
stop_losses | 1 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 characters | Settings default for the type |
actions.manage_at_dte | Days to expiry for MANAGE DTE (credit, covered call) or TIME STOP (debit). | Whole number ≥ 1 | 21 |
actions.tested_pct | Short-strike tested band for this strategy's own TESTED rule. | Decimal above 0 | Settings band (0.02) |
actions.stop_loss | A single whole-structure stop: { multiple_of_credit: 3 } or { pct_of_debit: 0.5 }. Don't combine with stop_losses. | Mapping | Settings default |
actions.tent_pct | Tent half-width for time spreads. | Decimal above 0 | 0.05 |
family | Colour of the strategy chip and the card subtitle. | income, directional, hedge, stock, other | Income for credit and covered call, Directional for debit, Stock for risk: stock, else Other |
max_loss | How 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, none | expiry_payoff |
roll_basis | Capital Roll Assist uses for its return figure on a single-leg roll. | none, spread_width, strike_capital, stock_basis | none |
category | Value written to the closed position's Strategy category, used by Performance's Strategy Type cohort. | Up to 200 characters | CUSTOM |
exempt_events | Turn off rules for the whole group: expiring_soon (MANAGE DTE and ROLL FRONT), short_strike_tested (the strategy's TESTED rule), high_bp. | List | None |
event_policy | zebra_same_right_shorts_exempt: short legs on the same right as the longs skip the tested checks. | none or that value | none |
treat_as | cash_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_equivalent | none |
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
beforeorafter. Built-in variants you don't redefine keep their name and rules but stop being recognized. To replace one variant only (for examplebull_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_creditfor Credit and Covered call,pct_of_debitfor 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
actionsreplace 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_pctdoes 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'sactionsorexempt_events. actionson a strategy withmanagement: nonehave 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:
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 }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 1 | version 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_case | Ids: lowercase letters, digits, underscores, starting with a letter, up to 64 characters. |
id is defined more than once | The 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 characters | Every strategy needs a name of 1 to 80 characters. |
declares no legs | Add legs, or match: none for a strategy you only assign with Reclassify. |
references unknown slot | A slot used in match, explanation, a rule or a check isn't listed under legs. |
ratio must be ≥ 1 / ratio max is below min | Quantity ratios start at 1. |
confidence must be between 0 and 1 | Also applies to each confidence rule. |
before/after references unknown id / form a cycle | Name an existing top-level id, and avoid loops. |
set either behavior.profit_target_pct or behavior.profit_targets, not both | Pick 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 days | Use 1 or more. |
disable names an id that is not a built-in definition | disable 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 instrategies.d, ask Ethan (Pro) to fix it.
| What | Limit |
|---|---|
| Files | Each file up to 1 MB; up to 256 files in strategies.d; up to 512 strategies and 64 campaigns per file. |
| Ids | Strategy, 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. |
| Text | No 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. |
| Lists | 1 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. |
| Symbols | Each entry in underlyings is 1 to 24 plain ASCII characters, no spaces. |
| Numbers | dte.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.
| Campaign | Shown as | Starts with | Joins | Ends |
|---|---|---|---|---|
| Wheel | Wheel | A 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 PMCC | ZEBRA Income (tag ZEBRA), Income PMCC (IPMCC) or Covered Call Income (CC), after the anchor | An 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 rollsand 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 happens | Effect on the campaign |
|---|---|
| Roll | A 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. |
| Expiration | A broker expiration record, or an option still open after expiry when your synced history covers it from open through the next trading day. |
| Close | Realized P&L is banked. A Wheel or series with nothing left starts its end clock; an Income PMCC ends when the anchor closes. |
| New entry | A 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.
| Column | What it shows | How it's calculated | From |
|---|---|---|---|
| Realized | P&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 trades | ThetaWiz |
| Unrealized | Open 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 fees | Everything before fees. | Realized + Unrealized + Dividends | ThetaWiz |
| Fees | Every 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 − Fees | ThetaWiz |
| Column | What it shows | How it's calculated | From |
|---|---|---|---|
| ROC | Return on the capital the campaign tied up. | Net P&L (after fees) ÷ Peak capital | ThetaWiz |
| Annualized | ROC per year. Shows after 30 days until the campaign is 30 days old. | ROC × 365 ÷ days running | ThetaWiz |
| Peak capital | The 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 fills | ThetaWiz |
| Margin req. / ROM / Annualized ROM | Margin 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 ÷ days | ThetaWiz |
| 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 |
| Column | What it shows | How it's calculated | From |
|---|---|---|---|
| Premium collected | Option credits minus debits, before fees. | — | ThetaWiz |
| Adj. cost basis | Cost 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 held | ThetaWiz |
| Underlying spot | Current price, green above the adjusted basis and red below. | — | Broker |
| Column | What it shows | How it's calculated | From |
|---|---|---|---|
| Core cost | Net debit of the anchor legs, before fees, with the legs spelled out (for example 2×49C − 1×61C). | — | ThetaWiz |
| Core extrinsic | Time value left in the anchor legs. | — | ThetaWiz |
| Income collected | Credits minus debits of the income trades. | — | ThetaWiz |
| Core payback | How 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 fees | ThetaWiz |
| Income close cost | Cost to buy back the open income shorts at their mark. | — | ThetaWiz |
| Column | What it shows | How it's calculated | From |
|---|---|---|---|
| Cycles | Number of times the structure was opened in this campaign. | — | ThetaWiz |
| Closed / winning | Closed cycles, and how many of those made money, as n / m. | — | ThetaWiz |
| Avg per closed cycle | Average realized P&L of the closed cycles. | Closed cycles' realized ÷ closed cycles | ThetaWiz |
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.
| Warning | Meaning |
|---|---|
Needs sync: figures may be stale until the next clean sync | Re-sync from Settings → Connections. |
History incomplete: earlier trades are missing | A close or delivery had no matching opening trade in your synced history. |
Dividends unavailable: the total excludes them | Dividends 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
| Item | Bucket and tag | Fires when |
|---|---|---|
| Take profit: close the trade | ACTION · TARGET | An 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 trade | ACTION · STOP LOSS | The same ratio falls to −30%, with the same conditions. |
| Close or roll the short call | REVIEW · TARGET | An income short call has kept 80% of its opening credit. |
| Roll the short call | REVIEW | The open income short calls cost at least the anchor's remaining time value to close. |
| Assignment likely (Wheel) | MONITOR · EXPIRING or TESTED · ASSIGN LIKELY | A Wheel's short put is near expiry or tested; assignment is expected. |
| Early assignment risk: roll or accept | REVIEW · EARLY ASSIGN | A 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.
| Key | Meaning | Allowed values |
|---|---|---|
id, name | As for strategies. A campaign id can't equal a strategy id. | Required |
kind | series: 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 |
underlyings | equity leaves out futures options and cash-settled index options. | any (default), equity |
structure | Series: the strategy id each member matches. | Strategy id |
phases, start, phase_precedence, transitions | Phased: 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_continue | Rolls stay in the campaign. | true / false (default) |
keep_if_reached | Phased: drop a closed campaign that never reached this phase. | Phase name |
anchor_structures, income | Anchored: { 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 |
ends | flat_days: N ends N days after it holds nothing (required for series); anchor_closed: true ends when the anchor closes. | Mapping |
exits | Anchored only: core_profit_pct (> 0), core_loss_pct and income_profit_pct (above 0, up to 1). | Mapping |
track | Extra 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 |
campaigns:
- id: put_112_series
name: "112 Series"
kind: series
structure: put_112
ends: { flat_days: 30 }
track: [premium_collected, campaign_pnl]Common questions
| Question | Answer |
|---|---|
| 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. |