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 Mindset, 04-21-2026, 06:46 AM
|
0 responses
57 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
78 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
39 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
101 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
61 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment