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 NullPointStrategies, Today, 05:17 AM
      0 responses
      50 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      69 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X