Simple Rule-Based Trading Strategies on Bitcoin and Ether: A Reproducible Backtest with Out-of-Sample, Walk-Forward and Parameter-Stability Checks, and a Testnet-Only Paper-Trading Bot
Backtests of technical trading rules on cryptocurrencies are easy to produce and easy to overfit. This paper reports a small, fully scripted study of three textbook rule families, exponential moving-average (EMA) crossover, Donchian channel breakout and relative-strength-index (RSI) mean reversion, against buy-and-hold on Binance spot BTC/USDT and ETH/USDT at 1-hour and 4-hour bars. The open-source code fills orders at the next bar's open, charges 0.1% fees and 0.05% slippage per fill, checks stops inside each bar, and sizes each position to risk 1% of equity. Parameters are chosen on 2020–2023 data from small grids and evaluated out of sample (OOS) from 2024, with a rolling walk-forward and a parameter-neighbourhood check. We re-ran the complete pipeline from a fresh download of public data through 29 November 2026: the in-sample selections and metrics matched the published results exactly, and OOS metrics changed only marginally because four more days of data were included. In our run the 4-hour Donchian breakout was the only family positive OOS on both coins with every grid setting profitable OOS (ETH: +37.7%, Sharpe 0.96, maximum drawdown -15.8%, against buy-and-hold -27.5%; BTC: +13.7%, Sharpe 0.50, against buy-and-hold +41.7%, Sharpe 0.49), 1-hour variants mostly lost money after costs, and RSI mean reversion failed OOS. We also describe a paper-trading bot that reuses the signal code but can only send orders to the Binance Spot Testnet. The OOS sample is short and contains roughly 40 trades per coin; nothing here is financial advice.
Authors
- Muhammad Afzal Kalwar (ORCID: https://orcid.org/0009-0002-1636-9120)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24689182
- Primary Topic
- Financial Markets and Investment Strategies
- Type
- preprint