MQL4 memory free functions?

 

I am running EA to metatrader 4, and I saw that my terminal's memory increasing continuously.


My terminal freezes occasionally.

I have to restart terminal when freezes.


Is there any mq4 functions that can free memory?

 
  1. Why did you post your MT4 question in the Root / MT5 EA section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. Memory grows because bars on chart grows and that grows indicator buffers. Set Tools -> Options (Control-O) -> Chart -> Max bars in chart to something reasonable (like 5K.)