Reference guide · Support Bots

Cash Bot: understanding cash and account metrics

How SB-ITM reads IBKR financial data, checks its consistency, and reports account figures without confusing cash, performance, and permission to buy.

Support Bots · Account monitoringIBKR · USD snapshots and P&LRead-only · No orders
01

What does Cash Bot do?

An account snapshot, not an entry-decision engine.

Cash Bot reads financial information from Interactive Brokers and brings together useful account measures: USD cash, net account value, realized P&L, and unrealized P&L. Its output is a snapshot of the account at the moment it runs.

Cash Bot is a read-only support component. It does not choose stocks, submit orders, or move funds. Some of its measures are displayed by the Control Center alongside information produced by other components.

!

Remember: cash shown in the last Cash Bot snapshot is neither a promise of buying power nor permission to enter a position. Entry Bot checks account funds and order conditions again when a purchase is considered.

02

Where it fits in SB-ITM

Reporting, execution and position protection are separate duties.

01

Cash Bot

Reads IBKR account measures and publishes a dated snapshot.

02

Entry Bot

Checks cash and entry conditions when a trade is considered.

03

Risk Bot

Monitors open positions and their broker-confirmed protective orders.

The Morning Decision Chain prepares candidates; Cash Bot does not participate in Scan A or Scan B scoring. The Trade Register tracks transactions, and portfolio-history data is handled by a separate process. These functions complement one another rather than replacing one another.

03

Why read-only access matters

Inspecting account data without placing orders.

Cash Bot connects to IBKR in read-only mode, obtains the information it needs, writes an execution log, and disconnects. It does not send buy, sell, or fund-transfer instructions.

This keeps its operational scope limited. A failed data request may make an indicator unavailable, but Cash Bot does not repair orders or alter positions. Those functions belong to other SB-ITM components and to the broker.

04

What Cash Bot needs to run

Snapshot quality depends on the IBKR environment.

Cash Bot needs an operating VPS environment, an available IB Gateway connection, access to the relevant account, and a valid SB-ITM license. The license check takes place before the IBKR connection attempt.

An interrupted session, an unexpected account, missing summary data, or an abnormal broker response can prevent a trustworthy snapshot. Before interpreting any amount, check the account, the active PAPER/LIVE environment, and the timestamp of the last completed snapshot.

05

When does Cash Bot run?

Repeated snapshots rather than a continuously refreshed balance.

In the supplied task schedule, Cash Bot starts automatically every five minutes from 9:01 AM New York time, within the configured market-task window. Each run is a separate operation: connect, obtain the snapshot, log the values, and disconnect.

The Control Center may also provide an on-demand launch. Between runs, the real account balance can change after an order, market movement, or account transaction. Treat every displayed value as a timestamped snapshot, not a continuously guaranteed balance.

06

Understanding the displayed USD cash

Cash, funds available and margin-related buying capacity differ.

Cash Bot prefers the USD cash figure reported by IBKR (TotalCashValue). If it is unavailable, the bot may fall back to AvailableFunds. It does not arbitrarily combine multiple currencies to manufacture a USD cash figure.

These IBKR metrics do not represent exactly the same thing: available funds may reflect margin and account-specific rules. Using USD as the account base currency improves consistency, but does not erase that distinction.

i

Example: the dashboard might show USD 1,200 in the last snapshot, while Entry Bot later refuses a purchase because other orders, safety buffers, or entry controls reduce what can actually be used.

07

Understanding net account value

Total portfolio value is not the same as cash.

The portfolio value reported by Cash Bot comes from IBKR's net-liquidation account measure. It provides an overall account view, including open positions and cash under the broker's valuation rules.

An account can therefore have a high portfolio value but very little cash. Equally, holding cash does not establish that the portfolio has made a profit. If IBKR does not return a valid, positive net-liquidation value, Cash Bot ends with an error rather than publishing a misleading portfolio value.

08

The portfolio cash allocation

A descriptive ratio, not a recommended target.

Cash Bot also calculates cash as a percentage of the account's net value. It divides the cash figure by net liquidation and expresses the result as a percentage.

Illustrative example only

An account with a USD 12,000 net value and USD 3,000 in cash has a cash allocation of about 25%. This describes the allocation at a point in time. It does not mean that USD 3,000 can immediately be invested, or that 25% is a recommended allocation.

09

Realized versus unrealized P&L

Two figures measuring different things.

Realized P&L is the account-level gain or loss figure returned by IBKR for realized activity. Unrealized P&L refers to gains or losses on positions that remain open, as reported by the broker.

Cash Bot displays both figures, but does not reconstruct the detailed history of each trade or a net return for a user-selected period. Its amounts can therefore differ from closed-trade reports in the Trade Register because of different dates, scopes, and fee treatment.

10

How the unrealized-return percentage is verified

An N/A is better than a misleadingly precise result.

To calculate unrealized P&L as a percentage of open-position cost, Cash Bot separately requests the account's actual portfolio positions from IBKR. It checks that the values, P&L, USD currency, and estimated acquisition cost are consistent.

The percentage is displayed only after successful reconciliation. If holdings are missing, figures do not match, or the broker does not respond in time, the unrealized P&L amount may still be visible while its percentage is shown as N/A (not available).

!

An N/A percentage is not a 0% return. It means the validation conditions were not met.

11

Handling missing or inconsistent data

An absent value must not be read as a trusted measurement.

If IBKR returns no account summary, no usable USD cash measure, or no positive net-liquidation value, Cash Bot reports an execution failure. That run must not be treated as a new, complete snapshot.

Under the current code, some missing P&L fields are displayed as zero. If this occurs, do not infer from that number alone that the account had no gains or losses: confirm the actual broker data. The unrealized-return percentage receives stricter checks and remains N/A when reconciliation fails.

12

Reading the Control Center dashboard

Multiple data sources, kept visibly distinct.

Under Performance & Analytics → Trading Dashboard, the Control Center shows portfolio value, available cash, and unrealized P&L sourced from the last valid Cash Bot snapshot. Closed-trade measures, on the other hand, come from the Trade Register.

English Trading Dashboard showing portfolio value, available cash, unrealized P&L and closed-trade performance
Existing Control Center screenshot. The figures illustrate the interface; they are not live account data.

The dashboard labels the source and scope of its figures. Read the snapshot time and the metric explanations, especially when comparing open positions with closed trades.

13

Completed, dated data is essential

An older amount must not masquerade as a current account balance.

For cash and account-value indicators, the Control Center code looks for the last fully completed Cash Bot snapshot dated today in VPS local time. An incomplete log or a prior-day snapshot should not be treated as today's fresh measurement.

An unavailable indicator can therefore mean that no valid recent snapshot exists—not that cash is zero. This prevents partial or outdated results from silently appearing as trusted current data.

14

Cash Bot logs: reading a completed run

An execution trace, not a full accounting ledger.

Each run can write a dated log to the VPS log folder. It records IBKR connectivity, the visible account, the main figures, and completion status. When something fails, the error helps support identify the affected step.

A Cash Bot log is not a ledger of deposits, withdrawals, and trades. Repeated balance values cannot simply be added together to calculate capital changes: a balance measures a state at one time, not a financial flow.

15

Cash Bot, Portfolio History and the portfolio journal

Related account data, different responsibilities.

Cash Bot provides a point-in-time account reading. Portfolio History Bot uses compatible IBKR metric-reading logic to maintain a separate history of account value and P&L. Capital movements and their explanations belong to other tracking functions.

It would therefore be incorrect to claim that Cash Bot itself writes the deposits-and-withdrawals journal or stores the entire evolution of portfolio equity. Historical analysis requires dated records and properly identified capital movements.

16

Why Cash Bot and Trade Register figures differ

Their periods and coverage are not always directly comparable.

The Trade Register records transactions and supports closed-trade measures for a selected period. A Cash Bot snapshot is a current, account-level reading supplied by IBKR.

The broker's account-level realized P&L is not necessarily directly comparable with net realized P&L from only the closed trades included in a report filter. Unrealized P&L covers another population: still-open positions.

i

Best practice: do not describe “Trade Register realized P&L + Cash Bot unrealized P&L” as a homogeneous total without first reconciling dates, fees, and coverage.

17

Entry Bot uses its own pre-trade checks

A Cash Bot snapshot does not reserve funds.

Entry Bot queries IBKR to determine cash for the Swing and Intraday workflows. Depending on the active rules, it considers allocations, cash buffers, ongoing buys, open orders, and safety thresholds.

That explains why dashboard cash may be insufficient for a new entry—or may have changed since Cash Bot last ran. Cash Bot does not allocate funds to symbols and cannot override an Entry Bot cash rejection. See the dedicated Entry Bot guide for purchase-side safeguards.

18

PAPER and LIVE are separate account contexts

The same VPS can change environment; the funds do not transfer between modes.

SB-ITM lets clients select PAPER or LIVE through the Control Center on the same Managed VPS. Cash Bot's figures must be interpreted against the actual IBKR environment active at the time of its run.

Simulated PAPER balances are not funds available in the LIVE account. Likewise, LIVE cash is not a reserve used to finance simulated PAPER purchases. Verify the environment and visible account before comparing values.

19

Why account figures change between runs

An account movement is not necessarily a trading profit.

Cash can change after purchases, sales, commissions, deposits, withdrawals, and broker adjustments. Net account value can also move with market prices, even with no new order.

A deposit can increase both cash and account value without being a trading gain. A change in unrealized P&L may simply reflect price movement on open positions. Interpreting investment performance therefore requires combining dated account snapshots with identified capital movements.

20

Five examples of how to read the numbers

Practical situations without assuming that every mismatch is a failure.

A

Cash visible; entry denied

Entry Bot applies updated checks and limits. The older Cash Bot snapshot is not an authorization.

B

Unrealized percent is N/A

The broker supplied a P&L figure, but the underlying positions could not be reconciled reliably.

C

Dashboard field empty

The Control Center has not yet found a complete Cash Bot snapshot for today.

D

Cash rises after a deposit

The balance changes, but that movement must not be described as trading performance.

E

Connection error

Without a reliable IBKR response, no new complete snapshot is available.

21

Failures and subsequent runs

A later retry may work, but broker data still needs verification.

Cash Bot logs connection and read failures and exits unsuccessfully when mandatory data is missing. The task schedule includes subsequent runs; that does not guarantee the next attempt will succeed while an IBKR issue persists.

If portfolio position details are incomplete, the unrealized-return percentage may simply become N/A while the other account figures are still published. Distinguish a failed run, a completed snapshot with a partial indicator, and an outdated snapshot.

22

What clients can verify safely

Simple checks before requesting help.

  1. Confirm the correct PAPER/LIVE environment is selected and the IBKR connection is available.
  2. Open the Trading Dashboard and read the snapshot timestamp and the source of each indicator.
  3. Compare with the account values inside IBKR, keeping cash distinct from margin-related buying power.
  4. If a number appears wrong, note the time, account context, and Cash Bot message in the Control Center.
  5. Use Web Portal → Support to open a ticket if the discrepancy persists or affects account monitoring.

On a Managed VPS, support can review relevant logs using the ticket context. Clients are not asked to edit internal scripts or configuration files.

23

Changes that should not be improvised

Do not try to repair a financial indicator by editing its source.

Do not edit internal connection parameters, Cash Bot logs, financial figures, or Windows scheduled tasks to make an expected value appear. Do not repeatedly restart IB Gateway or other bots just because an account indicator is temporarily unavailable.

If an entry was rejected, start with Entry Bot's checks: restarting Cash Bot does not create cash or cancel pending orders. For genuine discrepancies, request a coordinated SB-ITM support review.

24

What Cash Bot cannot guarantee

An account snapshot, not a comprehensive performance statement.

Cash Bot depends on the availability and accuracy of IBKR data. It does not protect positions, guarantee that funds will exist at future order time, or monitor every trade continuously. It is not the broker's official accounting statement.

Net trading performance, fees, closed trades, and capital history must be assessed using the proper underlying records and reports. If an indicator is missing, outdated, or inconsistent, investigate the cause rather than replacing it with an assumed number.

25

Frequently asked questions

Clarifying the most common misunderstandings.

Does Cash Bot decide whether Entry Bot can buy?

No. Entry Bot performs its own current cash and safety checks through IBKR.

Is the displayed cash continuously live?

No. It reflects the last completed and dated snapshot, not every second of the session.

Why is unrealized P&L percentage N/A?

Because the underlying portfolio could not be reconciled sufficiently for a verified percentage.

Does Cash Bot maintain the cash-movement history?

No. It logs point-in-time snapshots. History and capital movements belong to separate functions.

Can I add all dashboard P&L figures together?

Not without checking that sources, periods, and fees are comparable.