Unhandled exception error

I just recently upgraded to version 8.1.6 and had some errors and lagging chart load etc. like many others have reported.

I took some time by process of elimination with indicators with focus on 3rd party.

With everything removed and even no chart at all I was still getting terrible performance and errors.

I then scrapped everything and started over with a clean new workspace and everything seems to be working normal now…

HOWEVER, there is an error message I get every time I toggle to a different tab within Market Analyzer.

Error: Unhandled exception: Index was outside the bounds of the array.

This is not new to version 8.1.6 but has been a problem for several versions prior. I want to say this has been going on for well over a year or two and I keep thinking it will be resolved with bug fixes and updates but that clearly has not been the case.

Any idea what might be the cause and is there a known solution that I’m just not aware of?

video: error when switching tabs on Market Analyzer at about 0:00:03 or so. It only happens the 1st time switching to a tab and for each tab. After that and I close the error, it’s fine. But it will happen for each additional tab besides the the 1st one that’s open with the workspace opens up.
20251005-1408-44.0266293

Your third party indicators could possibly be using addons and doing things that are not visual on the chart. For example, if the third party indicators are using AddOnBase then its components are at the platform level and not chart level. I don’t use the Market Analyzer, but it could be the platform or if it has any customization that uses it. If you removed all the indicators and strategies, recompile without any of them and it still persists then it might be the platform. Using Visual Studio and attaching it to a running NinjaTrader instance while debugging, might pinpoint what is causing the issue when it breaks.

1 Like

thanks, i’ll try recompiling and will report back.

Recompiled in script editor, closed and restarted NT. The error persists.

It’s not crashing the platform and the error will not show up again after I clear the error message.

This will happen for each tab which can be up to 22 tabs, one for each account. So it’s mostly a nuisance.

However, I have concerns that the repeated errors might corrupt data with ongoing errors every time I boot up the platform.

I tried swapping tabs with the Market Analyzer and don’t have any issues. Did you attach the debugger to see exactly where its breaking and why?

Not sure where to find the de-bugger but here’s what is being recorded in the “Log”.

ok, i searched “de-bugger” for NT and found some info…

will have to study this a bit when i have more time and will see what i can come up with.

btw, thank you for your help!!!

in the past i’ve had issues with indicator errors and have seen them show up in the editor (orange script) at bottom of the editor window.

that did not happen this time when i ran compiler.

Here is the link to it. If you have it attached to NinjaTrader, then it should break and show you were in the code it’s breaking. https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?visual_studio_debugging.htm

1 Like