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

Strategy Builder Panel Series Error

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

    Strategy Builder Panel Series Error

    I am trying to start a new strategy with the strategy builder.

    I am trying to track down the following error.

    when I click add in the conditions and action window I get the error message below


    Click image for larger version

Name:	NT error.PNG
Views:	142
Size:	11.5 KB
ID:	1158638

    I have no logic or indicators in the action window it is completely empty.
    This is happening with any strategy in the strategy builder I open.

    I am guessing this is coming from another strategy than the one I am working on.

    I compiled the strategies I have in the NinjaScript Editor and receive no errors.

    Would this error be coming from a strategy within the strategy builder?
    Do strategies in the strategy builder also compile when I compile from the NinjaScript Editor?

    I do most of my coding in the NinjaScript editor I am just trying to do the basic construction before I unlock the code.

    Thank you

    #2
    Hello sdauteuil,
    You're getting this error in "StrategyPlotPanelSelectIndicator" & the variable "SeriesIndex" is causing it as its range is defined as 1 to 2 but either you've not set any value for this variable in SetDefaults or thru some calc its value is evaluating to 0 which would be invalid. Check this variable value & use print to understand, so you can easily fix it.
    Hope it helps!

    Comment


      #3
      Hello sdauteuil,

      Thanks for your post.

      Yes, all ninjscripts are compiled together at each compilation. An error in any file would prevent successful compilation. It sounds like you do not have a compilation error but something is affecting the strategy builder creation process,

      As a suggestion, I would use the Ninjscript editor explorer and locate the indicator "StrategyPlotPanelSelectIndicator", right mouse click on the file name and select "Exclude from compilation" and once the system recompiles to then test your strategy builder.
      Paul H.NinjaTrader Customer Service

      Comment


        #4
        I downloaded a sample strategy example which referenced this indicator.

        I delete both the strategy and the indicator and that corrected the error.

        Thank you

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by andrewtrades, Today, 04:57 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        6 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        436 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        9 views
        0 likes
        Last Post FAQtrader  
        Started by rocketman7, Today, 09:41 AM
        5 responses
        20 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X