Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

table of Indicator loads?

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

    table of Indicator loads?

    Is there a resource that will enable me to understand what kind of load each kind of indicator might put on a processor? I can see that my workspace with just a few charts and no indicators runs with fewer problems than my workspaces with multiple charts, multiple instruments and multiple indicators. I realize that every situation is different, but are there some basic concepts that can help me understand how much I am asking a processor to accomplish?

    I am particularly interested in the difference between on bar close, on each tick, on price change, and time frames (30 tick bars vs 2,000 tick bars) when I am not using on bar close.

    I'm asking because I'm running a 13th Gen Intel(R) Core(TM) i9-13900H 2.60 GHz with 32G of Ram, and it can't keep up during strong NQ moves and my fan kicks into high gear. How can I determine if the problem is my custom indicators (or the number of them) or is it my data feed? It seems as though it runs better without indicators, but perhaps that is just a day or day with less volatility? Obviously, running two computers side by side (with and without indicators) is one way to suss out a data feed problem, but I only have one computer. Any ideas?

    Thanks, Berry

    #2
    Hello Berry,

    Thank you for your post.

    In general, the more calculations your script has to do, the more resource intensive it is. Therefore OnEachTick/OnPriceChange is going to be more intensive than OnBarClose. Similarly the data you are using will affect this too, 1 tick bars are more granular and more resource intensive to process than 1 minute bars.

    You could use the NinjaScript Utilization Monitor. The total time represents how much CPU time that NinjaScript class has taken since the Utilization Monitor has been opened. However, multiple instances of NinjaScripts will be grouped together. The NinjaScripts with the highest "Total Time" values are what are using the most processing time. Removing instances of these scripts, or setting them to use Calculate.OnBarClose can increase performance. Note that these times are relative and Total time will continue to increase as the platform is run.

    You can also find Performance Tips below.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    127 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    73 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    115 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    109 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    88 views
    0 likes
    Last Post CarlTrading  
    Working...
    X