Live deployment figures
How a live deployment's figures differ from a backtest report's: the P&L card, trades, the baseline, equity and the account page.
Solo in inglese per ora.Apri la pagina in inglese
A live deployment's figures use the same definitions as a backtest report, and the same code builds both. The differences are listed on this page.
Video tutorial · G3 · on YouTubeWatch a running strategyThe P&L card
- Realised is the sum of the deployment's closed trades' profit, net of their commission and swap.
- Unrealised is the sum of the floating P&L of the deployment's open positions.
- Floating P&L is (exit price − average open price) × volume × your broker's contract size × exchange rate, reversed for a sell, in the account currency. The exit price is the bid for a buy and the ask for a sell, at the latest quote.
- A position whose instrument has no quote yet, or whose quote currency cannot be converted, counts as 0.
- The card shows "—" when nothing is open.
- Net P&L is Realised + Unrealised.
- The swap and commission under it are the closed trades' totals, already inside Realised. The open positions' costs are not shown separately: live, they are inside Unrealised (your broker's figure is after them); from the snapshot, they are not counted.
- While the page is open, Unrealised is your broker's own floating P&L for the deployment's open positions, after their swap and commission, read live (at most every 500 ms while prices move). When the live connection is not available, it comes from the account snapshot instead: computed as above, written every 5 seconds by default, and re-read by the page every 5 seconds.
Trades and their profit
A row is one close fill:
- On a hedging account, each fill that closes part or all of a position is a row. Partials share the ticket, and a close filled in several pieces gives several rows.
- On a netting account, each closed fill is a row.
Profit is the broker's gross profit for that close, plus the closing deal's commission and any P&L conversion fee, plus swap, all as the broker states them. The gross profit is cTrader's figure, already in the account currency and not recomputed. Only when the broker gives no gross profit is it computed from the prices.
The live trades list shows each row as a backtest's trades list does: entry, exit, volume, time held, MFE, MAE, "Closed by", commission and swap (the trades list). MFE and MAE carry the limits of how the live report differs (item 5).
The baseline (initial deposit)
- The baseline is the account's balance when the deployment first started. It is the whole account's balance, not a share of it, and it is not reset when the deployment is restarted or resumed.
- The baseline is the live report's Initial deposit, and the base of every percentage relative to the deposit: the Balance DD maximal and relative percentages, AHPR and GHPR. Because it is the whole account's balance, on an account that runs several deployments these percentages are a share of the whole account, not of what the deployment trades with. A deployment without a baseline shows those figures as 0.
- The baseline is also the base of the deployment's Overall strategy drawdown limit, before and after a restart (what a strategy limit measures).
Equity samples and the chart
- The deployment's own equity is the baseline + its realised profit + its floating P&L. It is not the shared account's equity, so other deployments and manual trades on the same account do not move it.
- Equity is sampled on the first tick of each UTC minute in which the deployment processes a tick, after that tick is handled, and stamped at the start of the minute. A minute is skipped when an open position has no usable price. Sampling goes on while the deployment is paused (its open trades are still managed); nothing is sampled while the market is silent.
- The "Live P&L" chart draws equity − baseline, the P&L since the deployment started. It covers the whole history, reduced to at most 2,000 points with the curve's shape kept. A value holds until the next sample and is never interpolated.
How the live report differs from a backtest report
The Performance tab shows the same full report, built by the same code, with these differences.
- There are no Bars or Ticks rows: they count the data a backtest stepped through. Symbols counts the instruments the deployment has closed trades on, as a backtest's counts the instruments it traded.
- There are no balance operations: the broker's swap is part of each trade's profit.
- Max drawdown, its percentage, the Sharpe ratio, the recovery factor and the equity drawdown rows come from the once-a-minute samples. There is no worst case inside the minute, so on a fast strategy the live max drawdown is a lower bound of what tick-by-tick measurement would give. Every equity drawdown row uses every sample; the running peak starts at the first sample.
- Until the deployment has equity samples, those figures read "—" on the account page and 0 in the full report, except the Sharpe ratio, which reads "—" there too (as it does with fewer than three days of samples).
- MFE and MAE, in the trades list and the charts, are measured on hedging accounts only and read 0 on netting accounts. They are measured every tick and kept in memory, so if the process restarts while a position is open, that position's MFE and MAE start again from 0.
- The time charts are binned in the deployed strategy's time zone, as a backtest's; on a netting account each closed fill counts as an entry of its own, because the live netting rows do not record which fill they close.
- Trade profit, fills, slippage and costs are the broker's.
With identical fills and prices that change once a minute, the live and backtest reports give identical trade rows and identical equity-based statistics; this is pinned by test.
On the account page
- Each deployment shows its trades, its win rate (whole percent) and its max drawdown (% of peak, one decimal). Trades shows "—" until the figures have been read; win rate shows "—" while there are no trades; max drawdown shows "—" until the deployment has equity samples.
How a portfolio combines its slots' backtests and live results (the combined curve, the drawdowns that happen together, the stacked margin and the correlation map) is on The report's numbers → portfolios.
Domande?support@algotradinghub.io