Skip to content

Optimizing NinjaTrader 8 Database

It's early morning. Your algorithm just captured a move on ES futures while you were still asleep, but now your backtest for the NQ contract is taking h...

It's early morning. Your algorithm just captured a move on ES futures while you were still asleep, but now your backtest for the NQ contract is taking hours to load. This delay often stems from an unoptimized database when running Multi-Contract strategies in NinjaTrader 8. The core challenge in multi-contract backtesting is not just the strategy logic, but how the platform handles the data for two highly correlated instruments. ES NQ Correlation is a well-documented phenomenon where the E-mini S&P 500 and E-mini Nasdaq-100 often move in tandem, yet they react differently to specific market catalysts. When you backtest a strategy that trades both, you are essentially asking the database to retrieve and process two separate streams of tick data simultaneously. Key fact: The NQ:MNQ ratio is exactly 10:1, meaning 1 NQ contract equals 10 MNQ contracts in dollar terms, a fixed relationship used for cross-instrument calculations. If your database is not optimized, the lag between retrieving ES data and NQ data can skew your backtest results. This is particularly true during high-volatility events like the market open or economic releases.

Related Products

ata | orderflowdataextractor | alvanor

Back to Blog | Indicators | Strategies | About