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:	99
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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        81 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        64 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        66 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        55 views
        0 likes
        Last Post CarlTrading  
        Working...
        X