Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How identify expiration dates

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

    How identify expiration dates

    Hi, I would like to know how could I identify expiration dates. I´ve read the use of "Instrument.expiry" but I think it returns the month but not the day.
    Want to develope an indicator that identifies these kind of dates. How could I do it, please?. Thank you

    #2
    Hello socoso,

    Thank you for your post.

    The Instrument.Expiry returns the expiration date in the following format:
    mm/dd/yyyy hh:mm:ss
    If you wish to test this try the following in your script and open the Output Window to see the output (Tools > Output window):
    Code:
    protected override void OnBarUpdate()
    		{
    			Print(Instrument.Expiry);
    For information on Instrument.Expiry please visit the following link: http://www.ninjatrader.com/support/h...nt7/expiry.htm

    Please let me know if you have any questions.

    Comment


      #3
      Thank you Patrick, is there any example on it?

      Comment


        #4
        Below is a link to an indicator which uses some of these concepts:

        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        127 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        85 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        105 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        86 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X