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 Optimisation ERROR

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

    Strategy Optimisation ERROR

    Hello,
    When running Strategy Analyzer to optimize time frames for strategy I get the following error. "A hosted indicator tried to load additional data. All data must first be loaded by the hosting NinjaScript in it's configure state."

    Any help is appreciated, thank you.
    Attached Files

    #2
    I only get this error if I use Optimization, Walk-Forward or Multi-Objective Optimization. I do not get this error with Standard.

    Comment


      #3
      Hello SBMT17,

      Thank you for your note.

      Does the indicator which you reference from your strategy load additional data series?

      If so you should add that data series to the strategy as well. See the 2nd warning at the following link,


      If the indicator does not load additional data series, would you be able to provide a sample strategy which can replicate this?

      I look forward to your reply.
      Alan P.NinjaTrader Customer Service

      Comment


        #4
        Hello and thank you,
        I am also having the same issue that SBMT17 mentioned.
        Yes my indicator also does load additional data series.
        Thank you for the link.
        Just to be clear, my script is not the host for other scripts, but my script is only the host for the indicator, or do I have that backwards? Either way, you're asking me to ensure that both the indicator and the script have the same State.Dataloaded and AddDataSeries()?





        I look forward to your reply.
        Last edited by TElphee01; 08-26-2018, 12:45 PM.

        Comment


          #5
          Hello TElphee01,

          Your strategy would need to have the added data series if it calls a indicator which calls an add data series.

          If you add the data series in the strategy, does the error resolve?

          See the notes under AddDataSereis.


          I look forward to your reply.
          Alan P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by yertle, Yesterday, 08:38 AM
          7 responses
          28 views
          0 likes
          Last Post yertle
          by yertle
           
          Started by bmartz, 03-12-2024, 06:12 AM
          2 responses
          21 views
          0 likes
          Last Post bmartz
          by bmartz
           
          Started by funk10101, Today, 12:02 AM
          0 responses
          4 views
          0 likes
          Last Post funk10101  
          Started by gravdigaz6, Yesterday, 11:40 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by MarianApalaghiei, Yesterday, 10:49 PM
          3 responses
          10 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Working...
          X