How to Backtest a Crypto Strategy: Step-by-Step Guide

Most crypto traders have a strategy. Very few have ever actually tested it. This guide walks you through exactly how to backtest a crypto trading strategy, step by step, using CoinQuant's no-code platform. No Python required. No data subscriptions. Just your idea, tested against real historical data.
We will use a concrete example throughout: a long-only Bitcoin strategy based on RSI and the 200-day moving average. Follow along with your own strategy or use this one as a starting point.
The example strategy: Long-only BTCUSDT on the daily timeframe. Enter when RSI(14) crosses above 30 from below. Exit when RSI crosses above 70. Only trade when price is above the 200-day SMA.
Step 1: Write Your Trading Rules in Plain English
Before you open any tool, write your strategy down in plain language. This forces clarity. Vague rules produce vague results.
A good strategy definition answers three questions:
Entry condition: exactly what has to happen for you to open a position?
Exit condition: exactly what triggers you to close the position?
Filter condition: are there any market conditions that must be true before you trade at all?
Our example strategy answers all three:
Entry: RSI(14) crosses above 30 from below
Exit: RSI crosses above 70
Filter: price must be above the 200-day SMA
For more advanced strategies, you can add a fourth dimension: a higher timeframe condition. For example: only enter on the 4-hour chart if the daily 50-period EMA is above the daily 200-period EMA. CoinQuant supports this multi-timeframe logic in plain English.
.png)
Common mistake at this step: being too vague. 'Buy when it looks like it might go up' is not a strategy. 'Enter when RSI(14) crosses above 30 from below' is.
Step 2: Choose Your Asset, Timeframe, and Date Range
Asset
CoinQuant supports crypto, stocks, forex, and commodities. For crypto, data comes from Kaiko, providing tick-level data from major exchanges including Binance, Coinbase, and Kraken, going back to 2017 for BTC. For stocks, forex, and commodities, CoinQuant uses FMP (Financial Modeling Prep).
Start with a liquid, well-traded asset. BTCUSDT is ideal for a first backtest because it has deep historical data and behaves consistently relative to altcoins.
Timeframe
Our example uses the daily timeframe. Daily charts reduce noise and are appropriate for swing trading strategies based on RSI. If your strategy involves faster signals (hourly or 15-minute), choose accordingly, but be aware that shorter timeframes generate more trades and amplify the impact of fees and slippage.
Date Range
Select a meaningful period. A minimum of two years of data is recommended to capture different market regimes: bull runs, bear markets, and sideways consolidation. For Bitcoin, testing from 2020 to 2024 covers the 2020 rally, the 2021 peak, the 2022 bear market, and the 2023 to 2024 recovery. CoinQuant's Kaiko data for BTC goes back to 2017, giving you 9 years of tick-level history for the most thorough tests.
.png)
Common mistake at this step: using too short a date range. A 3-month backtest will look great in a bull market and terrible in a bear market. Test across full cycles.
Step 3: Input Your Strategy into CoinQuant
Log into CoinQuant and navigate to the Strategy Builder. Type your strategy rules exactly as you wrote them in Step 1. For our example strategy:
Long-only BTCUSDT daily. Enter when RSI(14) crosses above 30 from below. Exit when RSI crosses above 70. Only trade when price is above the 200-day SMA.
CoinQuant's AI reads your plain-English description and converts it into a structured trading schema. You do not need to know what a schema is or how to write one. The platform handles that translation.
Common mistake at this step: mixing multiple strategies into one input. Keep each backtest focused on one idea. If you want to test variations, create separate backtest runs for each.
Step 4: Review the Generated Schema
After you submit your strategy description, CoinQuant generates a structured schema that represents your rules in a format the backtesting engine understands. This is your opportunity to verify that the platform interpreted your rules correctly.
Check the schema for:
The correct indicator settings (RSI period 14, SMA period 200)
The correct crossover logic (RSI crossing above 30, not below)
The correct exit condition (RSI above 70)
The correct filter (price above 200-day SMA)
For multi-timeframe strategies: both timeframe layers showing correctly
.png)
Common mistake at this step: skipping the schema review and going straight to running the backtest. If the schema is wrong, your results mean nothing.
Step 5: Run the Backtest and Read the Results
Once you are satisfied with the schema, click Run Backtest. CoinQuant runs your strategy against the full historical dataset using real fees, slippage, and spread simulation in every calculation. You see what you would actually earn, not idealized results.
Here is what to look at:
Total Return vs. Buy and Hold
Does your strategy outperform simply holding Bitcoin over the same period? If not, why are you adding complexity?
Number of Trades
How many trades did the strategy execute? A strategy that only triggered 3 trades in 4 years does not have enough data to be statistically meaningful. More trades equal more confidence in the results.
Win Rate and Profit Factor
A 50% win rate with a profit factor of 2.0 is highly profitable. A 70% win rate with a profit factor of 1.1 will slowly produce unreliable results. Look at both numbers together.
Expectancy
Expectancy is the average profit or loss per trade. Positive expectancy is the essential condition for a viable trading system. A strategy can have a low win rate and still show positive expectancy if the average winner is large enough relative to the average loser.
Max Drawdown
What is the worst losing streak the strategy experienced? If the max drawdown is 60%, ask yourself honestly: would you have kept following the rules through a 60% portfolio decline? If the answer is no, the strategy is not right for you regardless of the total return.
Sharpe Ratio
A Sharpe ratio above 1.0 means the strategy is generating returns that justify the risk taken. Below 1.0 means you are taking on too much volatility for the returns you are earning.
.png)
Common mistake at this step: focusing only on total return. A 200% return with a 90% max drawdown and a 0.3 Sharpe ratio is not a good strategy. Judge the full picture.
Step 6: Iterate and Validate Rigorously
A first backtest is rarely your final strategy. Use the results to ask better questions:
What happens if I change the RSI exit from 70 to 65? Does it capture gains earlier before reversals?
What happens if I remove the 200-day SMA filter? Does win rate improve or decline?
What happens on Ethereum or on gold with the same rules? Does the strategy generalise across assets?
Each iteration teaches you something about the strategy's edge. Keep a log of your test versions. CoinQuant stores your backtest history automatically.
For rigorous validation beyond manual iteration, use CoinQuant's built-in robustness tools:
Strategy optimization: systematically test parameter combinations to find the strongest settings, without cherry-picking
Walk-forward testing: validate performance across multiple consecutive out-of-sample windows so you know the edge is real, not period-specific
Monte Carlo simulations: run thousands of randomized scenarios to stress-test whether results hold under different market conditions
Common mistake at this step: overfitting. If you run 50 parameter combinations and pick the one that returned 500%, you have probably found a strategy that only works on your test data. Use walk-forward testing to confirm the edge holds on data the strategy has never seen.
A Note on Realistic Expectations
Backtesting is a starting point, not a guarantee. Markets change. A strategy that worked from 2020 to 2024 may behave differently from 2025 onward because market structure, participant behaviour, and macro conditions evolve.
Use backtesting to build conviction that your strategy has a genuine edge. Then paper trade it live for 30 to 60 days before committing real capital. Treat the backtest as evidence, not proof.
The goal of backtesting is not to find a perfect strategy. It is to understand your strategy well enough that you can trade it with discipline when conditions become difficult.
Summary: Your Backtesting Checklist
Write your entry, exit, and filter rules in plain English before opening any tool
Choose your asset (crypto via Kaiko, or stocks/forex/commodities via FMP), timeframe, and a date range spanning at least two full market cycles
Enter your strategy into CoinQuant's natural language builder
Review the generated schema to confirm your rules were interpreted correctly
Run the backtest. Results include real fees, slippage, and spread simulation.
Evaluate total return, win rate, profit factor, expectancy, max drawdown, and Sharpe ratio together
Use walk-forward testing and Monte Carlo simulations to validate on out-of-sample data before going live
Start backtesting on CoinQuant. Free. Your first backtest takes less than five minutes.
Disclaimer:
This content is for educational and informational purposes only and does not constitute financial, investment, or trading advice. All strategies and examples are for illustrative purposes and do not guarantee results. Always conduct your own research before making financial decisions.
Key Takeaway