• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Import Historical Data from Code

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

    Import Historical Data from Code

    Hi,

    Is there any way to import historical data specified by an instrument symbol map (rather than its name) programatically from within a NinjaScript?

    #2
    Hello Zeos6,

    Thanks for the post.

    There is not a supported way to access the symbol mappings for instruments. For historical data to be readable in NinjaTrader, it must be imported from the user interface because importing converts a comma-separated .txt file to a special format, so that would not be possible through NinjaScript.

    Please let me know if I may assist further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thanks for the reply ChrisL.

      Just one more item. Since the Bars object represents the data in the historical repository, is there a programming way we can see what data is actually in the repository, and can we assign the Bars object to different data in the repository?

      Comment


        #4
        Hello Zeos6,

        Thanks for the follow-up.

        The only way to load additional data would be to use AddDataSeries()

        https://ninjatrader.com/support/help...dataseries.htm

        The data you need must be determined at compile time since the parameters of AddDataSeries must be hardcoded and not reliant on other properties.

        Some pure .NET framework would need to be used to access the ..\Documents\NinjaTrader 8\db directory and do computations on the data. Keep in mind one would need to decipher the hex form of historical data that is stored in .ncd files.

        Please let me know if I can help further.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by escobar63, Yesterday, 05:06 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by Brutus, Today, 06:00 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by phesi, Today, 03:36 AM
        2 responses
        6 views
        0 likes
        Last Post phesi
        by phesi
         
        Started by Guru73, Today, 01:35 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Marco  
        Started by Maxwell123, Today, 12:34 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X