Using "Bars.Cache.Clear" to solve out of memory issues
Author: HappyLoser
Creation Date: 12/2/2008 4:05 AM
profile picture


I read the explanations in the WL Wiki about "Out of memory problems". So far so clear.

As one of the solutions, it is recommended there, to
"Call Bars.Cache.Clear at the end of your strategy to explicitly clear the internal cache that stores DataSeries and free memory".

Unfortunately, I am not able to find an explanation in the help guide. Can you please help me and show me, how to use "Bars.Cache.Clear" in a script?

profile picture


Including the call to Bars.Cache.Clear() after the trading loop should be enough, like on examples here, here or here.
profile picture


Thank you Eugene!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).