Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Strange Analyzer Issues

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

    Strange Analyzer Issues

    I have noticed if I build an analyzer and add columns that are indicators that I have built, and then I modify the code in the indicator being used in the analyzer, the analyzer no longer works and I get an Unhandled Exception: Index was outside of the bounds of the array error and the analyzer can't load.

    To be more specific, I added a Plot to the indicator being used in the analyzer.

    If I rebuild the analyzer from scratch with the new Plot, its not a problem and it works fine, but as soon as I add a new plot, all existing analyzers stop working.

    This is a big issue when I have multiple columns which map from plot doubles to text, and 300 stocks in my anazlyer list and I need to rebuild.

    Can anyone explain why this is happening, and more importantly, how do I have this stop happening since I will often need to add plots to my indicators.

    #2
    Hello ErikY,

    Thank you for the post.

    That would be expected for the described use case, the Reload NinjaScript won't work if you are adding class level properties or items like Plots. You would need to remove and re add the indicator to see those kind of changes take effect. The same type of issue would occur in a chart if you add plots or other structural changes to the indicator, you would need to remove and re add it to see the changes start working. Generally only changes to the event overrides like OnBarUpdate will be able to be quick reloaded with F5.


    Please let me know if I may be of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Jesse, Thanks for the reply.

      I am a little confused. On a chart, I am having no problem with the exact same indicator that I created and modified, as I am having in the Market Analyzer. In the chart, when I reload the chart, the indicator is completely fine. The new Plot is a transparent plot that's sole purpose is for the analyzer. The chart is working fine with the new transparent plot. However, my analyzers that use the other plots, not even the new plot, all from this same indicator, are no longer working and all give me the same error

      Comment


        #4
        Hello ErikY,

        I understand you are having trouble in the analyzer however adding plots is a situation which you always need to remove/re add the script for that to take effect correctly. If you add a plot simply remove the indicator and re apply it to avoid that problem. By adding any new plots you are changing the plots collection which the analyzer is using, it won't be able to correctly make use of the script until it is re initialized by re adding it.


        Please let me know if I may be of further assistance.



        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Waxavi, Today, 02:10 AM
        0 responses
        4 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by TradeForge, Today, 02:09 AM
        0 responses
        10 views
        0 likes
        Last Post TradeForge  
        Started by Waxavi, Today, 02:00 AM
        0 responses
        2 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by elirion, Today, 01:36 AM
        0 responses
        4 views
        0 likes
        Last Post elirion
        by elirion
         
        Started by gentlebenthebear, Today, 01:30 AM
        0 responses
        4 views
        0 likes
        Last Post gentlebenthebear  
        Working...
        X