Automated strategies weird glitch in market replay

I recently started having a weird problem while testing automated strategies on market replay. When I activate a strategy it will show the historical fills accurately but when it actually takes a trade there will only be a single entry instead of multiple entries along with a single profit target instead of multiple, and when the stop-loss and profit targets are hit the order flags disappear but there are no actual fills and the position remains open until I manually close it. This started happening randomly and now occurs with every strategy. After trying everything I could think of to fix it I finally deleted NinjaTrader from my computer and redownloaded the platform. Just got done setting everything back up and built a quick automated strategy to test it and the problem is still there. Has anyone else ever dealt with this problem? Thanks in advance for any help/insight into this issue.

It’s likely more of a coding problem. You may need to add print statements to make sure everything is being assigned how you are wanting them to, and turn traceorders on to analyze what’s going on and when. When it comes to orders, in real time and market replay your code may be activating before the orders are submitted, causing errors. You’ll have to debug to find out where things are going wrong.

1 Like

Fixed it! In the automated trading interface section of the options tab there is a check box called Ignore duplicate OIF files, I’ve never touched it before but somehow the box got unchecked and apparently caused the issue