Backtesting & Walk-Forward Testing
Prove it on history with no look-ahead bias — or do not trade it. This is the proof lab: walk-forward analysis, out-of-sample folds, a realistic cost model that charges fees, spread and slippage, and the discipline to reject strategies that only look good in-sample. Backtests are evidence, not promises.
No profit promises. Paper trading by default. Read the risk disclaimer before using live mode.
A single backtest lies
A strategy fitted to the whole of history can memorise the past without learning anything that survives the future. Run a parameter sweep across every candle in your dataset and you will always find a setting that looks brilliant in hindsight — that is curve-fitting, not edge. Walk-forward testing breaks that illusion: it repeatedly optimises on one window and validates on the next unseen window, so the numbers you read were never used to choose the settings that produced them.
Walk-forward analysis vs. a simple backtest
A simple backtest optimises and reports on the same span of history, so it answers the wrong question — "what would have worked?" instead of "what keeps working?". Walk-forward analysis splits history into rolling in-sample and out-of-sample segments: it tunes on the in-sample window, then measures performance only on the following out-of-sample fold the strategy has never seen. Aggregate the out-of-sample folds and you get an honest estimate of forward behaviour. Adaptive window sizing keeps each fold large enough to mean something without freezing the strategy to one regime.
No look-ahead bias, ever
Look-ahead bias is using information at decision time that would not have been available then — closing prices to trigger an intrabar entry, a rolling statistic computed over future candles, a label that peeks at tomorrow. It is the silent killer of good-looking strategies because it inflates results without anyone noticing. Great Dane Pro builds every signal from data that existed at the bar it acts on. Indicators are computed causally, fills happen on the next available price, and nothing in the engine can read a candle that has not closed.
Fees, spread and slippage inside the test
A backtest that trades at the midpoint for free is fiction. The realistic cost model charges every simulated trade the same way a live account is charged: exchange fees, the bid-ask spread, a slippage estimate, and a safety buffer on top. That total friction is the bar each signal must clear before it counts — exactly the cost-beating rule the signals pillar enforces in production. High-frequency, low-edge strategies that look profitable at zero cost collapse the moment friction is applied, which is precisely what you want to discover in simulation rather than with real capital.
Sharpe, drawdown, profit factor and itemised trades
Each run reports the metrics that survive contact with reality, not a single cherry-picked equity curve. Sharpe describes return per unit of volatility; maximum drawdown describes the deepest peak-to-trough pain you would have endured; profit factor weighs gross wins against gross losses; net PnL is the bottom line after all costs. Trade count guards against verdicts built on a handful of lucky fills. Every run is backed by an itemised trade log — entry, exit, cost, and result for each position — so a headline number can always be traced to the trades beneath it.
In-sample vs. out-of-sample, and spotting overfitting
The single most useful diagnostic is the gap between in-sample and out-of-sample results. A strategy that shines in-sample and falls apart out-of-sample has memorised noise; a strategy whose out-of-sample numbers track its in-sample numbers has likely found something durable. A minimum-trades floor rejects verdicts that rest on too few samples, and dead-zone range tightening trims parameter regions that only ever produced fragile, overfit fits. The goal is not the best-looking backtest — it is the most honest one.
Pass or fail, in language you can read
Metrics are only useful if they lead to a decision. Every walk-forward run resolves to a readable pass-or-fail verdict against thresholds you can inspect: positive out-of-sample net PnL, an acceptable Sharpe, a drawdown you can stomach, and enough trades to trust. A strategy that passes earns the right to the next stage — paper trading. A strategy that fails is rejected, with the reason stated, the same discipline the platform applies to weak signals.
A passing backtest is not permission to go live
Backtests do not guarantee future results; real markets diverge from models, liquidity dries up, and regimes change. A backtest is the best evidence you can gather before risking money — and it is still only evidence. That is why a passing walk-forward run leads to paper trading next, never straight to live. Paper trading runs the full strategy against live market data with simulated capital, so it catches execution realities — latency, partial fills, gaps — that a historical simulation cannot. The paper→live gate exists to catch exactly what backtests miss.
Articles & guides
The complete Backtesting & Walk-Forward Testing cluster — 12 in-depth, no-hype guides. Explanatory articles set the concepts; step-by-step how-tos put them into practice.
Guides & explainers
Step-by-step how-tos
Frequently asked questions
- What is backtesting?
- Backtesting runs a trading strategy against historical market data to estimate how it would have behaved. Done honestly — with no look-ahead bias and a realistic cost model — it is the primary way to gather evidence about a strategy before risking capital. It is evidence, never a guarantee.
- What is walk-forward testing?
- Walk-forward testing repeatedly optimises a strategy on one window of history and validates it on the next unseen window, then rolls forward. Because each result is measured on data that was never used to choose the settings, it gives a far more honest estimate of forward performance than a single backtest.
- How is walk-forward analysis different from a simple backtest?
- A simple backtest optimises and reports on the same span of history, which rewards curve-fitting. Walk-forward analysis separates the optimisation window (in-sample) from the measurement window (out-of-sample), so the reported numbers come only from data the strategy had not seen when its parameters were chosen.
- What is look-ahead bias?
- Look-ahead bias is using information in a test that would not have been available at decision time — for example acting on a candle that has not closed, or a statistic computed over future bars. It inflates results and is rigorously excluded here: signals are built causally and fills occur on the next available price.
- Are fees and slippage included in the backtest?
- Yes. The realistic cost model charges every simulated trade exchange fees, the bid-ask spread, a slippage estimate, and a safety buffer. A signal must beat that total friction to count, so strategies that only profit at zero cost are exposed in simulation rather than with real money.
- What is the difference between in-sample and out-of-sample?
- In-sample is the data used to tune a strategy; out-of-sample is fresh data used only to measure it. The gap between the two is the clearest signal of overfitting: a strategy that performs in-sample but not out-of-sample has memorised noise rather than found a durable edge.
- How do I spot an overfit (curve-fitted) strategy?
- Watch for a large drop from in-sample to out-of-sample performance, results that depend on a single razor-thin parameter setting, and verdicts built on very few trades. A minimum-trades floor and out-of-sample validation are designed to reject exactly these fragile fits.
- Which metrics matter most — Sharpe, drawdown or profit factor?
- They answer different questions and should be read together. Sharpe measures return per unit of volatility, maximum drawdown measures the deepest loss you would have endured, profit factor weighs gross wins against gross losses, and net PnL is the after-cost bottom line. A strong number on one metric never excuses a poor number on another.
- What is profit factor?
- Profit factor is gross profit divided by gross loss. A value above 1 means winning trades outweighed losing trades over the test period. It is read alongside trade count and drawdown, because a high profit factor over a handful of trades is not yet evidence of an edge.
- Does a good backtest mean I will make money?
- No. Backtests do not guarantee future results; real markets diverge from models and past simulated performance never implies future outcomes. A passing backtest earns a strategy the right to paper trading — not a promise of profit. You are solely responsible for your own trades.
- Why does an itemised trade log matter?
- Headline metrics can hide a lot. An itemised trade log records the entry, exit, cost and result of every simulated position, so any summary number can be traced back to the trades that produced it. Transparency is the point: you should be able to audit a verdict, not just trust it.
- Why can't I skip straight to live trading after a passing backtest?
- Because a historical simulation cannot reproduce live execution — latency, partial fills, gaps and changing liquidity. The paper→live gate runs the strategy against live data with simulated capital to catch what backtests miss. Paper trading always comes before live.
Explore the other pillars
Prove it in paper before you risk a cent.
Start in paper mode, validate with walk-forward backtests, and let the risk engine and kill switch hold the line — no real capital at risk until you decide to connect Kraken.
This is not investment advice.
Great Dane Pro is an education, backtesting, and trading automation platform. Nothing on this site is financial advice. Results are simulated. Backtests do not guarantee future results. Markets can diverge from simulations. Trading cryptocurrencies involves substantial risk including the total loss of capital. Paper trading should come before live trading. Users are responsible for their own trades.
Read the full risk disclaimer →