Most retail traders skip backtesting. They see a strategy that looks good, fund an account, and start trading live. This is almost always a mistake.
Backtesting doesn't guarantee future results — but it's the difference between making an informed bet and a blind one. This guide covers how to do it properly: what data to use, which metrics to focus on, and the pitfalls that make backtests misleading.
What Is Backtesting?
Backtesting runs a trading strategy against historical price data to see how it would have performed. It answers: "If I had been running this exact logic for the past 6 months, what would my account look like?"
A well-run backtest tells you:
- Whether the strategy's core logic makes sense on real data
- What the realistic maximum loss period looks like
- How sensitive the strategy is to parameter changes
- Whether the strategy's edge is consistent across different market conditions
The Metrics That Actually Matter
Most people look at total profit first. That's the wrong starting point. Focus on these metrics in this order:
Step-by-Step: How to Backtest Properly
1. Choose Your Timeframe and Asset
Test on the actual asset and timeframe you intend to trade live. A BTC strategy tested on ETH data is not a validated BTC strategy. A 4-hour strategy tested on 1-minute bars tells you nothing about 4-hour performance.
2. Use Sufficient Historical Data
Use at least 12 months of data, ideally 2–3 years. Crypto markets cycle through bull runs, bear markets, and ranging consolidations. A strategy that only worked in a 2021 bull run is not a general strategy — it's a bull market strategy.
Pay attention to whether your backtest period included:
- A major bull run (sustained uptrend)
- A sharp crash (high volatility, trend reversal)
- Ranging consolidation (months of sideways action)
3. Include Realistic Fees and Slippage
This is where most backtests become dangerously optimistic. A strategy that returns 40% before fees might return 15% after. Use realistic assumptions:
- Taker fee: 0.055% per trade on Bybit (0.035% on HyperLiquid)
- Slippage: 0.05–0.1% on liquid pairs; more on smaller altcoins
- Add both to every trade entry and exit
4. Run the Backtest and Record Results
Document the full results — not just the profit, but every metric listed in the section above. If you only have total profit, you don't have enough information to evaluate the strategy.
5. Stress Test the Parameters
Change your strategy parameters slightly (±10–20%) and re-run the backtest. A robust strategy should still be profitable with small parameter variations. If changing the RSI period from 14 to 12 collapses the results, the strategy is overfitted — it found patterns that worked in the past but won't generalize.
6. Paper Trade on Live Prices
After a positive backtest, run the strategy in demo/testnet mode against live prices for at least 2 weeks. This reveals issues that backtesting misses: execution latency, API delays, and real-time data differences. Only after this step should you consider live trading.
5 Common Backtesting Mistakes
Backtesting vs Paper Trading: When to Use Each
Use backtesting when:
- Evaluating a new strategy for the first time
- Comparing multiple strategies quickly
- Testing parameter changes efficiently
Use paper trading (demo mode) when:
- The backtest looks promising and you want live-price validation
- Testing execution quality (fills, latency, API behavior)
- Building confidence before committing real capital
Both are essential. Neither replaces the other. The path to live trading should always be: backtest → paper trade → small live position → scale up.
Backtest Any Strategy Free for 14 Days
Enliko includes a full backtesting module with real historical data from Bybit, HyperLiquid, and Capital.com. Run, compare, and validate strategies before risking any real funds.
Start Free TrialFrequently Asked Questions
How much historical data do I need to backtest?
At minimum 12 months, ideally 2–3 years. You need enough data to include different market conditions: bull, bear, and ranging. Using only 3 months of data from a bull market will make almost any long-biased strategy look great.
What profit factor should I target before going live?
A profit factor above 1.5 is generally considered acceptable. Above 2.0 is good. Above 3.0 should make you suspicious — it may indicate curve fitting. Prioritize consistency over raw numbers.
Should I use 1-minute or daily candles for backtesting?
Use the same timeframe you plan to trade. If your strategy checks for signals every hour, test on 1-hour candles. Testing on higher timeframes than your strategy runs on will miss intracandle volatility and give overly optimistic results.