Reference guide · Support Bots

Trade Register Bot: an execution-by-execution record

Understand what the Trade Register actually records, how the execution history becomes a trade journal, and where its performance figures and historical limits must be interpreted with care.

Support Bots · Execution historyIBKR · Exact fillsRead-only · No order placement
01

What is Trade Register Bot?

A dedicated record of trades — not an order-execution engine.

Trade Register Bot is the SB-ITM component that records stock executions reported by Interactive Brokers and organizes them into an operational trading history.

It connects in read-only mode. It does not buy, sell, cancel, replace or protect orders. Entry Bot and Risk Bot retain their separate roles.

!

Important: the Trade Register is an internal operating record. It complements, but does not replace, the broker’s official executions, activity statements or tax documentation.

02

How the record is built

From actual broker fills to a readable trading journal.

01

Collect

Read stock fills for the configured IBKR account after the tracking activation time.

02

Identify

Deduplicate by execution identity and distinguish pre-existing holdings from newly tracked trades.

03

Consolidate

Associate exact buy and sell executions, update open quantity and calculate closed-trade results.

04

Publish

Preserve durable CSV records and regenerate the validated Excel presentation.

All steps depend on the data actually delivered by IBKR and on the bot being able to access its existing persisted records.

03

One execution means one record

Partial fills are preserved individually.

If an order executes in several fills, each broker execution is retained separately with its own exact quantity, exact execution price and execution timestamp. Buying 100 shares through several partial fills does not become one fictional execution at an average price.

Each execution carries broker identifiers and, as available, the security identity, direction, fees, execution time and other contract metadata. Duplicate execution IDs are not treated as new trades.

i

A trading order, an execution (fill), a position and a completed trade are not interchangeable concepts. The Register distinguishes these levels.

04

Why the prices are exact

The journal does not replace fills with average entry or exit prices.

The source code imposes a strict rule: every displayed entry and exit price comes from a real IBKR execution. If several executions belong to a trade, their prices are retained as separate values.

Entry and exit values may be summed to compute a financial result. That aggregation must not be confused with a displayed average execution price.

05

OPEN and CLOSED trades

The status follows the recorded entry and exit quantities.

The Register groups related fills into individual trades. A trade is OPEN when an entered quantity remains outstanding and CLOSED when the recorded exits fully offset the recorded entries.

Partial disposals can reduce the remaining quantity without turning the full trade into CLOSED. Each row also includes opening and closing times, duration and strategy context where it can be established.

06

How realized P&L is calculated

Realized figures are associated with fully closed tracked trades.

For a closed tracked trade, gross P&L is derived from the sum of exit execution values minus the sum of entry execution values. Net P&L also deducts the recorded broker fees and any configured country taxes.

The percentage is based on the entry value. For an OPEN trade, the trade record does not invent a finalized P&L: realized result fields remain unavailable until closing.

!

Commissions may be updated when IBKR supplies a later commission report. Figures can therefore be revised. This journal is not a real-time mark-to-market of open positions.

07

What happens to positions already open?

Pre-activation positions are isolated from new official tracking.

At first activation, the bot identifies holdings already open. It classifies them as LEGACY and excludes their subsequent executions from the newly tracked official results until the position has been flattened.

This avoids inventing a missing opening price or incorrectly presenting an old position as a newly opened trade. Separately validated historical trade imports may exist, but the bot does not automatically reconstruct all past transactions from a newly connected account.

08

Which executions are included?

The current source tracks stocks, not every IBKR asset class.

The reviewed implementation records executions of instruments reported as stocks (STK) for the configured account. Non-stock executions, such as some currency conversions, are excluded from official tracked trades.

Executions predating the activation timestamp and unmatched sell executions are also excluded from new official trades. Their handling is deliberate, not necessarily a broker error.

09

Market and risk context

Additional annotations are useful only when evidence is available.

When available, the Register can enrich a trade with company information, sector and scan-related context. It can also associate a recognized exit with Risk Bot trailing-level information or an emergency-close record.

These annotations depend on matching archived inputs and logs; some may remain blank or unknown. Their absence does not invalidate an IBKR fill, and a label must not be treated as definitive proof of which order caused an execution.

10

Understanding the exit classification

Swing, Intraday and Emergency labels follow recorded evidence.

The Excel dashboard groups closed trades using detected exit markers: L1–L4 for Swing, INT. for Intraday and EME. for recognized Emergency exits. Unclassified records remain in an unknown/other group.

In the underlying code, an Emergency designation requires a match to durable broker execution information; it is not assigned simply because a trade closed at a loss.

11

Which files are produced?

Persistent data first; Excel is a generated viewing layer.

01

Execution register

A durable CSV preserves the individual IBKR executions with exact prices, quantities and identifiers.

02

Consolidated trade register

A separate CSV groups executions into OPEN/CLOSED trades and carries any available financial and contextual attributes.

03

Legacy and tracking state

Dedicated state and history files maintain the activation boundary, historical exclusions and deduplication information.

04

Excel workbook

A regenerated XLSX provides the human-readable trade table and performance dashboard.

Do not edit, delete, merge or replace the durable source files manually. Ask SB-ITM Support before restoring or importing history.

12

How to read the Excel workbook

A presentation layer with a trade table and a realized-performance dashboard.

The workbook contains a Trade Register worksheet with structured headers and filters, plus a Dashboard worksheet for reviewing the recorded trading activity.

The Dashboard includes realized net P&L, numbers of closed and open trades, win rate, performance by detected exit category, and historical realized-result charts. It does not provide live unrealized market valuation for open positions.

The bot validates the generated XLSX package before replacing the previous workbook. If Excel has the file open and prevents replacement, close the workbook and follow the normal support or recovery procedure.

13

How automatic updates work

The collector operates while the bot is running and IBKR is reachable.

The bot periodically polls broker execution data, processes any new fills and persists its register. It also refreshes the Excel workbook at a separate configured frequency and when new or amended fills are processed.

If a collection cycle fails, the implementation attempts a later reconnection. This does not guarantee that an unavailable IBKR session or an interrupted bot will update itself immediately.

14

PAPER and LIVE accounts

Always interpret a register within its own account context.

Each register is associated with an IBKR account identifier and the account data available through its connected Gateway. PAPER and LIVE histories must not be mixed when reviewing results.

The presence of a workbook or a file on a VPS does not establish that the bot is currently connected or that the most recent fills have already been received.

15

Trade Register, Cash Bot and Snapshot Bot

Three different views of trading operations.

TR

Trade Register

What filled, when, at what exact price, and what fully closed trades realized.

CA

Cash Bot

Account cash and portfolio indicators from IBKR account information.

SN

Snapshot Bot

A dated observation of current positions, available quotes and visible orders.

These components complement one another. None of their locally generated reports replaces an official IBKR statement.

16

Safe checks for clients

Verify records without rewriting their source.

  1. Confirm the correct account: PAPER or LIVE, with the expected historical scope.
  2. Check the most recent recorded execution: compare its time and exact price with IBKR if a discrepancy is suspected.
  3. Separate OPEN from CLOSED: do not treat unrealized positions as finalized trading results.
  4. Check any missing classification: an unavailable trailing label is not proof of an execution error.
  5. Use the Web Portal: open a Support ticket before changes to historical data, imports, configuration or files.
17

Frequently asked questions

Common points when reading the Trade Register.

Does the Trade Register send broker orders?

No. Its IBKR connection is read-only and its purpose is recordkeeping.

Can I reconstruct earlier trades by turning it on today?

Not automatically. Pre-activation positions are isolated as legacy. Any historical import requires validated data and a controlled process.

Why does a completed order appear as several prices?

Because one order may have several fills. The journal retains each exact broker execution price rather than displaying a synthetic average.

Why is the P&L blank on an open trade?

The Register calculates realized results for fully closed tracked trades. Open positions are not valued through live mark-to-market in this workbook.

Why can a fee or result change afterward?

IBKR commission data may be updated after the original execution and the bot can refresh the existing record.