How to clear memory or remove variable used by indicator

To add comments, please log in or register
Selvan
55
Selvan  

Dear sir,


1) I had created an expert advisor for me, when i run the expert advisors, Memory used by metrader is going on increasing and cpu usage is also going on and on

What is the Reason behind it and How to solve it,


Expecting your replay ,


Thank you sir

eevviill7
21219
eevviill7  
rewrite code
Carl Schreiber
Moderator
8151
Carl Schreiber  
If your EA (or script) calls again and again its indicators (iCustom(), iMa(), ...) with different parameter setups. E.g. 20 different setups of one indicator will start this indicator 20 times. And you can't free or remove this indicator or its memory unless the EA is removed.
William Roeder
19163
William Roeder  
SELVAN: Memory used by metrader is going on increasing and cpu usage is also going on and on
What is the Reason behind it and How to solve it,

  1. Your indicator is broken. Fix it.
  2. There are no mind readers here, we can't see your broken code.
jaffer wilson
1405
jaffer wilson  

Your bar limit is set to unlimited: 

You need to set it to 10000 or anything else. Even can select from the list.

It will work.

William Roeder
19163
William Roeder  
jaffer wilson: Your bar limit is set to unlimited:

That doesn't fix anything, it will just hide the problem.

Do you really think the OP is still waiting after three (3) years? Don't resurrect old threads without a very good reason.

To add comments, please log in or register