Skip to content

Enhance Output Structure for Backtesting and Validation #80

@iAmGiG

Description

@iAmGiG

Description

The current YAML output structure is well-organized for detecting and logging market patterns. However, to validate the predictive power of these patterns, the structure needs to be enhanced to include outcome-based metrics. The current format reports that a pattern occurred but does not track what happened next, which is essential for rigorous backtesting.

Acceptance Criteria

The output data structure should be refactored to include the following changes:

  • Add an outcome_metrics Object: For each detection, include a new object that captures the market's subsequent performance.

    • forward_1d_return_pct
    • forward_3d_realized_vol
    • prediction_materialized (boolean)
  • Incorporate "Velocity" Metrics: The quantitative evidence should include day-over-day changes, which are often the primary signal.

    • Add net_gex_change_1d to the quantitative_evidence.
  • Refine Performance Terminology: The top-level metrics block should be updated for clarity.

    • Rename detection_metrics to performance_metrics.
    • Rename success_rate_pct to detection_rate_pct.
    • Add a new predictive_accuracy_pct field derived from the prediction_materialized outcome.
  • Consolidate Redundant Fields: Clean up the GEX metric fields to remove duplication (e.g., use a single field like net_gex_usd instead of three similar ones).

  • Improve Readability (Optional): Group related fields within each detection into logical objects like narrative, quantitative_evidence, and outcome_metrics to improve clarity.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions