October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
The Finance Base
The Money Desk · Blog
Re:

How to Backtest a Bitcoin Moving-Average Crossover Strategy

A reproducible Bitcoin crossover backtest requires consistent market data, explicit signal and execution rules, realistic costs, a same-period benchmark and an untouched out-of-sample test.
From TheFinanceBase Team4 min to read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To backtest a Bitcoin moving-average crossover strategy, define the exact BTC market, candle data, moving-average rules, trade timing and costs before calculating results. Then test the rule on historical data, compare net performance with buy-and-hold over the same dates, and reserve later data for an out-of-sample check. A backtest is a simulation—not a forecast or proof that a strategy will make money.

Define the strategy before testing it

“Buy when the fast average crosses above the slow average” is not enough to reproduce a test. Write down the market and every rule that determines a signal, trade and valuation. Do not choose parameters because they produced the best result in the same period you plan to report.

  • Market: Name the exchange or data provider, BTC trading pair and quote currency.
  • Data: Specify candle interval, date range, price field (for example, close), timezone and daily candle boundary.
  • Moving averages: Record both window lengths and the averaging method. Define precisely how a crossover is identified.
  • Position rules: Say whether the strategy is long-only, exits to cash, or can short; define what happens when the averages are equal.
  • Capital and valuation: Record starting capital and how any open position is valued at the end of the test.
  • Execution and costs: Set the assumed fill timing, trading fees, spread and slippage before calculating returns.

There is no universally established “best” pair of moving-average windows in the evidence available for this topic. Treat window lengths as choices to test, not as a proven recipe.

Choose and inspect a consistent Bitcoin price series

Use one exchange and one BTC pair throughout a test. A provider’s historical series may not match another provider’s, even when both describe the same market. Before calculating signals, check for missing or duplicated candles, the timestamp timezone, the daily cutoff, supported intervals and whether date parameters include or exclude their endpoints.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
My Trading Journal - Premium Log Book for Stock Market, Forex, Options, Crypto - Guided Trading Journal with 80 Trades, 8 Review Sections - Ideal for Day Traders, Swing Traders, Position Traders
  • My Trading Journal for Stock Market, Forex, and Crypto: Precisely track and analyze every trade. This log book is essential for improving your trading performance and decision-making skills.
  • Comprehensive Day Trading Planner: Record and review 80 guided trades with 8 review sections, perfect for traders aiming to refine their strategies and maximize profits.
  • Customizable Trading Setup: Tailor your trading approach by documenting your setups, analyzing results, and adjusting strategies based on market conditions.
  • For All Types of Traders: Whether you're trading stocks, forex, or crypto, My Trading Journal supports your unique trading style and helps you achieve consistent success.
  • Premium Quality and Durability: Made with high-quality materials, this A5-sized journal is perfect for daily use and designed to withstand the rigors of active trading.

For example, CoinMarketCap’s historical OHLCV V2 documentation covers daily and hourly data, but hourly volume is unavailable before 2020-09-22. Its API reference says time_start is exclusive and time_end is inclusive. Check the CoinMarketCap OHLCV V2 documentation when using that endpoint; do not assume a requested start timestamp is included.

Daily candles can also have different boundaries. CryptoQuant says its daily bars begin at 00:00 UTC, while the official HTX and OKX OHLCV convention uses a 16:00 UTC boundary. That difference can change daily closes and therefore crossover dates. CryptoQuant lists history availability by exchange and pair in its BTC Market Data guide. Record the actual series and boundary used rather than treating “daily BTC” as a single interchangeable dataset.

Rank #2
4X Trading Journal for Day Traders | Trade Log Book for Stocks, Forex, Options, Crypto | 12 Week Plan with 80 Trades | Trading Accessories | Neuroscience Based with Guided Trading Plan | Traders Gift
  • BUILT FOR YOUR MARKET, FUTURES, STOCKS, FOREX, OPTIONS & CRYPTO: 4X is a mindset and process journal, not a strategy tool tied to one instrument. The plan, the trade log, the deep dive and the weekly review work the same whether you trade ES, EURUSD, SPY or BTC. Traders use it across all five markets every day.
  • THE 2026 EDITION, REBUILT FROM TRADER FEEDBACK: Same trusted system, better in every way. An extra daily page for more room to log the session. Weekly reviews now grouped with each week's trades, so no more flipping back and forth. Crisp, darker print that's easy on the eyes after hours on a screen. A Quick-Start QR that scans straight to step-by-step instructions.
  • NOT A NOTEBOOK, A COMPLETE 12-WEEK SYSTEM: Start with a one-time 9-part Trading Plan (your market, setups, risk rules and discipline checklist). Then twelve identical weeks: five Daily Logs, five Deep Dive trade pages, and a two-page Weekly Review. 189 guided pages, roughly 80 trades. Guided prompts walk you through every step. You never stare at a blank page.
  • RATE YOUR EXECUTION, NOT YOUR RESULT: Your platform tracks the P&L. Nothing tracks the why. Log energy, sleep and mindset before the open; grade every trade A to F on whether you followed your plan, not on whether it won; then face the pattern every weekend with START / STOP / IMPROVE / CONTINUE. That review habit is the edge. You're 42% more likely to hit a goal you've written down.
  • BUILT TO LAST, ARRIVES GIFT-READY: Vegan-leather hardcover, 100gsm bleed-resistant paper, two ribbon markers and an elastic closure band. Bound to lay flat so you're not fighting the spine while you write. 189 pages, 5.75" x 8.5", carries in a bag. Ships in a premium gift box: the gift every trader in your life actually wants.

Calculate signals without look-ahead

At each candle, calculate each moving average using only prices available through that candle. If the averages’ relationship at the candle close creates a signal, the simulation should not automatically fill the trade at that same close: the closing price was needed to identify the signal, and a fill at that price may not have been executable after it became known.

A straightforward conservative convention is to execute the signal on the next candle. CoinMarketCap’s tutorial recommends shifting the signal by one period to avoid acting on information from the candle that generated it. If you use another execution convention, explain how an order could validly have been placed and filled under it. CoinMarketCap’s tutorial, published 4 August 2026, puts the purpose plainly: “Before risking capital on a trading strategy, you test it against history.” See its historical-data backtesting tutorial.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
My Trading Journal - Premium Log Book for Stock Market, Forex, Options, Crypto - Guided Trading Journal with 80 Trades, 8 Review Sections - Ideal for Day Traders, Swing Traders, Position Traders (Executive Blue)
  • My Trading Journal for Stock Market, Forex, and Crypto: Precisely track and analyze every trade. This log book is essential for improving your trading performance and decision-making skills.
  • Comprehensive Day Trading Planner: Record and review 80 guided trades with 8 review sections, perfect for traders aiming to refine their strategies and maximize profits.
  • Customizable Trading Setup: Tailor your trading approach by documenting your setups, analyzing results, and adjusting strategies based on market conditions.
  • For All Types of Traders: Whether you're trading stocks, forex, or crypto, My Trading Journal supports your unique trading style and helps you achieve consistent success.
  • Premium Quality and Durability: Made with high-quality materials, this A5-sized journal is perfect for daily use and designed to withstand the rigors of active trading.

Include fees, spread and slippage

Close-price OHLCV does not include the bid/ask spread or establish the price impact of your order. It also does not deduct exchange trading fees. Calculate performance after the venue’s applicable fees on each entry and exit, and state how you estimated spread and slippage. Show how the result changes under higher cost assumptions; a gross-return curve is not net performance.

Keep costs consistent across the strategy and its benchmark. A comparison is misleading if one side includes trading costs and the other does not.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Measure performance against a same-period benchmark

Report enough information to show both what the strategy earned and how it behaved. Compare it with buy-and-hold BTC over the same date range, using the same starting capital and end-of-period valuation assumptions. Break results into chronological regimes or windows as well as reporting the full-period outcome; one aggregate figure can hide when gains or losses occurred.

  • Cumulative return: State the exact test dates and how the portfolio value was calculated.
  • Annualized return: Give the calculation convention and test period; annualization is not meaningful without its time basis.
  • Maximum drawdown: Report the largest peak-to-trough decline in portfolio value.
  • Exposure: Show how much of the test the strategy held a position.
  • Trading activity: Report trade count or turnover so readers can see how often the strategy traded.
  • Net performance: Use the stated fee, spread and slippage assumptions, and distinguish it from gross performance.

Test whether the result generalizes

Use a later, untouched period for out-of-sample evaluation, or apply chronological walk-forward testing: select parameters using only earlier data, then evaluate them on the next period without retuning on that period. Keep a log of every configuration tried.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Repeatedly trying windows and reporting only the winner can make an in-sample result look stronger than it is. Bailey, Borwein, López de Prado and Zhu discuss this problem in “The Probability of Backtest Overfitting.” A holdout period helps only while it remains genuinely unused for parameter selection; checking it repeatedly and adjusting the strategy in response turns it into part of the selection process.

What a backtest can—and cannot—show

A historical simulation depends on the exchange, pair, sample period, candle definition, execution timing, fees, spread, slippage and parameter-selection process. OHLCV candles are not order-book or trade-level execution data, so a simplified simulation may not capture real fills or market impact. Historical performance does not establish future profitability.

No particular crossover configuration is established here as optimal, and no specific strategy run or live-execution test is presented. Treat reported results from any backtest as conditional on its documented assumptions, not as a promise of future returns.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More post from the Money Desk

  1. The Money DeskBlogTheFinanceBase09 OCT 267 minMortgage Escrow FAQs: Taxes, Insurance, Shortages, and Refunds
  2. The Money DeskBlogTheFinanceBase09 OCT 265 minHow Mortgage Escrow Accounts Work and What Homeowners Pay For
  3. The Money DeskBlogTheFinanceBase09 OCT 265 minHow to Read a Stock Chart, Volume and Market-Cap Data
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.