ox-charts
Trading

The trading panel

The dock under the chart: position summary, orders, positions, closed trades, stats, automation and the tester.

Open the panel with Trading in the status bar at the bottom of the shell; the toggle also counts the account's working orders and positions, and turns red when an order's status is unknown. The panel opens as a dock under the charts: drag its top edge to resize it, and press ⌄ (or the toggle again) to hide it. Whether it is open, and how tall, is remembered.

Its strip reads the account in one line: position, Open P&L and, when the broker keeps an account, Realized P&L and Equity. Every symbol is named readably (BANKNIFTY 26 SEP 52500 CE), and prices print in that symbol's own decimals and quantities in its own lots.

TabShows
OrdersTime, side, type, qty, price, status, fill price. A resting order's TP/SL nest under it as ↳ TP / ↳ SL. An order the broker has accepted but not yet numbered reads Awaiting broker; one it never confirms becomes a red Unknown — check the order book row at the top, with Dismiss.
PositionsSide, qty, average, mark, open P&L, TP, SL, and how long it has been held (— when the broker does not say when it opened).
Closed tradesEntry, exit, P&L, %, R, exit reason (signal, take profit, stop loss, flatten, reverse) and bars held. Hover a row to highlight its fills on the chart.
StatsNet profit, win rate, profit factor, average win and loss, expectancy, max drawdown, commission.
AutomationStrategies, the kill switch and the audit log. See Armed state, confirm cards and the audit log.
Strategy testerThe backtest of a strategy() script. See Reading the strategy tester.

Closed trades and Stats need a broker that keeps an account (the paper broker does); with any other broker the panel shows Orders, Positions, Automation and the tester. The strip also carries the amber ARMED badge when a strategy can trade, the Kill button, and the 1-click ON badge. Numbers are explained in P&L and the position numbers.