Positions and working orders: live tables, cancel, 4 Hz coalescing
The Open Positions and Working Orders tables mirror what the broker's PnL and order plants report for the active account, with a Cancel button per order and a position stream coalesced to 4 Hz except for open, close and reverse transitions.
Senzoukria · Documentation · Updated September 2026
Where to find it
- Where
- Trading page → right column, next to Day Stats and Equity Curve
- Source
- Broker PnL plant (positions, stats) and order plant (working orders) of the active account
- Refresh
- Positions at most every 250 ms per instrument; transitions immediately
What it does
Open Positions lists each position the broker reports with Symbol, Side (LONG or SHORT), Qty, Avg (average price), Last (market price) and uPnL (unrealized P&L, signed). When nothing is open, the table reads "Flat. No open positions."
Working Orders lists pending orders with Symbol, Side, Type, Qty with the filled quantity in parentheses when partially filled, Limit, Stop, Status and a Cancel button. The empty state reads "No pending orders right now." Cancel sends the cancellation for that order id; the backend resolves the account the row came from, the same convention as Flatten all. Errors are shown above the table.
Columns
| Table | Columns | Notes |
|---|---|---|
| Open Positions | Symbol · Side · Qty · Avg · Last · uPnL | Prices with two decimals; uPnL coloured by sign |
| Working Orders | Symbol · Side · Type · Qty (filled) · Limit · Stop · Status · Cancel | Order type in upper case with underscores replaced; missing prices shown as — |
How the position stream is coalesced
The broker's PnL plant emits one message per update with no throttle, and each publication used to commit the chart root and repaint the entry line label, which carries the P&L to the cent. Measured live, an open position raised root commits from 3–5 to 12–17 per second. The coalescer applies three rules: an event that changes nothing is not published; publications are capped at 4 Hz per instrument, so the displayed P&L is at most 250 ms behind; and transitions (open, close, reverse) are published immediately, because "I am flat" must show the instant it is true. A 100 ms tick drains the queue so the last update before the market goes quiet waits less than 350 ms.
Closed-trade P&L for Day Stats is anchored on the broker's realized P&L at the moment of opening, so a scale-out in several legs is recorded as one trade whatever its pace.
Limits and pitfalls
- The tables show what the broker reported. A working order absent here was not received, which is not the same as not existing; check the broker platform when in doubt.
- Each instrument is throttled independently so one active position does not delay another.
- Switching accounts clears both tables and the coalescer's memory, then repopulates from the new feed.
- Live trading is done on your own broker account; market data is billed by the provider.
Related pages
This page in other languages
Frequently asked questions
- Why does the unrealized P&L update in small steps rather than every tick?
- The position stream is capped at four publications per second per instrument to keep the chart responsive. Only opening, closing and reversing a position bypass the cap.
- Can I modify a working order from the table?
- The table offers Cancel per order. Protective stop and target management is done from the account panel or the chart, where the position and its exits are handled together.