If I have a lot of slow method calls in my OnData is it possible for it to timeout and to proceed to the next data tick in backtests before all of the calculations are completed and orders placed? I am doing minutely resolution and I noticed that when I add another line of code that takes significant time/memory to initialize my returns in the backtest drop from around +60% to -30%. The line doesn't do any orders or affect anything else at the moment, but if it is executing too slowly is it possible that the next minute happens before the OnData is done? The backtest itself is less than a minute

Author