Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Performance Optimization - loading multiple instances of an indicator
Collapse
X
-
Performance Optimization - loading multiple instances of an indicator
So I'm working on a system where I have multiple custom indicators, and they all call the Orderflow cumulative delta. Since OFCD is tickbased it takes a while to load. My question is, it seems the same data is loaded multiple time, once for the UI indicator, and also once per indicator that is using it in the code - so is there a way to optimize this so that it's only loaded once?Tags: None
-
Hello Magzor,
Indicators are only cached/optimized in NinjaScript when they use identical settings/data. For example if you called an SMA twice using the same parameters and data the second SMA would be the first cached instance. Only in that case would there be any kind of cache or optimization. If you use different settings or data for the indicators they all will need to load and process individually. The manually applied chart indicators are not part of your NinjaScript so those will additionally need to load on their own.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
561 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
325 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
547 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment