Book a demoSign in
Algo Creator School
November 16, 2026

Your backtest fills at prices you will never get (Algo Creator School #23)

Anthony Garcia, QuantVue CTO
CTO Anthony Garcia
Author
Your backtest fills at prices you will never get

Most backtesting software fills your order at the bar's close, at the exact signal price, instantly, at any size, for free. Not one of those five things happens in a live account. A strategy that only works under all five was never a strategy. Today, how to simulate a fill so the backtest has a chance of describing the account.

I will note that the ATS 2.0 backtesting software does the above. I do that so you can take the clean .csv and apply noise to it yourself so that you know the conditions under which it was built. Conditions that you don't fully understand don't help you read a backtest.

Start with time. A signal is computed, an order is built, it travels to the exchange, the exchange acknowledges it, and then it fills. On a one-minute bar the close does not exist until the minute is over, so a fill at that close is a fill at a price you could not have acted on. The floor for any bar-based test is the next bar's open. With tick data you can do better and delay the order by a fixed latency after the signal, and that latency should be honest about your stack. A retail platform on your computer on home internet is not a co-located server, and the gap is not a couple microseconds.

For reference, our software computes the action in ~40ms, and sends the order in another ~120ms. Including network latency we're usually at the broker in ~200ms. This equates to an average slippage of 0.25 (1 tick) on NQ in my testing. But this is ATS 2.0 times, and do not represent what you'll get on a home built system.

A short stretch of tick prices with four marks on it. Signal, order sent, exchange ack, fill. The bar close the naive backtest used sits off to the side at a different price. Synthetic, no P&L.

Then the market order. You pay the spread, and then you pay whatever the book gives you. A single tick is five dollars on NQ and twelve fifty on ES, and one tick of slippage is a floor, never an average. When the market is fast the book thins and a market order can walk all around it. Slippage is a function of latency, volatility, time of day, and your size against what is displayed, so model it that way if you have the data. If you do not, pick a constant that hurts, then rerun the whole test at double and triple that constant. A strategy that dies at double slippage was living on luck anyway.

Limit orders are worse, because they lie in the other direction. A limit resting at a price that touched is not a fill. You fill when price trades through your level, or when enough volume trades at your price to clear everyone ahead of you in the queue. The conservative rule is that a resting limit fills only when price trades at least one tick beyond it. Apply that rule to a mean-reversion backtest and watch what happens to it. The trades that disappear were the best ones, because the best entries are the ones where price touched and turned, and those are exactly the ones you never got.

Stops fill at your price or worse, never better. In a gap or a fast move, worse can be a lot. Give stops their own slippage assumption, larger than the entry assumption, because the stop fires when the market is moving against you by definition. Assume that it's moving quickly.

Size is the assumption nobody checks. The backtest bought ten contracts at the touch. The book at that price showed three. That's clearly not going to work. If your intended size is meaningful against displayed depth, the test needs book data or the fills are fiction.

Last, the fees. Commission per side, exchange fees per side, round trip on every trade. Add them, then do the same doubling test.

Our backtester presents fairly optimistic fill information, but usually presents a lower profit than what you usually get. That's because if it's ever unsure it'll read a loss. Taken together it's usually fairly close. We do want to build slippage options into it in the future. When we show charts we always model net of fees and with slippage - this just refers to the in-software backtesting.

Next week we'll talk about overfitting again, and give you some solid data on it.

This lesson was originally sent to the Algo Creator School email list on September 11, 2026. New lessons go out by email regularly. Join the list at quantvue.io.

Educational content only, not financial advice. Futures trading involves substantial risk of loss and is not suitable for all investors. Individual results vary, and past performance, actual or simulated, does not guarantee future results.

Read next

Free 20,000+ member Discord!

faqs

Your questions answered

What happens after I purchase?

After check out, you will receive a Welcome Email with your login details.

Use these details to Login to our dashboard, where you'll then submit your TradingView or NinjaTrader information.

Access is granted automatically if the form is filled out properly.

If you are having issues with access being granted, please submit a support ticket here.

Can I use this if I'm a total beginner?

No. Our core system is designed for those with baseline trading knowledge and live-trading experience. Do not sign up if you're a beginner trader. Intermediate to advanced experience is recommended.

Will I win every trade with this?

No. There is no algorithm or indicator that can accurately predict with 100% certainty the financial markets.

QuantVue is not responsible for trading losses. Past results are never indicative of future performance. Use QuantVue and trade at your own risk.

Which markets & timeframes does QuantVue work on?

Our tools are designed for futures. However, clients can tweak our toolkit to any chart or market.

Do I need a paid TradingView plan?

Most clients use a paid TradingView plan, and the most popular among users is TradingView premium.

How do I cancel my membership?

You can manage your account in the "My Account" tab or submit a support ticket here and we will process your cancellation immediately!

What is the refund policy?

Our monthly & yearly Pro / Elite plans are backed by a 30-day money back guarantee. If you are not 100% satisfied within 30 days from the time of purchase, you may request a full refund.

Beyond the 30-day period, all sales are final.

The 30 day money back guarantee only applies to first time customers. If you have used our system or had a plan in the past, you are not eligble for a refund. This means if you have used the PRO plan in the past and sign up for ELITE at a later date, you will not be elgible for the refund guarantee and vice versa.

This refund policy does not apply to our ATS program.

See our full refund policy here.

Does the 30 day money back guarantee apply to the ATS?

There is a separate money back guarantee for the ATS Program. The ATS refund policy has certain conditions that must be met to receive a full refund.

See our full ATS refund policy here.

Does the Elite plan include prop automation?

The Elite Plan on it's own does not automate into cash or prop firm accounts.

If you want to automate our tools into cash or prop accounts, you can do so via our alert connector QuantLynk here.

Keep in mind QuantLynk is detectable by prop firms, so we recommend using an automation-friendly prop firm.

To automate our tools into prop account undetected, we recommend our ATS Program here.

Is there a free trial on the ATS Program?

No. There is no free trial on the ATS program.