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