Skip to content

ApexAlgo v2.2.0 — reproducible backtests - #5

Merged
Stenvro merged 4 commits into
masterfrom
dev
Sep 19, 2026
Merged

Stenvro merged 4 commits into
masterfrom
dev

Conversation

@Stenvro

@Stenvro Stenvro commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Pinned backtest window: Pin range / Rerun latest on the bot card; a pinned bot replays exactly the same candles on every start (backtest_from/to, not part of the strategy fingerprint, stripped from export).
Data hash: sha256 of the raw candles per run; a rerun on the same slice with different data shows a console WARN and a "Data changed" chip.
Two-tier variant counter: "Backtest #3 · 12 total" — distinct configs on this slice vs. lifetime; bot_config_runs rebuilt into a run log (idempotent migration).
Verify against exchange: Verify data re-fetches the range and diffs it against the stored candles; keep the local snapshot or accept the exchange data (POST /api/bots/{id}/verify-data, POST /api/data/verify; candles.fetched_at).
Examples button in the algorithms header; Avg Trade tile explains it is the expectancy.
9 new tests (tests/test_reproducibility.py); golden order streams unchanged.

@Stenvro
Stenvro merged commit 0f3c77d into master Sep 19, 2026
4 checks passed
@Stenvro
Stenvro deleted the dev branch September 19, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant