Compare two scenarios¶
Goal: see how a paper or hyp scenario does next to production (LIVE): its P&L and
positions, the prices in its market world, and where its strategy's decisions differ.
Prerequisites
- The target context is active. Comparing only reads: any signed-in user may do it.
- Two scenarios (see Scenarios), each with a P&L worker for the P&L tab and a strategy placing orders for the Decisions tab.
Steps¶
-
Open Trading > Compare (route
/trading/compare). The first picker holdsLIVEand the second the first other scenario that is not archived. Pick others if you like; ⇄ swaps them. This browser keeps the pair for your next visit.The P&L tab shows, per symbol and in total, each scenario's quantity, average cost, mark, unrealized and realized P&L, notional and fees, and the difference (second minus first): in the positive tone when the second is higher, the negative tone when lower.

-
Market. Per symbol and venue, each scenario's order-book mid and last trade in its own market world, with the spread and its basis points. Two scenarios on the same world show a spread of zero. Add a symbol… and Add compare one more; × removes it.

-
Decisions. The orders both scenarios placed since you opened the page, newest first, side by side when they match: same symbol and side, decided at most Match window seconds apart (5 by default; change it in the field, it is kept). Rows in the warning tone are divergences: an order only one scenario placed, or a pair that ended differently (
differs: filled vs rejected). The note counts each scenario's fills.
Result¶
The page shows both scenarios side by side and follows them live. Nothing is written to the context: only this browser's pair, tab, symbols and match window are kept.
Troubleshooting¶
- "no P&L worker runs for PAPER": the scenario has no P&L book (
sc.PAPER.pnl.book). Start its P&L worker; until then the tab shows the other scenario's figures only. - Decisions is empty: it shows orders placed while the page is open, not earlier ones. A fill of an earlier order counts in the note's "of earlier orders".
- A replay matches nothing: times are the orders' own, so a replay of a past day never
lines up with
LIVEtoday. That is the right answer: the decisions were not taken at the same market time.