Backtesting

Backtesting NQ 15-Second Scalps With Slippage

A 15-second bar can touch a target and a stop before it closes. The order of those touches, your order type, and the price at which you can actually trade can matter more than the pattern that produced the signal. A cost audit puts those differences in the results you evaluate.

Translate ticks into dollars before testing

NQ and MNQ both move in quarter-point ticks. One tick is worth $5 per NQ contract and $0.50 per MNQ contract. Enter the actual round-trip fees for each contract and account. Costs scale differently when contract values and fee schedules differ.

Take a hypothetical one-contract NQ scalp with a 12-tick target and an 8-tick stop. The gross target is $60 and the gross stop is $40. If you budget $5 for round-trip fees and 2 ticks total for adverse execution, the modeled win falls to $45 and the modeled loss grows to $55. Break-even rises from 40% gross to 55% under those assumptions. Those figures illustrate the arithmetic. Replace the example inputs with your own fill data.

Decide when the order could first exist

Separate the signal timestamp from order submission and execution. If a signal requires the completed bar, earliest eligibility comes after that bar closes. A high or low set earlier inside that bar cannot fill an order submitted because of the close.

Group trades whose stop and target both appear inside one bar. Compare the result under a conservative stop-first assumption with a finer historical series where your setup supports one. NinjaTrader’s standard historical fill processing estimates a path through the bar. A more granular series can improve the ordering of price events, while queue position and actual fills still require separate measurement.

Treat limit fills and market slippage separately

A limit touch can occur while other orders are ahead of yours. Compare a touch model with a more conservative trade-through assumption and report the resulting change in both fill rate and PnL. For market and stop-market orders, run separate low, middle, and high adverse-slippage scenarios using observed fills where available. NinjaTrader’s historical slippage setting applies to certain market-style order types. Read how it works before treating that setting as a complete model of execution costs.

Use one explicit price reference when you measure slippage so you can account for the spread without charging for the same move twice. For example, log the decision price, bid and ask at submission when available, and the fill price. Label which difference enters your cost calculation.

Compare results by time window

Track signal time, order type, intended price, fill price, contracts, fees, and whether the order filled at all. Separate the cash open from later trading or overnight hours. A single average can hide a narrow time window where fills are materially worse. Compare trade count, median round-trip cost, tail slippage, and net PnL for each window.

Use historical results to find assumptions worth testing, then compare them with replay and a separate simulation forward test. If net results depend on favorable fills for the same-bar trades or on optimistic limit fill rates, those assumptions deserve further testing before you rely on the strategy.

References

Related guides