• 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 SharonSS, Today, 07:21 PM
      0 responses
      2 views
      0 likes
      Last Post SharonSS  
      Started by bmccoard, Today, 06:48 PM
      0 responses
      5 views
      0 likes
      Last Post bmccoard  
      Started by omololu, Today, 05:10 PM
      0 responses
      10 views
      0 likes
      Last Post omololu
      by omololu
       
      Started by fut_practic, Today, 05:01 PM
      0 responses
      8 views
      0 likes
      Last Post fut_practic  
      Started by persoguillermo, Today, 04:38 PM
      0 responses
      4 views
      0 likes
      Last Post persoguillermo  
      Working...
      X