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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        150 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        302 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        243 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        345 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        174 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X