Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Performance Optimization - loading multiple instances of an indicator

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

    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?

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

    Comment


      #3
      Thanks for the reply Jessy! Very helpful. Since I'm using the same settings for all my indicators when they load the Orderflow indicators, I assume it's only loading once which is perfect. (not counting the ui instance like you mentioned)

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      574 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      332 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
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X