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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      324 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      250 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      351 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      180 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X