Quant Invest System

Notes on testing

Short articles on how to read a backtest and what a statistic can and cannot tell you. Each one links to its sources.

How Swap Costs Break H4 and D1 Backtests

Strategies that hold trades for days pay or earn swap every night. Why a MetaTrader 5 backtest over several years gets it wrong, how to estimate its share of your average trade, and what to check in the report.

Monte Carlo Reshuffling and Autocorrelation: Why Blocks Matter

Shuffling the order of backtest trades is the usual Monte Carlo drawdown test. It assumes trades are independent and that the total is fixed. A reproducible simulation shows how far it can fall short, and what block methods recover.

How to Read an MT5 Strategy Tester Report

Which numbers in a MetaTrader 5 Strategy Tester report matter, which mislead, and why “100% real ticks” in the header is not proof of how the test ran: check the tester log.

How many trades does a backtest need?

The answer depends on how big the edge per trade is. A worked method to estimate it from the numbers in your MetaTrader 5 report, with examples from 71 to over 2,000 trades.

Why one good backtest proves little

Overfitting is mostly a counting problem: how many variants were tried before this one was kept. What to ask of a backtest before you trust it.