Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

clarify historical data and playback

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

    clarify historical data and playback

    can someone please clarify the following:

    [1] in historical import/upload for tick data, you can not specify if a tick is a bid or ask

    [2] in playback via the DLL, you can specify if a tick is a bid or ask (or last) by calling respective functions

    [3] there is no way to merge the playback into historical?

    #2
    Hello redartajnin,
    Thanks for your post and I am happy to assist you.

    1. Suffix your txt file with .Last or .Ask or .Bid to specify what data you want to import. For example if you want to import tick data for bid, and your instrument is ES 03-12, then the file name should read ES 03-12.Bid.txt
    2. There are specific fuctions for Bid/Ask/Last calls. Please refer here for more http://www.ninjatrader.com/support/h...?functions.htm. Unfortunately the dll interface is not supported.
    3. By merging if you mean to say that you want to save the data to the historical database, then yes the same can be done. In Control Center menu bar, go to Tools>Option, select the Data tab, and check Save chart data as historical.

    Please do let me know if I can assist you any further.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Many thanks for that, now two more questions,

      [1] can you playback the historical data as well?
      [2] if the data is stored in NT already what happens if it is playback via the DLL (save chart data as historical is turned on), will it replace the stored historical by the playback?

      Comment


        #4
        Hello redartajnin,
        1. Yes you can playback the historical data. To do this you would use the following method int LastPlayBack() which you can find information on that here:



        2. Current days data will not be replaced, and will append with the existing data. I would not recommend merging existing data with LastPlayBack and would choose one way or the other for backfilling your historical data.

        Please let me know if I can be of further assistance
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Joydeep View Post
          Hello redartajnin,
          1. Yes you can playback the historical data. To do this you would use the following method int LastPlayBack() which you can find information on that here:



          2. Current days data will not be replaced, and will append with the existing data. I would not recommend merging existing data with LastPlayBack and would choose one way or the other for backfilling your historical data.

          Please let me know if I can be of further assistance
          Dear Sir,

          What exactly is the function of LastPlayBack function.

          Further, you mentioned that you would choose one way or the other for backfilling your historical data. One way is using historical data panel and importing data manually. What are the other ways? Please help.

          Comment


            #6
            Hello shalabh,
            LastPlayback append historical data.
            Sets the last price and size for the specified instrument for use when synchronizing NinjaTrader playback with an external application playback. A return value of 0 indicates success and -1 indicates an error. The timestamp parameter format is "yyyyMMddhhmmss".



            The other way of backfilling historical data is by using the import feature (manually though). Please refer to our help guide to know more about it http://www.ninjatrader.com/support/h...?importing.htm
            JoydeepNinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Joydeep View Post
              Hello shalabh,
              LastPlayback append historical data.




              The other way of backfilling historical data is by using the import feature (manually though). Please refer to our help guide to know more about it http://www.ninjatrader.com/support/h...?importing.htm
              Thanks for reply.

              It's Gr8. i also thought that but.....

              I am trying to append the historical data using LastPlayBack. It is sending the price and updating them also but all at the current time. So i get a long candle there with day high as high and day low as low. What may be the error in code. Any suggestions please.

              Thanks.

              Comment


                #8
                Hello shalabh,
                Unfortunately that is expected.

                Take a scenario for example, the current PC time is 10 AM and the last bar in the chart is timestamped at 8 AM.

                If you append any data using the last playback function then please make sure the data is greater than 8AM. If you append any data prior 8AM (say you are trying to append data from 6AM) then the data from 6AM to 8AM will be collected by the Last bar in the chart and you will have one big bar.

                In such scenario you have to manually import the data using the Export feature.
                JoydeepNinjaTrader Customer Service

                Comment


                  #9
                  Oh...

                  That means that i can only backfill data between the last bar of existing data and the current system time. But in case i have data upto 8AM and then 9AM to 10AM. Now if i want to backfill missed data i.e. between 8AM and 9AM then it is not possible using LAstPlayBack. Hope my understanding is right....

                  Now i am presently using manual import of data using history manager and it is working fine. Is there anyway to do that using any function of NT from my code itself. If not then please try to add it in your next version.

                  Thanks for support and quick replies...

                  Comment


                    #10
                    Hello shalabh,
                    Yes, your understanding is right.

                    Unfortunately there are no supported codes to automate the import feature.

                    I will however send your feature request to development for future consideration.
                    JoydeepNinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Joydeep View Post
                      Hello shalabh,
                      Yes, your understanding is right.

                      Unfortunately there are no supported codes to automate the import feature.

                      I will however send your feature request to development for future consideration.
                      Thanks... Hopefully we will have something in next update...

                      Now i am facing another issue i.e. related to volume. If in any tick volumes are more than 33000 then NT then LastPlayBack is creating error. I think it is because this functions accept Integer as Volume/Size. But for small value future contracts, even if 4 lots are traded then volume becomes 400000. Is there any solution to this issue?

                      Thanks.

                      Comment


                        #12
                        Hello shalabh,
                        To assist you further can you please send a toy code* replicating the behavior to support[AT]ninjatrader[DOT]com

                        Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

                        I look forward to assisting you further.

                        *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
                        JoydeepNinjaTrader Customer Service

                        Comment


                          #13
                          Hi Joydeep,

                          It is simple. I can write here it self ..

                          I=LastPlayBack("ABB",345.50, 45000, "20120807131501")

                          This creates error. but this one works fine

                          I=LastPlayBack("ABB",345.50, 31000, "20120807131501")

                          Thanks.

                          Comment


                            #14
                            Hello shalabh,
                            Unfortunately I cannot replicate it and I can get the correct volume.

                            To assist you further may I know is your PC set to an non-US regional settings?
                            Attached Files
                            JoydeepNinjaTrader Customer Service

                            Comment


                              #15
                              yes. It is set to Indian settings.

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by mattbsea, Today, 05:44 PM
                              0 responses
                              1 view
                              0 likes
                              Last Post mattbsea  
                              Started by RideMe, 04-07-2024, 04:54 PM
                              6 responses
                              31 views
                              0 likes
                              Last Post RideMe
                              by RideMe
                               
                              Started by tkaboris, Today, 05:13 PM
                              0 responses
                              2 views
                              0 likes
                              Last Post tkaboris  
                              Started by GussJ, 03-04-2020, 03:11 PM
                              16 responses
                              3,281 views
                              0 likes
                              Last Post Leafcutter  
                              Started by WHICKED, Today, 12:45 PM
                              2 responses
                              19 views
                              0 likes
                              Last Post WHICKED
                              by WHICKED
                               
                              Working...
                              X