I’m using Market Replay to backtest 10 or more strategies at once, I want to backtest several years of data using several virtual machines in parallel in order to go faster than the 500% max speed, but the performance of NinjaTrader 7 decreases a lot when it has processed some thousands of trades, and the backtest slows down dramatically.
I’am exporting the trade list in a CSV file via StreamWriter, so I don’t need the statistics of Ninjatrader.
The question is:
Can I clear all the processed trades that are inside the Ninjatrader database with something like this pseudocode below or something similar during the backtest?
Performance.AllTrades.ClearAllTrades
Thanks.
Comment