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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        44 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        54 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        34 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        95 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        57 views
        0 likes
        Last Post PaulMohn  
        Working...
        X