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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    557 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X