It's really hard to answer without a test case to reproduce the issue. Unless someone else experimented something similar which is not my case.
Some days ago I worked with 100.000 passes using Frames without a problem, but I probably had less data sent with a frame.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to record the state of an Indicator over the time of a backtest in MQL5.
I am running the optimization on something like 200k params.
I am recording the "Side Changes" of an indicator with a timestamp. So for example if an Indicator crosses from <0 to >0...
So the actual values to be stored are datetime and an int with values of [-1, 0, 1]
I am storing the side changes in my signal class as:
class member
on every side change I call this
OnTester calls this
OnTesterDeinit calls this
When I run this the Memory on my PC goes up VERY quickly and I reach 40GB in like 10 Minutes.
I noticed that on the first run the memory is somewhat OK but once there is any optimization cache somewhere around the memory goes UP to max out my ram and then my PC crashes due to high memory pressure.
The hight ram usage stays up even after the Optimization process has finished and only gets fried if I close MT5.
I have a Ryzen 2700X and 64GB of RAM so memory should not be a problem.
Where are the Frames allocated?
Should I manually deallocate the frames or the array that FrameNext returns? (
Is some kind of Frames cache using up my memory?
How do I reset this cache?
I tried to delete the cache files but this does not reset the effect.
Tester/cache/*
MQL5/Files/Tester/*