Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Time and sales data Calculate on Price Change

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

    Time and sales data Calculate on Price Change

    Does changing the Calculate property on my indicator have any impact on Time and Sales? I'm guessing that OnMarketData is being triggered at all ticks regardless of the indicator property setting. I know T&S data is resource intense, but can it alone cause lagging charts?

    Am I correct in assuming that T&S would only be streamed once even though I may have it in an indicator used in multiple charts with the same instrument (just a different time frame)?

    #2
    Hello Chippy,

    Changing the Calculate setting can have a performance impact on any instrument subscriber threads that are subscribed to the same instrument, if the code running on that thread is resource intensive.

    OnMarketData() does update for every update, but it depends on the code being run on that event on how much of a performance impact that will have.
    The T&S example does not have a large impact, but only prints the values to the output window.


    Market updates are received received once, and this triggers an event to push the update for all of the subscriber threads on that instrument.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    75 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    289 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X