Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Caching indicator
Collapse
X
-
Caching indicator
Hi I have some custom indicators that I have developed. They are quite heavy in terms of computation. What I have observed is that if I load on a chart one indicator, then I remove it, and finally I load it again (on the same chart, with same indicators settings, everything the same) the indicator recomputes everything from scratch every time. Is there a way to cache the computation that was done in a way it can be reused across several sessions?
Thank you!Tags: None
-
Unfortunately you can't. That's my problem also. If i load 2-3 resource heavy indicators on a chart, and not to mention if i use a chart with tick replay, and then simply want to modify one input at one of the indicators, or just remove one indicator, they all start reloading again, taking up unnecessary time and resources. I also contacted Ninjatrader about this, and there is nothing that can be done. Even the good old metatrader is better at this point, there when you want to change an indicator, it only reloads that single one, not each. So it is much much more resource friendly
-
I am not a programmer so I cannot explain in detail but you can keep the cache if you render via onrender/SharpDX. Three techniques that I used (with help of AI) are bar skipping, rendering only visible parts in onrender, and keeping cache on reload. Indicator reload time shrunk from 18 seconds to only a few.Last edited by MiCe1999; 03-23-2025, 06:57 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by WilsonFoster, Yesterday, 11:35 PM
|
0 responses
6 views
0 likes
|
Last Post
![]()
by WilsonFoster
Yesterday, 11:35 PM
|
||
Started by MiCe1999, Yesterday, 09:26 PM
|
0 responses
9 views
0 likes
|
Last Post
![]()
by MiCe1999
Yesterday, 09:26 PM
|
||
Started by connorlmarble, Yesterday, 08:25 PM
|
0 responses
10 views
0 likes
|
Last Post
![]() |
||
Started by algospoke, 02-20-2025, 08:12 PM
|
7 responses
90 views
0 likes
|
Last Post
![]()
by MiCe1999
Yesterday, 07:13 PM
|
||
Started by MiCe1999, Yesterday, 05:55 PM
|
0 responses
11 views
0 likes
|
Last Post
![]()
by MiCe1999
Yesterday, 05:55 PM
|
Comment