Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 tick data buffering

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

    NT7 tick data buffering

    I have the following situation for a question:

    As you know, when markets are a little illiquid, sometimes can experience radical or abrupt price changes, easily in more than one of the instruments TickSize. So, imagine you have an Algo that works with tick data, I mean tick by tick, then suddenly, you receive a new tick that is actually, let's say, 10x the normal TickSize; so if you had an Algo that needs to process one TickSize change, what if:
    - I set a "while Loop" to process all ticks between the abrupt change.....What would it happen with all new Tick data, is there any kind of buffer to wait when the While-Loop is finished?

    I'm trying to test it, but I must be missing something.

    Thanks

    #2
    Hello pstrusi,

    Your logic would loop from the price of the last received tick price up to the price of the new tick incrementing by the TickSize?
    I would suggest a for loop, but you could do this in your logic.
    This wouldn't change the real-time or historical data, but you can change your calculations for every tick size increment between the tick prices..
    Running the for loop (or while loop) would be thread blocking so everything would wait until your loop is complete.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you ChelseaB for your suggestion and for confirming that the real-time tick data would be supported by some buffer, so I can set my loop and do all calculations before processing new real-time data.

      Kind regards!

      Comment

      Latest Posts

      Collapse

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