• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can Ninjascript AddDataSeries reference a symbol universally

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

    How can Ninjascript AddDataSeries reference a symbol universally

    How do I code Ninjascript AddDataSeries to reference a symbol without referencing its expiration date so it rolls over without code change.

    #2
    Hello ProfitPilgrim,

    Thanks for your post.

    You can use an overload that does not use a string to describe the instrument name, or you can use null for the instrument name to use the instrument of the primary data series. This is noted in the Warnings section of the AddDataSeries documentation page. I've requested that this gets moved to Tips so it is easier to find.

    Publicly available AddDataSeries documentation can be found here - https://ninjatrader.com/support/help...dataseries.htm

    If you are adding additional data series of other futures contracts, the full expiry must be used.

    Please let me know if you have any additional questions.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Czarek, Today, 08:34 PM
    0 responses
    1 view
    0 likes
    Last Post Czarek
    by Czarek
     
    Started by stasha, Today, 12:49 PM
    0 responses
    11 views
    0 likes
    Last Post stasha
    by stasha
     
    Started by denalek2419, Today, 10:25 AM
    3 responses
    26 views
    0 likes
    Last Post denalek2419  
    Started by jrp2099, Today, 11:20 AM
    0 responses
    2 views
    0 likes
    Last Post jrp2099
    by jrp2099
     
    Started by jonbennett, Yesterday, 04:01 PM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X