Stacking Sats Logo

Stacking Sats is an open source initiative for building, backtesting, and deploying optimal Bitcoin accumulation strategies for both retail and institutional investors.

Quick Links

AboutDocumentation

Connect

DiscordDiscordXX (Twitter)LinkedInLinkedInGitHubGitHub
© 2024 Stacking Sats. All rights reserved.
PrivacyPrivacy Policy•TermsTerms of Service
Stacking Sats
BetaWe're currently optimizing the experience
Stacking Sats Docs
Stacking Sats Docs
IntroductionQuick Start
OverviewSignal InterpretationAccumulation StrategiesAssumptions and Limitations
OverviewWeight ComputationFeature ConstructionSignal CompositionDynamic MultiplierModel Constants
OverviewPerformance ResultsSPD CalculationModel ScoreValidation Checks
OverviewAgent APIAgent builder guideGlossaryBitcoin
OverviewContributing
Backtest

Backtest

Validation Checks

Lists model validation safeguards used to prevent leakage and calculation errors.

Last reviewed
March 10, 2026

The backtest framework includes integrity checks to reduce leakage risk and arithmetic drift.

Weight Sum Validation

Each window's normalized weights must sum to 1.0 within tolerance.

assert np.isclose(weight_sum, 1.0, atol=1e-5)

Forward-Leakage Test

Future rows are masked in probe tests; weights at probe timestamps must remain unchanged.

for probe in sample_dates:
    masked_df = df.copy()
    masked_df.loc[masked_df.index > probe, :] = np.nan
    assert weights_match(masked_df, full_df, at=probe)

Win Rate Requirement

Operational benchmark requires aggregate win rate >= 50% against uniform DCA.

Prerequisites

  • SPD Calculation
  • Signal Composition

Next Step

Performance Results

Related Pages

  • Model Score
  • Model Constants
  • Documentation Hub

Model Score

Explains how the composite model score is calculated and how to interpret it.

Overview

Start-here guide to the glossary, Agent API contract, and supporting reference material.

On this page

Weight Sum ValidationForward-Leakage TestWin Rate Requirement
Stacking Sats Logo

Stacking Sats is an open source initiative for building, backtesting, and deploying optimal Bitcoin accumulation strategies for both retail and institutional investors.

Quick Links

AboutDocumentation

Connect

DiscordDiscordXX (Twitter)LinkedInLinkedInGitHubGitHub
© 2024 Stacking Sats. All rights reserved.
PrivacyPrivacy Policy•TermsTerms of Service