Replay
What a replay records and what it costs, the high-resolution window, size and retention, how exact its numbers are, and the player.
Solo in inglese per ora.Apri la pagina in inglese
Replay plays a finished backtest back event by event — every order, fill, stop move and condition check — with the account as it stood at each moment and the chart drawn only up to that moment.
Video tutorial · D6 · on YouTubeWatch a backtest back: ReplayWhat can be replayed
A backtest run with Record a replay. Live deployments have no replay, and neither do sweep combinations (open a combination as a full backtest, then re-run that backtest with recording on).
Only a completed run. While the run executes the page shows its progress and opens the player when it finishes; a failed or cancelled run has no replay.
Turning it on, and what it costs
Record a replay in the Run backtest dialog, or in a sweep result's run panel before Run full backtest — off by default, on every plan.
A run recorded without one can be re-run with recording from its replay page: the same frozen strategy, settings and virtual symbols, so the same trades.
Recording makes the run take longer, and the extra time counts against your daily backtest time like the rest of the run — there is no separate charge. The slowdown is largest for strategies that act on every tick.
An AI app you connect can ask for a recording when it runs a backtest for you, and can read a recorded run to explain it.
What a replay records
Orders: market fills and rejections; pending orders placed, modified (with the previous terms), filled, removed (with the outcome) and rejected.
Every closed trade: ticket, volume, open and close price and time, profit, commission, swap, exit reason, the action that opened it, and the balance after.
Every stop-loss and take-profit move, each with its source (trailing stop, netting levels or a modify action) — every trailing step, none merged.
Account events: swap charges, balance deals, stop-outs, drawdown-limit halts, trading paused and resumed; on a netting account, every change of the net position (volume, average price, stop loss, take profit, accrued swap).
Equity points: balance, equity, used margin, deposit load and drawdown — at the first step, at every open and close, and, while a position is open, at each bar (each minute in tick mode) where equity has moved at least 0.01% of the initial balance since the last point; none while flat. The conversion rates in force are recorded with them.
Condition checks: each action's outcome and each leaf as true, false or not evaluated (the engine short-circuited it — never computed afterwards), recorded whenever one changes and in full whenever the action fires.
Values: every indicator line once per closed bar (the engine's own values), on the bar it was computed on, except colour lines (
color,upperColor,lowerColor), which are not recorded; every read of a provider with the bar it was computed from; record-set changes.Fixed with the recording, so later edits cannot restate the run: each instrument's contract size, digits and quote currency, the cost model of each virtual symbol, the strategy's time zone and the FX rates the run used.
Candles and ticks are drawn from the same market data the run read.
Detail on tick runs: the high-resolution window
Bar-by-bar run: everything at every M1 bar — full detail.
Tick-by-tick run: orders, fills, stop moves, equity points and condition changes are always recorded at full step. Provider values depend on the high-resolution window:
Window Provider values recorded None at most one per read per minute for the whole run, so a value can be up to a minute old Set every change inside the window, at tick resolution; outside it at most one per read per minute The dialog fills the window in for you: as soon as you tick Record a replay on a tick run, the window is set to the first 92 days of the run (the whole run if shorter). Clear both ends to record with no window, once a minute throughout. A replay recorded from a sweep result's Run full backtest has no window.
Rules: tick runs only; both ends set; inside the backtest period; whole UTC days; at most 92 days.
Cost of a window: only the time it adds to the run, which counts like the rest of the run (plans → backtests); there is no separate charge. Measured: a three-month window added under two seconds to its run.
The player marks the window on the scrub bar, and the transport says tick detail or minute detail for the moment you are on.
Size and truncation
- A replay is capped at 500,000,000 bytes stored. At the cap recording stops and the replay is marked Truncated with the span it covers; the backtest itself runs to the end and its results are complete. The player shades the uncovered stretch.
- If the recorder cannot keep up or a part of the recording cannot be stored, the replay is likewise kept up to that point; if not even the first part could be stored, there is no replay. The backtest is never affected.
Can recording change my results?
- No. A standing test runs the reference scenarios with recording on and requires results byte-identical to the unrecorded ones; every recording failure drops or truncates the replay, never the run.
How exact the replay's numbers are
Trade and order prices, volumes and profits are recorded exactly. Account figures are recorded as displayed: money to the cent (balance, equity, used margin), percentages to 4 decimals (drawdown, deposit load), FX rates to 8 decimals; indicator and provider values to 12 significant digits. Tests hold the replay's closing balance to the backtest's exactly and its account figures to within half a cent.
The replay shows equity and drawdown at the recorded equity points; between them the floating P&L is computed from the chart's price. The report's Max DD is measured on every bar or tick and can be deeper than any recorded point. The report is the record; the replay is for seeing how the run got there.
Keeping and deleting
A replay expires 30 days after the run started and then shows as Expired; the run's own results, trades and report are kept. To get a replay back, re-run with recording on — same frozen strategy, same trades. Deleting a backtest deletes its replay at once.
States: Available; Truncated (playable, ends early); Unavailable (asked for, but none exists — a failed or cancelled run, or a lost recording); Expired; Unknown (storage could not be asked — refresh, don't re-run). A run that did not ask to record shows no replay state.
The player
Moving through the run
Keys: Space play / pause; J play backward, K pause, L play forward; → / ← one recorded event forward / back (crossing into the next part of the recording when needed); ] / [ next / previous fill; Home / End; F follow the newest open position.
Next fill lands on the fill, not on the signal: in bar mode the decision is at a bar's close and the fill at the next bar's open — two moments.
Wherever you land — seeking, stepping back, playing backward — the player shows the exact recorded state at that moment: open positions, resting orders, condition states, the last value of every read. It is rebuilt from the nearest earlier checkpoint, never by undoing events.
Speed: 1× is one simulated minute per real second (one M1 bar a second); the slowest is 0.25×. The fastest depends on the chart's timeframe so that bars are still drawn one at a time: M1 80×, M5 400×, M15 1,000×, M30 2,000×, H1 4,000×, H4 15,000×, D1 100,000×, W1 800,000×, MN1 3,000,000×; switching to a finer chart lowers the speed to fit. The slider snaps to 1, 1.5, 2, 3, 4, 5, 6, and 8 in each decade. At high speed playback can be held back by loading ("buffering"), and the transport says so rather than quoting a speed it is not achieving.
Clock: times are in the strategy's time zone as recorded with the run, daylight saving included; recordings that carry no zone show UTC.
No look-ahead on screen
- Nothing on screen is later than the playhead: the log ends at the playhead, the forming candle shows only the high, low, close and volume printed so far, the data window never answers past the playhead, and lines and values stop at the playhead, except an indicator line drawn forward, whose values were computed on bars already open. One deliberate exception is the scrub bar, which shows the whole run's win/loss map and a faint equity outline so you can aim before landing.
- The other exception: an indicator's value for a bar is that bar's closing value, and it appears when the bar opens. The engine records an indicator once the bar it is computed on has closed, and the chart shows it from that bar's open, as it shows the candle. So a curve shows a bar's final value while the bar is still forming on the chart, and a curve from a coarser timeframe than the chart (a daily line over hourly candles) shows the day's final value from midnight. A reading of a condition evaluated on a candle close is shown the same way.
What each panel shows
Account: balance, equity, used margin and open-position count at the playhead; floating P&L from the chart's price for the charted instrument (a dash until the chart supplies a price); open positions and resting orders, newest first — "follow" keeps one position's stop and target drawn; and each instrument's cost model as recorded.
Data (the MetaTrader "Data Window"): the bar at the playhead or under the pointer — open, high, low, close at the instrument's digits, the bar's average spread in points, tick volume — then each indicator line's value as drawn on that bar, a dash where the line draws none (a line drawn back, such as the Chikou span, on its newest bars) and each read's latest value. The bar in progress is shown as it stood, never its final values.
Conditions: one action at a time, its condition tree as the run held it (ALL / ANY / NONE), each leaf true, false or not evaluated, and the two numbers each leaf compared — so a comparison of a moving average with its own previous bar shows two different numbers.
Log: the run's events up to the playhead, newest first, filtered as orders, levels (stop and target moves with their source, pending reprices), rejections, pauses (stop-out, halt, drawdown pause and resume), swaps (swap charges, balance deals) or all; each line shows the balance after it and a "Go to this moment". It holds up to 50,000 lines and can load earlier ones up to 75,000.
Values: draws any recorded read as a line or steps, on the price pane or its own pane — plus ready-made drawings the recording detects (price- and session-range boxes, the bands of Bollinger Bands, Envelopes and VWAP, Ichimoku's cloud, record-set bands and levels) and zones between two values gated by a true/false read. Your choices are remembered per strategy in this browser; date-time values are listed but cannot be drawn.
On the chart
Indicator lines are recorded, never recomputed — exactly the values the engine used. Each line is drawn where a rule reads it: a line with a Shift field, the Alligator's lines, Ichimoku's cloud and the Gator's histograms are drawn forward, Ichimoku's Chikou span and the fractals back, each counted in the line's own bars (lines drawn forward or back). A value is never shown before the bar it was computed on opens, so a line drawn back appears where it belongs only once its value exists. A line drawn forward runs into the empty space right of the newest candle, at most 30 of its own bars ahead of the bar the playhead is in: a line drawn further forward appears once the playhead is within 30 of its bars of where it is drawn.
A line drawn forward needs the values of the bars it was computed on. The player keeps indicator values only for the parts of the recording near the playhead, six either side of the one it is in; a part is a UTC day in a tick-by-tick run and a month in a bar-by-bar run, or less when a busy run fills it sooner. So where a line is drawn forward by more bars than that span holds, as a daily Ichimoku's cloud (26 daily bars back) in a tick-by-tick replay or a monthly one in a bar-by-bar replay, it is missing at the candles and shows only further ahead, from the values the player does hold.
How each line is drawn. Indicators on the price's scale (the moving averages, Bollinger Bands, Envelopes, Ichimoku, the Alligator, Parabolic SAR, Fractals, VWAP …) are drawn over the candles, the others in a pane of their own; at most 4 oscillator panes open at first, the rest from the legend. Lines are joined lines; MACD's main line, OsMA and Bears and Bulls Power are histograms; the Awesome and Accelerator Oscillators and Volumes are histograms coloured green when the value rose and red when it fell, the Gator Oscillator by the size of each bar, the Market Facilitation Index in one colour; Parabolic SAR and Fractals are marks on the bars that hold a value. A colour line is never drawn: the chart colours a histogram from its recorded values by the indicator's own rule, so on a change smaller than the recording's rounding a bar's colour can differ from the colour line a strategy read. A joined line carries its last value to the playhead; a histogram, marks and a line drawn back do not.
Bands. Bollinger Bands, Envelopes, VWAP's bands and Ichimoku's cloud (between its two Senkou spans) are offered in the Values panel as a filled band.
Readings of a line drawn forward or back are marked on the drawn line, and appear at the later of the bar the value was computed on and the bar it is drawn on.
A line from a coarser timeframe than the chart steps rather than slopes. Constants, expressions, range providers and record sets are drawn through the Values panel.
A replay that carries no drawing information for its indicators draws every indicator as a line on the bar it was computed on.
The ask: with virtual symbols the chart shows the ask the run traded — session spread, otherwise the override, otherwise the recorded spread, plus the markup — as a level at the current price, not as a history line. Without virtual symbols it shows the recorded ask.
Several instruments: one chart per instrument of the run (a switch for up to four, a search beyond), traded ones first; markers and lines land on their own instrument; the log, account and conditions cover the whole run.
Hedged and netting: a hedged run is narrated per ticket; a netting run also records the net position after every change, so the player never re-derives averaging.
Your connected AI app and recorded runs
- With a recording your connected AI app can answer questions about a run: how often each action was checked and fired, how often each condition was true, false or not evaluated, the range of each value, order and stop-move counts. These come from a summary written with the replay.
What a replay cannot tell you
Why an order was rejected — only that it was, its size and the action that asked.
Which action closed a trade when several closing actions fired at the same moment — the recording names the action that opened it.
Floating P&L between equity points is computed from the chart price, not recorded.
A recording made by an older version of the product plays with the newer panels empty and says so.
Not yet documented
- How much longer recording makes your run. It depends on the strategy; no figure is published.
- Why an order was rejected and which of several simultaneous closing actions closed a trade — not recorded today.
Domande?support@algotradinghub.io