Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Futures - exact expiration date (dd.MM.YY) for strategy

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

    Futures - exact expiration date (dd.MM.YY) for strategy

    Hello all,

    I would like to access the exact expiration date (dd.MM.YY) of a futures contract as part of a strategy. Is there the possibility in NT8?
    My understanding is that Bars.Instrument.MasterInstrument.GetNextExpiry only includes month and year?!

    Thanks a lot,
    Chris

    #2
    Hello HGXTrader,

    Thanks for your post.

    This is not documented but will work, Print(Instrument.MasterInstrument.GetNextRolloverD ate(Time[0]).ToString());



    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Great, Thank you very much!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by schmidtbc16, Today, 03:36 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by RT001, Today, 03:25 PM
      2 responses
      15 views
      0 likes
      Last Post RT001
      by RT001
       
      Started by mbrandau, Today, 01:58 PM
      5 responses
      37 views
      0 likes
      Last Post mbrandau  
      Started by remcovdmeulen, Today, 02:15 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by gbrad, Today, 09:57 AM
      7 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X