Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Find out the start/end date of an instrument in my database?

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

    Find out the start/end date of an instrument in my database?

    To find out the start/end date of an instrument in my database, I can open the “Historical Data” window and look.
    It seems to me that the name of the "ncd" files in the DB folder always (?) matches the values ​​in this window.
    Then I could use win32 functions and string manipulation to get that date via code.
    But, isn't there a better way to do this? A sure way? A NT function perhaps?
    What does the community and support suggest?​
    Thanks

    #2
    Hello,

    Thank you for your post.

    Can you explain what you mean by start/end date of an instrument?

    Do you mean the expiry? Or just what the earliest and latest historical data you have downloaded for the instrument is?

    Comment


      #3
      hey NinjaTrader_Gaby ,
      "the earliest and latest historical data you have downloaded for the instrument"
      thanks

      Comment


        #4
        Hello rafaelcoisa,

        There is no supported/documented function in NinjaScript to obtain this.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        553 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        100 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        543 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        546 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X