Quantitative Finance / Independent exploration
Satoshi_Flow
A Bitcoin bar-by-bar backtester with next-open signal execution, fees, slippage, and gap-aware stops.
Problem
A signal generated at a bar's close should not receive that bar's opening price. Satoshi_Flow makes the execution timeline explicit.
Architecture
Indicators and signals feed an event-driven backtester. Portfolio accounting tracks cash and holdings; a risk manager sizes positions and calculates stop levels.
Implementation
The loop executes pending signals at the following open, applies directional slippage and fees, and checks the low against a previously established stop. Gap-down execution uses the lower of open and stop before slippage. Trailing stops update after that check.
Results
VERIFIED by source inspection: the described ordering and cost hooks are implemented. The repository includes validation and robustness artifacts, but their returns have not been independently reproduced here.
Limitations
OHLC bars cannot identify every intrabar path or exchange fill. Liquidity, market impact, data selection, and parameter selection remain important assumptions. This is historical simulation, not evidence of paper or live capital deployment.
Reproducibility
Reviewed at commit 0fe06286b3b8 on 2026-11-09. Source inspection establishes implementation structure; repository-authored results are not independent measurements. The upstream application and benchmark suite were not rerun during this review.
Next investigation
Resolve the limitations above, preserve the reviewed commit and exact experiment configuration, and reproduce correctness checks before promoting performance or deployment claims.