Backtesting Guides
A backtest tells you how a rule would have done in the past, under the assumptions you chose. These guides show how to set up a test that does not flatter the result, with our own calculations on real data.
Start with the backtesting guide if you are new to testing. Profit factor and trading edge show how to read the result. If you already use TradingView, the related guides below cover its tools.
Guides in this topic
- Test a strategy properly
Backtesting: How to Backtest a Trading Strategy Properly
Five steps, five metrics and six mistakes, shown on a 32-year S&P 500 test with out-of-sample, walk-forward and the dividend trap.
- Check a profit factor
Profit Factor in Trading: Formula, Calculator, Good Values
The formula, a free calculator, what a good value is, and why 61 trades showed 2.22 while 356 trades showed 1.37.
- Check if you have an edge
Trading Edge: How to Calculate, Test and Keep One
The expectancy formula, the win rate each reward-to-risk ratio needs, and the tests that separate a real edge from luck.
Related articles
- Backtest in TradingView
TradingView Backtesting: Test a Strategy Without Real Money
Manual testing with Bar Replay and automatic testing with the strategy report.
- Forward test without risk
TradingView Paper Trading: Setup, Limits and Tips (2026)
Run a strategy with simulated orders at real-time prices before you risk money.