Repository navigation
cuwan backtest on public Binance candles - #17
Merged
Merged
Conversation
cuwan backtest NAME replays a bot over Binance klines (spot or USD-M, public, no keys) with paper's fill rules: a buy fills at the candle low, a sell at the high, and the opposite order goes one level away. Within a candle the level nearest the open fills first. The 20x cap, the futures preventive close and the spot guard 5% below the grid apply as in live. The report gives fills, round trips, realised and unrealised profit, fees, max drawdown and when a guard fired, as text or JSON. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sgnd
enabled auto-merge
November 18, 2026 10:48
# Conflicts: # CHANGELOG.md # docs/plan.md # internal/cli/cli.go
Both features brought their own; the backtest one also refuses 100% or more, so report uses it too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cuwan backtest replays a bot over public Binance candles with the paper fill rules and the live guards. Binance bots only.
Lint and tests pass locally.
🤖 Generated with Claude Code