Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Change second data series in setting window

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

    Change second data series in setting window

    Hi,

    I added a second data series into my strategy as below

    AddDataSeries("@NAS100", Data.BarsPeriodType.Tick, 1, Data.MarketDataType.Last);

    But I want to be able to change @NAS100 via strategy settings window. How do I add that setting?

    Thanks
    Mem

    #2
    Hello Mem,

    That would not be supported by NinjaTrader to do.

    From the help guide:
    "Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically 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."

    Below is a link to the help guide on AddDataSeries().



    I will submit a feature request on your behalf for the development team to consider allowing dynamic variables as parameters to AddDataSeries().

    Once I have an ID for this request I will post in this thread for future reference.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello Mem,

      I've received tracking ID# SFT-882 for this request to dynamically load data series with variables as parameters in AddDataSeries().

      Please note it is up to the NinjaTrader Development to decide if or when any request will be implemented.

      We appreciate your feedback on this.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      40 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X