Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Caching indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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!

    #2
    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

    Comment


      #3
      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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      127 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      73 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      115 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      109 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      88 views
      0 likes
      Last Post CarlTrading  
      Working...
      X