With open-source software, users can inspect the underlying code of the engine to understand how it operates. In quantitative finance, however, this is only part of the equation. Even if the trading engine is open source, the strategies running on it may still be difficult to audit or reproduce consistently. And while making a strategy's source code available reveals its intended logic, it does not guarantee that the same logic will produce consistent results across backtesting, forward testing and live execution.
Anyone who has ported an algorithm from backtest to forward test to live market will see something along these lines: a satisfactory backtest, a forward test that resembles the first, and finally a real-market performance which bears some (but never exact) resemblance to either of the former. Usually there is no egregious mistake to identify. It's just that the algorithm has been transposed through 3 distinct systems, each applying subtly varying interpretations of data, timing and execution that nobody wrote down.
Where the differences come from
Typically this will arise because the algorithm has to be re-coded to suit each platform, frequently in different programming languages by multiple developers. At each stage a series of seemingly innocuous judgments are introduced as to e.g. the point at which a trade triggers (end vs start of subsequent candle), treatment of partial fills, whether the fee comes out of the quote or the base currency, etc. While individually trivial, the cumulative effect is that you may well not be deploying the algorithm you think you are.
Research into reproducibility in AI-based trading systems has highlighted similar challenges, including differences in data provenance, execution timing, transaction costs and slippage. These factors can make it difficult to independently reproduce reported trading results.
Perhaps more significantly, the precise timing with which trades are executed will vary. A broad comparison carried out this year covered simple trading rules over 154 instruments and 10 exchanges, cross-validating the findings by implementing each combination of strategy-instrument-exchange twice. That gave 558 runs and 270 matching pairs. Taken as a whole, the 2 comparisons returned congruent conclusions on whether the tested strategy beat buy-and-hold, agreeing in 90% of instances. On a per-instance basis, however, the median gap between the 2 excess-return series was 8.2 percentage points, with more than 47 points seen in ~10% of instances. Mostly attributable to a one-bar difference in when a fill was recorded, compounded over a 3yr period. Importantly, both versions were available for independent review, but inspection didn't reconcile the 2 time-series, it only made it possible to find out why they diverged.
The quality and extent of market data itself can also introduce large variations. Comparing strategies implemented identically across the different exchanges, the same rule beat the market on one exchange and lost on another in nearly a third of cases. If restricted to the common data coverage, this reduced to <7%. Hence the variation came from the different history windows of each exchange, not from the exchanges themselves.
One document, one engine
The conclusion: reproducibility must be built in and not assumed. One answer is to maintain the strategy as a single document that states the logic, inputs and execution rules, then execute it on a common engine across the 3 stages (backtesting on history, paper trading on live data and trading real money). From there, the same document is applied with the same rules and nothing is rewritten, eliminating the 'translation creep' that can occur during the subsequent steps.
As AI agents increasingly participate in strategy development and financial decision-making, reproducibility becomes even more important. Institutions need to know not only what an agent decided, but also whether the resulting strategy can be executed consistently, audited and reproduced.
Live market trades will also vary from their backtested or paper-pilot predecessors due to factors history doesn't have, such as slippage and latency. To this end, 1 strategy was recently deployed identically in backtest, paper and live mode on the same exchange over a 3hr period. Although the signals fired on the same minutes of the day in all 3 modes and live trades matched the exchange's own history line by line, the live account lost substantially more than the backtest model had forecast. The explanation lay in the fact that the backtest wasn't modelling slippage, a known, named assumption rather than an artefact of rewriting.
What open source should promise
Publishing the source code is the starting point, but not the end goal. An open development project should allow an outsider to re-run a published result with the same data and arrive at the same conclusion, or one whose differences are explained. That demands versioned data, executable strategy definitions that can be re-run as-is, a log detailing which engine version produced which result, and a candid explanation of which design elements are not modelled. Equally important, it requires determining whether a figure is the outcome of one calculation (uncertain by several points in the study above) or an aggregate of hundreds that remained invariable.
As AI moves closer to financial execution, transparency alone will not be enough. Financial institutions need systems whose decisions can be inspected, whose strategies can be reproduced, and whose execution can be verified. That is what makes automation auditable - and ultimately usable in regulated finance.