How to backtest
a trading strategy

6Steps
5Traps to avoid

A backtest replays an exact rule set against historical candles to see what would have happened. Done honestly, it tells you whether a strategy has a measurable edge before you risk a cent. Done carelessly, it tells you a flattering lie. This guide is the honest version, the same execution assumptions Backtestify enforces on every run.

Why most backtests lie

Lookahead bias

Using information from the same candle to trade that candle. Signal confirms on the close; the fill is the next open.

Survivorship of exits

Assuming the target fills when the stop was nearer the open on the same bar. Take the nearer level first, as TradingView does, and count the trade as ambiguous.

Zero-cost fantasy

Ignoring commission and slippage. Charge both sides, every trade.

Overfitting

Tuning parameters until the curve looks good, then reporting that same data. Always keep an unseen window.

Small samples

Drawing conclusions from a dozen trades. Edge needs a sample large enough to be meaningful.

Do it in one sentence

Backtestify does this whole workflow for you. Describe the strategy in plain English, it is turned into an exact rule set, replayed on real candles with signal confirmation on the close, fills at the next open, and costs on both sides. You get a verdict with win rate, drawdown, profit factor, buy-and-hold beside your return, and a TradingView strategy you can verify.

Backtestify is a research tool, not financial advice. Every backtest is a hypothetical simulation of past data, past performance never guarantees future results.