Hello,
I have a function using the iATR method.
My function is being called once per bar onTick();
I noticed when backtesting that my RAM gets filled up within a few seconds and my Windows freezes.
If I comment-out the last line (IndicatorRelease) then the problem resolves.
Why is that?
Change atrHandle to be a global variable and create the handle only once in OnInit() function,
And move the IndicatorRelease to your DeInit() function.
Hello,
I have a function using the iATR method.
My function is being called once per bar onTick();
I noticed when backtesting that my RAM gets filled up within a few seconds and my Windows freezes.
If I comment-out the last line (IndicatorRelease) then the problem resolves.
Why is that?
search mql documents. There are examples how to do this.
the behaviour you have described is to be expected.- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I have a function using the iATR method.
My function is being called once per bar onTick();
I noticed when backtesting that my RAM gets filled up within a few seconds and my Windows freezes.
If I comment-out the last line (IndicatorRelease) then the problem resolves.
Why is that?