Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

fast replay using timer

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

    fast replay using timer

    while using a timer, how can i increase replay speed without lose timer events?

    the fastest replay speed i managed to achieve without loosing any timer event is x4 while timer interval was set to 250ms. beyond that some calls are missed.

    #2
    Originally posted by savekad View Post
    while using a timer, how can i increase replay speed without lose timer events?

    the fastest replay speed i managed to achieve without loosing any timer event is x4 while timer interval was set to 250ms. beyond that some calls are missed.
    Your timer is not synchronized to anything, so its being triggered in an accelerated environment is dodgy and unpredictable.

    Comment


      #3
      that's right and the only resolution that i know of is a suggestion made by Joydeep - conditioning code not to timer event but to OnMarketData() or other data-chage related events.

      thing is that even those are not 100% guaranteed to fire because data is not sure to arrive every second.

      any suggestions?

      Comment


        #4
        Originally posted by savekad View Post
        that's right and the only resolution that i know of is a suggestion made by Joydeep - conditioning code not to timer event but to OnMarketData() or other data-chage related events.

        thing is that even those are not 100% guaranteed to fire because data is not sure to arrive every second.

        any suggestions?
        No. the only possibility is to tie things to events that are internally synchronized by NT, such as any of its event-handlers. They are internally synchronized; just uniformly sped up if you accelerate MarketReplay, so all events will fire, pretty much each in individual sequence. Now, it is possible for the inter-event sequencing to change, but that should hardly change the results.

        Comment


          #5
          and what events do you think are best suited for my purpose?

          Comment


            #6
            Originally posted by savekad View Post
            and what events do you think are best suited for my purpose?
            The same ones that Joydeep suggested.

            COBC if set to false.
            OnMarketData().
            OnMarketDepth().

            Comment


              #7
              i guess that the closest i will get. thanks.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              649 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              370 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              109 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              574 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              576 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X