Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.JesseNinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ageeholdings, Today, 07:43 AM
|
0 responses
7 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment