• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyzer unhandled exception

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Market Analyzer unhandled exception

    I have built some templates for Market Analyzer that worked until today. After making some indicator code changes, I get an "unhandled exception error for array index out of range" when I try to load some of the Analyzer templates. I've surrounded all of my indicator code with try/catch but still I get this error. Is there a NT log file I can look at or can I attach Visual Studio to NT to track down what's causing this error?
    thanks,

    #2
    Here's the error from the NT trace file:
    2020-02-21 11:34:38:594 *************** unhandled exception trapped ***************
    2020-02-21 11:34:38:594 Index was outside the bounds of the array.
    2020-02-21 11:34:38:594 System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerGrid. Restore(XElement element, Boolean asTemplate)
    at NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerGrid. ApplyTemplate(String fileName)
    at NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerGrid. OnTemplateLoad(Object sender, RoutedEventArgs e)
    at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.Controls.MenuItem.InvokeClickAfterR ender(Object arg)
    at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
    2020-02-21 11:35:01:242 *************** unhandled exception trapped ***************
    2020-02-21 11:35:01:242 Index was outside the bounds of the array.
    2020-02-21 11:35:01:243 System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerGrid. Restore(XElement element, Boolean asTemplate)
    at NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerGrid. ApplyTemplate(String fileName)
    at NinjaTrader.Gui.MarketAnalyzer.MarketAnalyzerGrid. OnTemplateLoad(Object sender, RoutedEventArgs e)
    at System.Windows.EventRoute.InvokeHandlersImpl(Objec t source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(Dependency Object sender, RoutedEventArgs args)
    at System.Windows.Controls.MenuItem.InvokeClickAfterR ender(Object arg)
    at System.Windows.Threading.ExceptionWrapper.Internal RealCall(Delegate callback, Object args, Int32 numArgs)
    at System.Windows.Threading.ExceptionWrapper.TryCatch When(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

    Comment


      #3
      Hi tecmisc1, thanks for your post.

      Do you get the same problem when you make a template with no custom indicators? If not there is some problem with the public properties your script is using. If you could reduce the script as much as possible to where it still re-creates the problem, it might make it easier to realize what the issue is.

      I look forward to hearing from you.
      Chris L.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by MrSomebody, Today, 06:46 AM
      0 responses
      3 views
      0 likes
      Last Post MrSomebody  
      Started by catinabag, Today, 06:09 AM
      0 responses
      2 views
      0 likes
      Last Post catinabag  
      Started by Fiocco, Today, 05:59 AM
      0 responses
      6 views
      0 likes
      Last Post Fiocco
      by Fiocco
       
      Started by Perceivedshift, Today, 05:17 AM
      0 responses
      9 views
      0 likes
      Last Post Perceivedshift  
      Started by herbertmack, Today, 03:19 AM
      0 responses
      5 views
      0 likes
      Last Post herbertmack  
      Working...
      X