2.20

🔍 How sTraderZ.com Recognises Your Trades

Strategy recognition, trade cycles and campaigns: the rules sTraderZ.com uses to classify your trades and what you can correct

1. 🧭 The Three Levels of Recognition

Every trade you import is classified automatically by sTraderZ.com on three levels. If a label surprises you, it helps to know first on which level it was created.

LevelAnswers the questionExample
StrategyWhat kind of position did you open?“Bull Put Spread”, “Covered Call”, “Iron Condor”
Trade cycleHow did the position in one instrument evolve from opening to closing?AAPL stock: bought 100, added 50, sold 150
CampaignWhich cycles belong to one connected undertaking?Wheel on AAPL: put sold, assigned, covered calls, shares called away

When does recognition run? Automatically after every import, in this order: strategies first, then trade cycles, then campaigns. Each level builds on the previous one, so a strategy that was grouped incorrectly also leads to an unusual campaign.

Ticker renames (e.g. FB → META) and weekly index options (e.g. SPXW → SPX) are treated as the same underlying on all three levels.

2. 🧩 Which Trades Are Grouped into a Strategy

Before a strategy type is assigned, sTraderZ.com decides which option trades belong together at all. This happens in three steps:

  1. Time window: trades on the same underlying executed within 5 minutes go into one group. So do trades on exactly the same contract on the same day.
  2. Split by execution time: within the group, trades with exactly the same execution second always belong together; that is the normal case of a combo order. Trades from different seconds only stay together if they are at most 5 seconds apart and have the same strikes (partial fills of the same order). Everything else is split.
  3. Building legs: trades with the same option type, strike and expiry are added up to one leg. The number of legs decides which rules apply: 1 leg → single option, 2 legs → spreads, straddles & co., 3 legs → butterflies and lizards, 4 legs → iron condor, iron butterfly, double calendar.
ℹ️ In practice: if you enter a spread as a combo order, it is recognised as a spread. If you leg in one leg after the other (e.g. the short put first, the long put a minute later), you get two separate single-leg strategies.

Several identical legs: if all legs of a group have the same type and direction (e.g. three short calls with different strikes), each one is stored as its own strategy, not as one combined strategy.

Several identical strategies in one order: with 4, 6, 8 or more legs, sTraderZ.com checks whether the legs can be split into several identical spreads (e.g. 6 legs = 3× bear put spread). With 8, 12, 16 or more legs, the same check is made for several iron condors or iron butterflies. If that works, you get several strategies of the same type.

3. 📋 Recognised Option Strategies

The following rules apply to the grouped legs from the previous section. “Same quantity” means the same number of contracts per leg.

GroupStrategyRecognition rule
Single optionLong Call · Short Call · Long Put · Short PutOne leg. Buy = long, sell = short. Afterwards the stock + option check follows (next section).
Vertical spreadsBull Call SpreadCall bought + call sold, same expiry, same quantity, bought strike lower
Bear Call SpreadCall sold + call bought, same expiry, same quantity, sold strike lower
Bull Put SpreadPut sold + put bought, same expiry, same quantity, sold strike higher
Bear Put SpreadPut bought + put sold, same expiry, same quantity, bought strike higher
RatioCall/Put Ratio SpreadLike a vertical spread (same option type, same expiry, different strikes, one leg bought, one sold), but with unequal quantity and more contracts sold
Call/Put BackspreadLike a ratio spread, but with more contracts bought. The position of the strikes does not matter.
VolatilityLong StraddleCall + put bought, same strike, same expiry
Short StraddleCall + put sold, same strike, same expiry
Long StrangleCall + put bought, different strikes, same expiry
Short StrangleCall + put sold, different strikes, same expiry
SyntheticsRisk Reversal (bullish)Put sold + call bought, same expiry
Risk Reversal (bearish)Put bought + call sold, same expiry
Time spreadsCalendar SpreadSame option type, same strike, different expiries, one leg bought, one sold
Diagonal SpreadSame option type, different strikes and different expiries, one leg bought, one sold
Fig LeafSpecial case of the diagonal spread with calls and equal quantity: bought call with the lower strike and later expiry that is a LEAP (more than 365 days to expiry from the trade date), plus a sold call with a higher strike and nearer expiry. Equivalent to the poor man's covered call.
Double Calendar Spread4 legs: one call calendar and one put calendar (each with the same strike, different expiries, one leg bought, one sold), both using the same pair of near and far expiry
Iron strategiesIron Condor2 puts + 2 calls, same expiry, 4 different strikes: sold put and sold call inside, bought wings outside. The reverse (bought inside, sold outside) is called a reverse iron condor; it is also listed as an iron condor, “reverse” only appears in the description.
Iron ButterflyLike an iron condor, but the sold put and the sold call share the same strike. The reverse variant is also listed as an iron butterfly.
ButterfliesLong Call/Put Butterfly3 strikes, calls only or puts only, same expiry: exactly 1 bought at the bottom, exactly 2 sold in the middle, exactly 1 bought at the top, equal wing width
Short Call/Put ButterflyMirror image: 1 sold at the bottom, 2 bought in the middle, 1 sold at the top
Broken Wing ButterflyLike a long or short butterfly, but with unequal wing width (e.g. 95/100/110)
LizardsJade Lizard3 legs, same expiry, exactly 1 contract each: put sold + call sold (lower strike) + call bought (higher strike), put strike different from the sold call's strike
Big LizardLike a jade lizard, but the put strike equals the sold call's strike
OtherCustomAny combination that no rule matches
⚠️ Quantities for butterflies and lizards: these two groups are currently only recognised with exactly 1-2-1 or 1-1-1 contracts. A butterfly with 2-4-2 contracts therefore appears as Custom.

PMCC (poor man's covered call) is not recognised separately. Structurally it ends up as a fig leaf or diagonal spread.

0DTE: if an option expires on the trade date itself, the strategy and the trade cycle additionally get the 0DTE flag. This does not change the strategy type.

4. 🛡️ Stock + Option: Covered Call, Married Put & Co.

A single option gets a different name if matching shares are held in the same account. The check uses your holding of the same underlying in the same account. Holdings in other accounts do not count.

Frombecomesif
Short CallCovered CallYou hold at least contracts × 100 shares long.
Long PutMarried PutYou hold at least contracts × 100 shares long.
Short PutCovered PutYou are short at least contracts × 100 shares.
Long CallProtective CallYou are short at least contracts × 100 shares.
Married Put + Short CallCollarAn open married put and a short or covered call on the same shares are open at the same time.
Short PutCash-Secured PutThe short put is still open, it is a stock option (not a futures option), and your account reports enough money: buying power, available funds or cash ≥ strike × 100 × contracts.

Which holding counts? sTraderZ.com looks in this order and uses the first match:

  1. your current stock holding as reported by the broker,
  2. the last holding reported by the broker on or before the trade date,
  3. for covered calls only: the sum of your stock buys and sells up to the trade date. This covers shares from an assignment for which no holding was reported.
ℹ️ Two particularities of the cash-secured put: the check uses the most recently reported balance, not the one on the trade date. And it only runs for open short puts. A short put that is already closed therefore stays a short put, even if it was covered at the time.

5. 🔄 Trade Cycles

A trade cycle tracks your position in exactly one instrument: a stock, an ETF or a single option contract (underlying, strike, expiry, call/put). A two-leg spread therefore has two cycles; the campaign brings them back together.

Basic rule: a cycle starts when the position goes from 0 to a holding and ends when it is back at 0. Every trade in between is classified:

StepMeaningExample AAPL stock
OpenPosition goes from 0 to a holdingBuy 100 → holding 100
AddHolding grows in the same directionBuy 50 → holding 150
ReduceHolding gets smaller but stays above 0Sell 80 → holding 70
CloseHolding is back at 0, the cycle is completeSell 70 → holding 0

Special cases worth knowing:

  • Expiry without a booking: if the broker does not deliver an expiry record for an option that expired worthless, sTraderZ.com closes the cycle itself, at the earliest 36 hours after expiry. The expiry date is used as the closing date.
  • Put assignment: the assigned shares get their own stock cycle, linked to the option cycle. Shares you had already bought before stay in their own cycle. Several assignments in a row are collected in the same assignment cycle as long as it is open.
  • Call assignment / put exercise: the delivered shares reduce your open long cycle. A new short cycle is only created if you did not hold the shares at all.
  • Two open cycles of the same stock: this is intended with assignments (see above). If you later sell more shares than one cycle contains, the parallel cycles are merged into one so that nothing stays open in the end.
  • Opening and closing on the same day without a time: if a trade has no execution time (e.g. daily statements) and the opening and the closing of the same instrument fall on the same day, the opening counts first. A call sold and bought back on the same day is therefore correctly recorded as a short cycle.
  • Cancelled executions (e.g. at Interactive Brokers) are netted out and do not count twice.
  • Provisional trades (Interactive Brokers, intraday): If executions arrive during the day through the Trade Confirmation query, cycle detection includes them right away. The Activity query replaces the provisional row the next day with the final one (same execution ID, no duplicate). If IBKR reports a different open/close status at that point, the cycle keeps its original assignment until the account's cycles are recalculated.
  • Portfolio transfers count as incoming or outgoing shares. An outgoing transfer without an existing holding does not create a short position.

The cycle takes over the strategy type of the strategy its trades belong to. So if the trade log shows “Short Strangle” on a cycle, that comes from strategy recognition.

6. 🎡 Campaigns: Spreads, Rolls and Wheel

A campaign groups everything that belongs to one undertaking on an underlying: the legs of a spread, rolls across several expiries or a complete wheel. These campaign types exist:

Shown asCreated when
💰 CreditA single option was sold and later closed or expired.
💸 DebitA single option was bought and later closed or expired.
📈 Stock Long / 📉 Stock ShortA stock position (one stock cycle) without linked options.
📊 SpreadA recognised multi-leg strategy. All its legs end up in the same campaign.
🔄 RolledA single option was closed and, within 4 hours, a new one on the same underlying with the same option type was opened, with a different strike or expiry.
🔗 Roll ChainSeveral campaigns were linked into a chain: by rolls of a whole strategy, by rolls of single legs or by an assignment that creates a stock position.
🎡 Wheel (running)The chain contains a sold option and an assignment.
🎡 Wheel (closed)The full circle: put → assignment → stock → call sold → shares called away.
💍 Married Put / 🛡️ Protective CallThe hedge and the hedged shares are in one campaign (conditions below).

Linking rules:

  • Roll of a strategy: a strategy is closed and a strategy of the same type on the same underlying is opened, up to 4 hours after the close or up to 60 seconds before it (some brokers book the new position first in a roll order).
  • Roll of a single leg: a leg is closed and reopened on the same side (call or put) with a different strike or expiry, within the same time window.
  • Assignment: the stock position created by an assignment is linked to the option campaign it came from.
  • Wheel: covered calls opened after the assignment go into the wheel campaign. Further sold puts on the same underlying are pulled in as well, including puts that expired worthless and were never assigned, and so are sold calls while you hold the shares. Positions with bought options (spreads, iron condors, long calls and long puts) and calls sold without holding the shares stay separate campaigns.
  • Married put / protective call: the shares go into the same campaign if they were bought (or sold short) on the same day as the option and the number of shares is exactly contracts × 100.

New campaign as soon as you are flat: if nothing is open on an underlying at the end of a trading day (no shares and no options; an option counts as closed on its expiry day), the campaign ends. Whatever you open afterwards starts a new one, even on the next day. A roll on the same day (close and reopen) stays in the same campaign. If you trade 0DTE daily and are flat every evening, you get one campaign per trading day. A wheel where you keep holding the shares continues without a break, even if nothing was traded for months.

Linking campaigns yourself: the automatic detection splits on every day you are flat. If two campaigns belong together for you anyway, for example an overnight roll, open one of them in the cycle dialog, switch to the “Campaign” tab and click “Link campaigns”. In the events table, use “Link with another campaign …” to pick a trade as the link point, then choose the target campaign. Both campaigns are linked completely, not just from the selected trade onward. This works only for the same underlying in the same account, and the link survives every re-detection. Linked campaigns carry the label “Linked” in the trade log. “Undo link” deletes the decision and separates the campaigns immediately: sTraderZ.com rebuilds only this underlying, which can take up to a few minutes on very large accounts. Roll chains are rebuilt in the process and are not guaranteed to be identical to the state before linking. If the linked campaign has a note or manual settings, they are lost in the process; the confirmation prompt points this out.

A campaign's status follows its cycles: it is closed when all linked cycles are closed, and open as long as one of its strategies is still open.

More on the blogLinking campaigns: you decide what belongs togetherStep by step with an overnight roll, including what happens to return and annualized return

7. 📈 Showing Trades in the Chart

In the chart, the “My trades” toggle shows your fills and roll chains as lines. You set how they look in the menu Appearance → Trade display …. The dialog shows a preview for every option and saves your choice for your account on all devices.

SettingOptionsEffect in the chart
🎨 Line colorPut / Call · Account · Result · RiskSets what the strike line is colored by: option type (puts red, calls green), the account, the result of the cycle, or the risk (teal, yellow or red by the distance of the close to the strike).
🏷️ Cycle resultsChips · Dots · OffShows the result of each cycle at the end of the line: as an amount in a chip, as a green or red dot (amount in the tooltip) or not at all.
📊 Premium bandNo band · With premium bandShows the area from the strike to the break-even at opening. It shows the premium cushion the position had when it was opened. No band appears for debit positions (long call/put, debit spreads) or when the opening premium cannot be determined.

The four previews show the same example roll chain in the four line colors (cycle results as chips, in “Risk” mode additionally with the premium band):

Put / Call: puts red, calls green.
Account: each line in the color of its account, calls dashed.
Result: neutral trail, the color sits in the result dot at the end.
Risk: color by the distance of the close to the strike, here with the premium band.
ℹ️ Good to know: In “Risk” mode the coloring is only rough on intraday charts with few candles. “Reset” in the dialog restores the default: Put / Call, chips, no premium band.

8. ❓ Common Surprises

You seeCommon causeWhat you can do
Short Call instead of covered callFewer than contracts × 100 shares (e.g. 150 shares, 2 calls), or the shares are in another account.Check holding and account. If an import of the stock purchases was missing, import it and let recognition run again.
Short Put instead of cash-secured putThe put is already closed, the most recently reported balance is not enough, or it is a futures option.Nothing; the classification is correct by the rules. For your analysis you can assign the cycle to one of your own strategies.
Two single options instead of a spread or strangleThe legs were executed separately, in different seconds and with different strikes.Use a combo order in future. Existing trades stay separate.
CustomNo rule matches, e.g. a butterfly with 2-4-2 contracts, mixed expiries outside calendar and diagonal, or 5 or more legs without a repeating pattern.If it is a known strategy that is just classified incorrectly, send the trade IDs to support.
Two open cycles of the same stockIntended after an assignment: assigned shares and shares bought before are kept separately.If the total number of shares matches your portfolio, everything is fine. Otherwise: full re-detection.
Option still open after expiryThe broker did not book the expiry. sTraderZ.com closes the cycle itself at the earliest 36 hours after expiry.After that period, import again or run the full re-detection.
Roll shown as two campaignsMore than 4 hours passed between close and reopen, or the strategy type changed in a strategy roll.For your analysis you can assign the cycles to a common strategy of your own. If that is not enough: support.

9. 🧷 Closing Trades Without Opening

On the account detail page (“Data Quality” tab), the “Closing trades without opening” card lists sales or buy-backs that the broker reports as closing a position for which sTraderZ.com knows no opening. This is not a program error; it is a sign that shares are missing from your history.

Why the message appears

sTraderZ.com keeps a running holding for each instrument, trade by trade: buys add, sales subtract, custody transfers and stock splits are included. The card triggers when the broker flags a trade as “close” while the holding before it is exactly 0. Then there is nothing the trade could close.

Typical causes:

  • Custody transfer from another broker or account. The shares arrived by transfer, so there was no purchase that could be imported.
  • The import period starts too late. The purchase lies before the oldest date you imported.
  • Shares from an exchange, spin-off, merger, gift or inheritance. There was no purchase in the usual sense.
  • Ticker or account change at the broker: purchase and sale appear under different names.

Why the message often shows up months after the actual gap

The card names the trade at which the holding was 0 when it closed, not the trade from which something is missing. Example with a stock XYZ where one share is missing:

DateTradeHolding afterFlagged?
6 FebBuy 11no
7 MarSell 2 (close)−1no, the holding before was 1, not 0
13 MayBuy 32no
9 JunSell 2 (close)0no
10 JunSell 1 (close)−1yes, the holding before was 0

The missing share has an effect from 7 March, but it is only flagged on 10 June. The later purchase of 3 shares temporarily “covered” the gap. For the fix, what counts is the date from which the holding is missing (here 7 March), not the date of the message.

The most common mistake when adding it: the wrong date

If you add the missing shares as a custody transfer and type today’s date as the transfer date, the message does not go away. The transfer then sits after all the sales. At the time of the sales the holding is still missing, the card stays unchanged and it looks as if your entry did nothing. In the example, the entry must be dated 7 March or earlier.

Entry of 1 share dated …Result
today (after all sales)Holding on 10 Jun is still 0, the message stays
7 March or earlierHolding on 7 Mar = 2, the sale works out, the end result is 0, the message disappears

How to fix it, step by step

  1. Open the account detail page of the affected account and switch to the “Data Quality” tab.
  2. If the purchase was made before your imported data begins, click “Add past purchase” in the row of the sale. The dialog opens with symbol and quantity already filled in and tells you the latest possible purchase date. Enter the purchase date, the price per share and the fees; the dialog calculates the cost basis itself.
  3. If the shares instead arrived by transfer from another portfolio, choose “Was it a portfolio transfer?”. The form opens with symbol, quantity and transfer date. Enter the acquisition cost (total amount for these shares, not the price per share) and the original acquisition date. You will find both on the purchase confirmation or the custody statement of the previous broker.
  4. Check the quantity: enter exactly the missing amount. Too much creates a phantom holding that later shows up as an open position.
  5. Save. Cycles are re-detected and the card updates immediately. The position flows tax-neutrally into the FIFO calculation and the tax report with the cost you entered.

Entered it wrongly? Change the date or delete the entry

Open the “Transfers” tab of the same account. Entries you created by hand carry the “manual” badge and have a date field with “Save date” and a “Delete” button in the last column. Imported transfers cannot be changed there; they belong to the broker import. After every change, cycles and the card are recalculated.

Adding a purchase from before your import start

You bought the shares in the same account, but before the earliest date of your import: use “Add past purchase”, at the top right of the trade history and in the “Transfers” tab of the account detail page. Enter purchase date, quantity, price per share and fees; the cost basis (quantity × price + fees) is shown right away. After saving, the dialog stays open so you can add further partial purchases directly.

From then on the purchase counts everywhere sTraderZ.com calculates with cycles: in the trade log, in the analyses and the strategy performance (realised and open profit), and in the tax report. In the trade history it appears as a separate row with the “Purchase (manual)” badge; the two icons next to it let you edit or delete it. A holding that arrived by portfolio transfer is shown with the “Added manually” badge instead and is changed in the “Transfers” tab.

Cannot find an opening in your statements?

  • Import an earlier period. With Interactive Brokers, fetch the Flex Query for earlier years and load it. If the broker no longer provides the period, use the next point.
  • Document from the previous broker or the transfer request. It usually shows date, quantity and cost price. Use those values for your entry.
  • Spin-off, merger or exchange: the new shares usually inherit cost and date of the old ones. Look at the original security and split accordingly.
  • Gift or inheritance: the value and date at the time of acquisition apply.
  • Nothing can be found any more: enter your best provable value and note where it came from. sTraderZ.com calculates with the amount entered, so an estimate flows into the tax report just like a documented value. You are responsible for the figure.

10. ✏️ Correcting It Yourself

WhatWhereEffect
Merge cyclesTrade log: tick the cycles → “Merge”Several cycles become one. Only for cycles of the same instrument in the same account: for options, underlying, strike and expiry must match. If the selected cycles differ, “Merge” is greyed out and a hint explains why.
Split off tradesTrade log: open a cycle, select trades → “Split off selected”The selected trades form a new cycle of their own.
Assign your own strategyTrade log: open a cycle → “Assign strategy”Assigns the cycle to one of your own strategies, e.g. for analyses. The automatically recognised type (e.g. “Short Put”) stays unchanged.
Re-detect everythingAccounts → open an account → “Data Quality” tab → “Run full re-detection”Strategies, cycles and campaigns are rebuilt completely from the existing trades. Useful after importing missing trades or deleting trades.
ℹ️ Good to know: splitting and “Assign strategy” are currently only available in the desktop view of the trade log. On a phone and in the app, a cycle opens a separate detail page where both are missing. Cycles you merged or split stay the way you set them up when recognition runs again. Your tags and your own strategy are also kept during re-detection: if the cycle contains different trades afterwards, they move to the cycle with your opening trade. If no cycle can be found in a rare case, you will see a notice in your system messages. Journal entries you linked to a position stay attached to it, even when a later import adds trades.

You cannot change the recognised strategy type itself. If you think it is wrong, send support the trade IDs from your broker and a screenshot. If an error repeats, the rule is improved for everyone.