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 sjsj2732, Today, 04:31 AM
        0 responses
        20 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        280 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        279 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        130 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        90 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X