Announcement

Collapse
No announcement yet.

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 sjsj2732, Yesterday, 04:31 AM
                0 responses
                33 views
                0 likes
                Last Post sjsj2732  
                Started by NullPointStrategies, 03-13-2026, 05:17 AM
                0 responses
                286 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                284 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                133 views
                1 like
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                91 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Working...
                X