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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        29 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        17 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        9 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        15 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        18 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X