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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      571 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      548 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      549 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X