signal_compareCompare multiple conditions on the same data by statistical significance, Sharpe, and overlap.
Area
Discovery & Research
Group
Signal testing
Access
Write
Risk
May change server state
▸Details
Full description
Details
Compare multiple conditions on the same data.
For a single strategy's entries, use run_strategy with mode="event_study".
Runs each condition independently and compares their statistical significance, Sharpe ratio, and pairwise overlap.
Significance: each condition's horizon significant uses the
circular-shift null (adjusted_shift_p_value), which market drift
cannot fake. p_value / adjusted_p_value test against a zero mean
and are descriptive only. Multiplicity (family_q_value): the
response attaches a per-condition family_q_value and a top-level
multiplicity block -- Benjamini-Hochberg over the shift p-values of
every (condition x symbol x horizon) test in scope: every completed
event study in the project when project_id is set
(family_scope="project", with family_size and
family_complete), or just this call's own conditions otherwise
(family_scope="batch"). Use family_q_value to judge one
condition against everything else you have searched.
Capabilities
Bounded options and operating modes surfaced above the full JSON schema.
Resolution options
resolution
1m5m15m30m1h4h1dRequired Inputs
conditionsarray<object>The conditions to compare, each a builder condition definition.end_datestringLast day of the comparison window (YYYY-MM-DD).start_datestringFirst day of the comparison window (YYYY-MM-DD).symbolstringAsset symbol the conditions are measured on.Optional Inputs
filter_conditionanyOf (2 variants)Optional condition every compared condition must also satisfy.horizonintegerForward horizon in bars used to measure each fire.hypothesisstringOptional hypothesis text saved with the results when project_id is set.labelsanyOf (2 variants)Optional names for the conditions, in the same order.project_idanyOf (2 variants)Optional project to save each result in; enables project-wide multiplicity.