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:	109
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, 05-11-2026, 05:56 AM
        0 responses
        27 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        183 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        335 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        260 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X