Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Export in a real-time

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

    Export in a real-time

    1. I save tick data by "File.AppendAllText(path, ohlc)"
    2. Connection with server lost.
    3. After 5 minutes - connection is restored.
    4. How do I add to the file tick data for these 5 minutes?

    Sorry my google-english...


    #2
    vladko,

    Unfortunately you will not be able to unless you have some algorithm that knows exactly how much time you've missed and how many bars back to go to retrieve. It becomes a mess. Instead why don't you try using the Tools->Historical Data->Export tool to export your tick data?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      I need real-time export...

      Suppose I have an algorithm that knows exactly how much time has passed. How to I get value of hicstorical tick?

      Comment


        #4
        You only can if you are on a 1tick chart. Otherwise you cannot. Even if you are on a 1tick chart. You still need to reload your historical data to retrieve missing data. You then need to check your written out file to ensure you don't write duplicate entries. You can easily see how this gets messy. Unfortunately I cannot provide much more support for this. Good luck.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Thanks......

          Comment


            #6
            Originally posted by NinjaTrader_Josh View Post
            vladko,

            Unfortunately you will not be able to unless you have some algorithm that knows exactly how much time you've missed and how many bars back to go to retrieve. It becomes a mess. Instead why don't you try using the Tools->Historical Data->Export tool to export your tick data?
            Is it possible to include ask & bid fields in exporting tick data? The default format doesn't seem to include that info.

            Thanks.

            D.

            Comment


              #7
              D,

              Unfortunately not. Thank you for the suggestion. I have forwarded it to development.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Josh View Post
                D,

                Unfortunately not. Thank you for the suggestion. I have forwarded it to development.
                Thank you, Josh. A sample output format that can work may look like this:

                Symbol, Date, Time, TickPrice, TickVolume, BidPrice, AskPrice
                ---------------------------------------------------------------------
                ESM9,20090324,13:30:00,803.25000,57, 803.25000, 803.25000

                D.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by itrader46, Today, 09:04 AM
                0 responses
                3 views
                0 likes
                Last Post itrader46  
                Started by timmbbo, Today, 08:59 AM
                0 responses
                1 view
                0 likes
                Last Post timmbbo
                by timmbbo
                 
                Started by bmartz, 03-12-2024, 06:12 AM
                5 responses
                33 views
                0 likes
                Last Post NinjaTrader_Zachary  
                Started by Aviram Y, Today, 05:29 AM
                4 responses
                14 views
                0 likes
                Last Post Aviram Y  
                Started by algospoke, 04-17-2024, 06:40 PM
                3 responses
                28 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X