• 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

NT8 Strategy - Get Futures current contract

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

    NT8 Strategy - Get Futures current contract

    NT Team

    In an NT8 strategy, it is possible to get the instrumentName of the current futures contact to use as a parameter AddDataSeries?

    For example, where the primary dataSeries is "^SP500", the associated futures contract is "ES". Is it possible to retrive the current contract "ES 12-16" to feed into
    Code:
    AddDataSeries("ES 12-16", Data.BarsPeriodType.Minute, BarsPeriod.Value);
    Shannon

    #2
    Hello Shannon,

    There isn't an association between the SP500 index and the ES future.

    No, there wouldn't be a way to do this. (You could make a set of if statement switches to match specific instruments and add a secondary instrument when that primary instrument is loaded)
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NinjaCustomer, Today, 10:06 AM
    3 responses
    7 views
    0 likes
    Last Post NinjaTrader_JoshG  
    Started by crabman777, Today, 09:52 AM
    4 responses
    16 views
    0 likes
    Last Post crabman777  
    Started by Arkadiy_B, Today, 06:43 AM
    0 responses
    4 views
    0 likes
    Last Post Arkadiy_B  
    Started by leontancfa, Today, 06:09 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by soulfx, 12-01-2017, 08:44 AM
    3 responses
    1,023 views
    0 likes
    Last Post NinjaTrader_EricB  
    Working...
    X