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?
Rgds
Faik
    
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Including the call to 
Bars.Cache.Clear() after the trading loop should be enough, like on examples 
here, 
here or 
here.
    
 
    
        
    
    
        
    
    
        Size:  
    
        Color:  
    
    
 
    
        
     
    
        
    
 
    
    
    
        Thank you Eugene!
    
    
        
    
    
        
    
    
        Size:  
    
        Color: