Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Optimizer errors persisting after attempt to optimize AddDataSeries parameter

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

    Optimizer errors persisting after attempt to optimize AddDataSeries parameter

    Hi,

    I have a multi timeframe strategy that I tried optimizing the minute interval parameters to AddDataSeries for. The optimization threw errors in the log, and since then I have been unable to optimize the strategy at all as it throws the same errors even when I'm not optimizing the minute interval parameters that initially threw the errors (image attached). I've attempted to resolve the issue with a reinstall, but had no luck. Can someone point me towards a fix for this scenario?

    Thanks in advance,
    Attached Files

    #2
    Hello Newbie-NT-Scriptor,

    Thank you for your post.

    There is a note about this in the help guide on the AddDataSeries() page:
    The AddDataSeries(string instrumentName) overload allows loading a different instrument yet using the same BarsPeriod. This could not be supported for Strategy Analyzer use with the 'Optimize Data Series' option enabled, doing so may result in an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner.​
    Do you have the 'Optimize Data Series' option enabled in your optimization parameters? If so, do you still see any errors if you disable this option? In general, trying to add a data series dynamically could result in unexpected behavior and should be avoided. If your strategy is trying to call AddDataSeries() dynamically in any way, that could be related to the cause of the error.

    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X