Skip to main content

StrategyVersionComparison

What changed between two versions of one strategy, and whether it helped.

type StrategyVersionComparison {
strategyName: String!
base: StrategyVersionSide!
target: StrategyVersionSide!
configChanges: [StrategyConfigChange!]!
codeChanged: Boolean!
metrics: [StrategyVersionMetricDelta!]!
comparable: Boolean!
differences: [BacktestDigestDifference!]!
}

Fields​

StrategyVersionComparison.strategyName ● String! non-null scalar​

StrategyVersionComparison.base ● StrategyVersionSide! non-null object​

StrategyVersionComparison.target ● StrategyVersionSide! non-null object​

StrategyVersionComparison.configChanges ● [StrategyConfigChange!]! non-null object​

What the configuration does differently, sorted by (section, path).

StrategyVersionComparison.codeChanged ● Boolean! non-null scalar​

Whether the generated or authored Python differs. The text is deliberately not returned — a line diff of a strategy file belongs in the editor.

StrategyVersionComparison.metrics ● [StrategyVersionMetricDelta!]! non-null object​

Headline deltas between the two representative runs. Empty when either side has no completed run.

StrategyVersionComparison.comparable ● Boolean! non-null scalar​

Whether the two representative runs were produced under the same conditions. False — with differences saying why — means the deltas answer two different questions and must not be read as an improvement.

StrategyVersionComparison.differences ● [BacktestDigestDifference!]! non-null enum​

Why the two runs are not comparable; empty when they are. Uses the digest's own rules.

Returned By​

compareStrategyVersions query