← Back to home

How Much Backtesting Data Do You Actually Need Before Going Live

You've built a strategy. Your backtest shows 67% win rate, +240% annual returns, Sharpe ratio of 1.8. Your indicator combinations feel smart. You're ready to throw real capital at it.

Stop. This is how real traders lose money.

The gap between a backtest that looks good and a strategy that actually makes money is measured in data. Not theoretical perfection—raw sample size, data quality, and honest confrontation with what your exchange will actually let you test. This guide cuts through the noise: exactly what makes a backtest reliable enough to risk capital, what constraints Hyperliquid and similar exchanges impose, and a checklist you can use before you go live.

Why 30 Trades Is Not Enough (And Neither Is 100)

Statistical confidence requires sample size. A strategy's true performance lives behind a veil of randomness—the market doesn't care how elegant your logic is. What matters is whether your edge holds when market regime shifts, volatility spikes, or you hit an unlucky streak.

At n=30 trades, you're vulnerable to exactly three catastrophic failures:

1. Outlier Sensitivity
A single winner or loser can distort your metrics beyond recognition. If you trade a position size that makes one winning trade worth 5% of your account, one loss can wipe out five average winners. With 30 trades, that one outlier isn't noise—it's signal hijacking. Your Sharpe ratio, win rate, and profit factor are all potentially theater. Statistically, you haven't ruled out that your apparent edge is pure luck.

2. The Central Limit Theorem Doesn't Kick In
The Central Limit Theorem says that with enough samples, your results approach a normal distribution, and you can start trusting averages. The practical threshold? At least 100 trades, preferably 200+. Below that, you're in the regime where one or two outlier trades materially change your perceived edge. Above 200 trades, you've accumulated enough data that random draws smooth out, and what remains is more likely to be your actual strategy performance.

3. Regime Vulnerability
Markets change. A quiet trending market and a choppy sideways market reward completely different strategies. Thirty trades might catch only one market regime. When live trading starts and the regime shifts, you'll discover your strategy was fitted to a condition that no longer exists. You need enough data to have seen at least two or three distinct market phases—trending up, trending down, ranging, high-vol, low-vol, news events. Below 100 trades, you probably haven't.

Rule of thumb: Below 30 trades, your backtest is a hypothesis, not evidence. Below 100 trades, you're still in danger territory. Aim for 200+ trades before you seriously consider going live.

What Hyperliquid (and Exchanges) Will Actually Let You Test

Here's the hard constraint nobody likes to mention: your exchange has historical data limits. You can't backtest 10 years of 5-minute candles because the exchange hasn't been keeping them.

Hyperliquid data retention (as of now):

What does this mean for you?

If you're trading a 5-minute strategy, you have 13 days to work with. That's maybe 15–20 signals if you're selective, fewer if your strategy fires often. This is not enough data. You'll almost certainly overfit because you're optimizing every parameter against a tiny dataset. Any strategy will look good on 13 days if you tune it aggressively enough.

If you're trading a 15-minute timeframe, 60 days gives you maybe 50–100 signals depending on your logic. Getting close to the minimum threshold, but still risky if your parameters are numerous (see overfitting risk below).

If you're trading hourly or longer, 1-year or multi-year data is enough to build real confidence, especially if you span multiple market phases.

The practical implication: If you're designing a scalp strategy for 5-minute candles, you cannot rely solely on Hyperliquid's native candle data for validation. You need to either (a) accept that your backtest window is 2 weeks and build a Monte Carlo simulation around it to stress-test robustness, or (b) shift to a longer timeframe where you have more data.

Overfitting: More Parameters, Less Data = Guaranteed Failure

Overfitting is the silent killer. You've optimized your strategy against historical data so aggressively that it's basically a lookup table for the past, not a predictive model for the future.

The mathematics is unforgiving: each free parameter you introduce exponentially increases your overfitting risk. A rule of thumb from machine learning is that you need roughly 10–20 data points per parameter to avoid severe overfitting.

So if you have 100 trades of backtest data, you can safely tune maybe 5–10 parameters (entry threshold, exit threshold, position size, stop loss, trailing logic, etc.). If you're tweaking 20 parameters against 100 trades, congratulations—you've curve-fitted a strategy that will blow up on live data.

The vicious loop:

Solution: Count your parameters ruthlessly. Stop at 5–8 max. Use daily or hourly candles to get longer datasets. If you're designing a 5-minute strategy, validate it on a 15-minute or 1-hour backtest first to confirm the core logic isn't garbage, then carefully add 5m-specific tuning with extreme caution.

The Backtesting Checklist: When Is It Actually Safe to Go Live?

Use this checklist before you deploy real capital:

Reality Check: The Hyperliquid Perpetual Trader's Dilemma

You're running a bot on Hyperliquid perpetuals. The 5-minute candle history is 13 days. That's your constraint. You cannot get around it by wishing for more data.

Your options:

Option 1: Accept the risk and go small
Validate your core logic on longer timeframes (1h or daily), then deploy on 5m with minimal capital. Use your first 30 days live as extended validation. Log everything. If live results match backtest within ±30%, scale up gradually. If they diverge, kill it.

Option 2: Build for robustness, not optimization
Stop tuning so hard. Design a simple strategy on 13 days of data, then immediately stress-test it: reverse logic, add slippage, change market regime assumptions. A strategy that survives aggressive stress testing on a tiny dataset is more trustworthy than one that looks perfect on the data you happen to have.

Option 3: Wait for accumulation
Run your strategy in paper mode for 30 days. Collect real fills and market data. Now you have 30 days of actual live-like data to backtest against. Repeat monthly until you have 3–6 months of accumulated validation.

Conclusion: The Hard Truth

A backtest that passes this checklist won't guarantee profits. Markets are random enough that even a genuinely good strategy will lose money in any given period. What it does guarantee is that you haven't fooled yourself with noise and curve-fitting.

The traders who survive are the ones who treat their backtest with honest skepticism. They know that 13 days of 5-minute data is barely enough to validate entry logic, let alone prove edge. They keep position size small until live results confirm the backtest. They're willing to kill a strategy that looked brilliant in retrospective testing but fails in real trading.

More data is always better than less. Simpler strategies are always more trustworthy than complex ones on the same data. Paper trading catches failures that backtests miss. And if you can't afford to lose 30–50% of your capital, you're not ready to live trade—regardless of backtest metrics.

Use this checklist. Count your trades. Count your parameters. Be skeptical. And remember: the market doesn't care about your backtest. It only cares about your next live trade.

Affiliate disclosure: Some links on this site may be affiliate links. If you sign up through them we may earn a commission at no extra cost to you. We only recommend tools and services we've actually evaluated.