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 maybeimnotrader, Yesterday, 05:46 PM
      5 responses
      24 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by NRITV, Today, 01:15 PM
      0 responses
      4 views
      0 likes
      Last Post NRITV
      by NRITV
       
      Started by quantismo, Yesterday, 05:13 PM
      2 responses
      16 views
      0 likes
      Last Post quantismo  
      Started by frankthearm, Today, 09:08 AM
      6 responses
      27 views
      0 likes
      Last Post frankthearm  
      Started by adeelshahzad, Today, 03:54 AM
      5 responses
      33 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X