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

NinjaTrader.Client.dll LastPlayback function changing time.

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

    NinjaTrader.Client.dll LastPlayback function changing time.

    Hello.

    I am using NinjaTrader.Client.dll library for sending data to NT7, and I have some problem. I send data from file, and how we can see there no data with time 9:59:59, but NT7 have it. And I see, that sometimes NT7 subtract 1 second (not only in the first ticks). When I debug my "sender", I see that time is correct. When and why time changing? This bug happen some times. I mean with same data, same time, same computer it can happen and not.
    Attached Files

    #2

    Comment


      #3
      But it not the same problem. I use time without any conversions. In the text file I have date and time in "yyyyMMddHHmmss" format. And I have no problem with value. And I use NT7 and I need help in NT7 platform.

      Comment


        #4
        Та же самая это проблема. Некорректно работает функция LastPlayback.
        Решения пока что нет.

        Comment


          #5
          Hello,

          Thank you for the post.

          The platform would use the PC time, it is possible that an external application has a different time than when the platform gets the tick and timestamps it. As this is not a generally supported subject, you may or may not be able to use the LastPlayback method instead of Last as has been mentioned. This would be an item you would need to try. You can also try syncing the PC clock, in case you have some timestamped information incoming and the PC is out of sync that may be one possibility.

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Jesse View Post
            Hello,

            Thank you for the post.

            The platform would use the PC time, it is possible that an external application has a different time than when the platform gets the tick and timestamps it. As this is not a generally supported subject, you may or may not be able to use the LastPlayback method instead of Last as has been mentioned. This would be an item you would need to try. You can also try syncing the PC clock, in case you have some timestamped information incoming and the PC is out of sync that may be one possibility.

            I look forward to being of further assistance.
            But my external application send timestamps from text file. I mean, that I read text file, get "20170101100000", and send it to NT7, but NT7 write to base "20170101095959". I repeat, I am not convert DateTime.ToString(), I use ready formatted timestamp in string format.

            Comment


              #7
              Anybody can help me?

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by bortz, 11-06-2023, 08:04 AM
              47 responses
              1,607 views
              0 likes
              Last Post aligator  
              Started by jaybedreamin, Today, 05:56 PM
              0 responses
              9 views
              0 likes
              Last Post jaybedreamin  
              Started by DJ888, 04-16-2024, 06:09 PM
              6 responses
              19 views
              0 likes
              Last Post DJ888
              by DJ888
               
              Started by Jon17, Today, 04:33 PM
              0 responses
              6 views
              0 likes
              Last Post Jon17
              by Jon17
               
              Started by Javierw.ok, Today, 04:12 PM
              0 responses
              15 views
              0 likes
              Last Post Javierw.ok  
              Working...
              X