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 llanqui, Today, 03:53 AM
      0 responses
      2 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      10 views
      0 likes
      Last Post burtoninlondon  
      Started by AaronKoRn, Yesterday, 09:49 PM
      0 responses
      14 views
      0 likes
      Last Post AaronKoRn  
      Started by carnitron, Yesterday, 08:42 PM
      0 responses
      11 views
      0 likes
      Last Post carnitron  
      Started by strategist007, Yesterday, 07:51 PM
      0 responses
      14 views
      0 likes
      Last Post strategist007  
      Working...
      X