Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Performance question

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

    Performance question

    I am trying to understand what, if any caching Ninja does with indicator data.

    I have a bunch of indicators I have created, and many of them rely on data from other indicators. So to date, rather than duplicate the code in each indicator, I am pulling in indicators inside of indicators.

    I am starting to notice some slowlness in performance, particularly now as I am pulling in some of these indicators into market analyzer columns.

    I am wondering if anyone can help me understand performance trade-offs of duplicating indicator code in one indicator vs. pulling in the indicator into another indicator. At times because of the way I want to display it, I am pulling the same indicator into multiple indicators.

    From a code perspective its obviously way easier to pull in an indicator inside of another and leverage it, but I don't quite understand the performance trade off on that.
    Last edited by ErikY; 10-09-2020, 09:20 AM.

    #2
    Hello ErikY, thanks for your post.

    Make sure you are instantiating your indicators at the class level rather than calling them to be constructed on the fly, see the section titled "Referencing indicator methods" on this page as an example:


    If you are able to use one of the default indicators with no performance issues, the custom indicators need to be optimized as much as possible. Duplicating indicator code would not be much different from instantiating your indicator within a host indicator. The performance is really going to boil down to what specifically is happening in your custom indicators.

    I look forward to assisting.

    Comment


      #3
      Got it, thanks.

      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
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X