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:	38
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, 06:49 AM
        0 responses
        7 views
        0 likes
        Last Post MiCe1999  
        Started by gaz0001, 12-12-2023, 09:36 AM
        13 responses
        282 views
        0 likes
        Last Post kevinenergy  
        Started by timwey, Today, 06:01 AM
        0 responses
        6 views
        0 likes
        Last Post timwey
        by timwey
         
        Started by patrickgeys7, Today, 06:01 AM
        0 responses
        2 views
        0 likes
        Last Post patrickgeys7  
        Started by ayham12, Today, 05:42 AM
        0 responses
        11 views
        0 likes
        Last Post ayham12
        by ayham12
         
        Working...
        X