Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error "tried to load additional data". when optimizing s strategy

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

    Error "tried to load additional data". when optimizing s strategy

    I am receiving the error message: "'MyOptimizer' tried to load additional data. All data must first be loaded by the hosting NinjaScript in its configure state."

    I am sure that all data is in the local PC. Could this affect the optimizer results?

    #2
    Hello guillembm,

    The error means a called hosted indicator is using AddDataSeries() to add a data series. This AddDataSeries() call must also be added to the host strategy.

    From the help guide:
    "Should your script be the host for other scripts that are creating indicators and series dependent resources in State.DataLoaded, please make sure that the host is doing the same AddDataSeries() calls as those hosted scripts would. For further reference, please also review the 2nd example below and the 'Adding additional Bars Objects to NinjaScript' section in Multi-Time Frame & Instruments"
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your reply.

      In this case this was not the problem. I don't have added series neither in the indicator nor in the strategy.

      I solved the problem increasing the upper range of the time series to optimize.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      66 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      149 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      162 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      99 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      286 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Working...
      X