Announcement

Collapse
No announcement yet.

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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          81 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          149 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          79 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          52 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          59 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X