Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Anyway to turn off caching of certain indicator calls?

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

    Anyway to turn off caching of certain indicator calls?

    I have some indicators that are called frequently with different series and they are causing memory issues... I see that I can't save/edit the caching code at the bottom but is there any way to otherwise not have a particular instance of an indicator? I know this is a basic function but I am maxing out my 96gigs on a single backtest and rarely get it to complete more than 12 months.

    this is the code in question:

    Click image for larger version

Name:	Screenshot 2024-09-07 at 12.20.52 AM.png
Views:	64
Size:	429.4 KB
ID:	1317218
    Thanks in advance,
    Tony

    #2
    Hello tony_28217,

    There is not a way to modify how the platform caches indicators. If you are using all your ram that is likely due to the code being used, you would need to reduce your code to see which part is taking that much rm and then optimize the code to perform better.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Can you confirm if I null the indicator it will clear the cache?

      Comment


        #4
        Hello tony_28217,

        Setting a variable to null will not clear the cache, there is no means to interact with the indicator cache from NinjaScript.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by MiCe1999, Today, 07:19 AM
        0 responses
        4 views
        0 likes
        Last Post MiCe1999  
        Started by Mindset, Today, 06:09 AM
        0 responses
        7 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by reynoldsn, 02-28-2025, 06:44 PM
        6 responses
        66 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by MamaKB, 02-14-2025, 03:38 PM
        9 responses
        70 views
        0 likes
        Last Post charlesthomas  
        Started by llanqui, 03-05-2025, 06:03 AM
        17 responses
        116 views
        0 likes
        Last Post bltdavid  
        Working...
        X