Backtesting Software Compared: Fill Assumptions That Change Your Results
Backtesting tools differ less in features than in how they fill orders: TradingView fills on the next bar's open with no commission by default, MetaTrader 5 offers five tick-modelling modes, and QuantConnect's default models assume orders fill completely. We did not run one strategy in four tools; this page compares what each publishes and shows how costs can flip a result.
What decides whether a backtest is believable?
A backtest replays rules on past prices and records the trades. The result is only as good as three assumptions: the price you are assumed to get, whether your order would actually have filled, and what costs were subtracted. Two tools given identical rules can give different profits because they differ on those three points.
We did not run one strategy in four tools for this page. We compared what the tools' own documentation says, and we say where a point was not readable. Several NinjaTrader help pages returned errors when we tried them, so that row is the thinnest.
| Tool | Order fill assumption (from its documentation) | Costs | Ticks or intrabar data |
|---|---|---|---|
| TradingView Strategy Tester | On historical bars, orders fill after a bar closes, by default at the next bar's open; gaps fill at the open after the gap | Commission is a strategy setting; if not specified, none is applied. Slippage setting exists; details not read | Assumes an open-high-low-close path if the open is nearer the high; Bar Magnifier uses lower-timeframe bars (Premium and Ultimate) |
| MetaTrader 5 Strategy Tester | Execution delay options: none, random (0 to 8 seconds 90% of the time, 9 to 18 seconds otherwise), or fixed | Spread modelling not described on the page read | Every tick (simulated), every tick based on real ticks, 1 minute OHLC, open prices only, math calculations |
| QuantConnect (LEAN) | Pre-built fill models assume orders completely fill in backtests; market orders fill at stale prices with a warning at tick resolution | Fill, slippage and fee models are set per security; defaults assume highly liquid assets | Resolution depends on your data subscription |
| NinjaTrader Strategy Analyzer | Page read says only that it runs historical analysis of NinjaScript strategies; fill rules not read | Not read | Not read |
How does TradingView fill orders?
TradingView's Pine Script documentation says its emulator executes orders on historical bars after a bar closes, so a new order fills on the following bar's open by default. On realtime bars, the earliest fill is after a new tick. If the opening price of a bar is closer to the high than the low, the emulator assumes price moved open, high, low, close. That is an assumption, not data, and it decides whether a stop or a target was hit first when both are inside one bar.
The Bar Magnifier setting replaces that guess with prices from a lower timeframe, and the documentation says Premium and Ultimate users can use it. Our TradingView plans page lists Premium at C$82.95 a month on annual billing, C$995.40 a year. Two settings change timing: process_orders_on_close (default false) lets orders fill on the closing tick of the bar they were created on, and calc_on_every_tick (default false) runs the script on every tick of a realtime bar.
If you set no commission, the strategy applies none. A backtest that looks profitable may be profitable only because costs are zero.
What does MetaTrader 5 let you control?
The Strategy Tester's modelling modes run from fast and rough to slow and accurate. Every tick simulates all ticks. Every tick based on real ticks uses tick data accumulated by brokers, and the first run can be slow because of the download. 1 minute OHLC emulates only four prices per minute bar, and open prices only uses the open. Math calculations downloads no history and performs no margin control, and the page recommends it only for rough estimates.
For execution, the tester can add a delay to requests from the Expert Advisor: none, random or fixed. No delay shows performance under ideal conditions; the random delay is described as closest to real conditions. This matters for strategies that trade in seconds. MetaTrader is mainly a forex and CFD platform; our MetaTrader page covers which Canadian dealers and prop firms offer it.
What do QuantConnect and NinjaTrader add?
QuantConnect's documentation lets you set fill, slippage and fee models per security and says the default models assume you trade highly liquid assets. Its trade fills page says the pre-built models assume orders completely fill in backtests, so a 500-contract order is treated like a 1-contract one. You need custom models for large size or thin markets.
NinjaTrader says charting, strategy backtesting and simulated trading are free to use with no time limit, per its Canada page (see our NinjaTrader page). We could not read its fill-processing help pages, so we do not state how it fills.
Worked example: costs and slippage can flip a result
This is a hypothetical strategy trading one Micro E-mini S&P 500 contract. It makes 200 round turns with an average gross profit of US$4.00 each, so gross profit is US$800.
Commission: using NinjaTrader's Free plan all-in cost of US$1.88 per round turn (US$0.94 per side including exchange and clearing fees, from our NinjaTrader page), costs are 200 x US$1.88 = US$376. Net is US$800 - US$376 = US$424.
Slippage: if each entry and exit gives up one tick of US$1.25, that is US$2.50 a round turn, or 200 x US$2.50 = US$500. Net is US$424 - US$500 = -US$76, about -C$108.61 at 1.4291 CAD per USD.
The same rules went from a US$800 profit to a US$76 loss. A tool that sets commission and slippage to zero by default shows the first number.
| Step | Per round turn | 200 round turns |
|---|---|---|
| Gross profit | US$4.00 | US$800 |
| Commission and fees | -US$1.88 | -US$376 |
| After costs | US$2.12 | US$424 |
| One tick slippage each side | -US$2.50 | -US$500 |
| After slippage | -US$0.38 | -US$76 |
Which tool should you pick?
Pick by the market and the question. For ideas on a chart you already read, TradingView's tester is quick, but set commission and slippage, and know that Bar Magnifier needs a higher plan. For forex or CFD robots, MetaTrader 5's real-ticks mode is the more careful choice. For code-based research with your own data and models, QuantConnect gives you control but expects you to set fill and fee models.
Whichever you choose, run a test you can check by hand: five trades, with entry price, exit price and costs computed on paper. If the tool's report differs, find out why before trusting 500 trades.
Who should not rely on backtests alone: anyone about to pay for a prop firm evaluation based on a backtest with no costs. Simulated fills are usually kinder than live ones; see our paper trading page.
Frequently asked questions
What is the best free backtesting software?
We could not rank tools by testing. NinjaTrader says charting, backtesting and simulation are free with no time limit. TradingView and MetaTrader 5 also include testers; check which features need a paid plan.
Does TradingView include commission in backtests?
Only if you set it. The documentation says that if commission is not specified, the strategy applies none.
What is the most accurate MetaTrader 5 testing mode?
Every tick based on real ticks uses broker-accumulated tick data; every tick simulates ticks and is described as the most accurate and slowest.
Why do two backtests of the same strategy differ?
Different fill timing, intrabar price assumptions, commission and slippage settings, and data resolution.
Is a backtest proof a strategy will work live?
No. It is a test on past data with assumptions. Costs, slippage and changing markets can change results.
Sources
Provider documents behind this page, checked November 23, 2026.