Skip to main content

backtestComparison

Compare 2 to 4 backtests (#4784, the Compare page): the runs, what they were not tested on in common, and the effective settings that differ.

Fewer than 2 or more than 4 distinct ids is refused (INVALID_ARGUMENT). A repeated id counts once. An id the caller cannot read, an unknown id and a run that is not completed go to skipped; that is not an error. Each id is checked with the gate of Backtest.result (workspace__strategy__read on the run), so settingsDiff never shows a value the caller could not read on the run itself.

backtestComparison(
ids: [ID!]!
): BacktestComparison!

Arguments​

backtestComparison.ids ● [ID!]! non-null scalar​

Type​

BacktestComparison object​

2 to 4 completed backtests side by side (#4784). runs is the asked-for order minus skipped; the first run is the baseline.