Hello, my target is to save from Expert Advisors two different sets of information in order to work with that data offline.
To do that, I used FrameAdd to save the data. Having two different arrays I used two different IDs:
I noticed that later I was not able to retrieve part of the data I previously saved with FrameAdd. To debug, I took example from Alain Verleyen's code:
It works fine for the first data sets - from a certain point in advance I see the following:
So I am not able to retrieve part of the data I previously saved with FrameAdd.
What I checked so far is that neither FrameAdd nor FrameNext return errors.
I noticed also that file FusoNewConf.EURUSD.H1.0.mqd (where the frames are saved) grew up to 5 GB.
Any clue please? Did I save too many data? Are there any constrains I'm not aware?
Thank you in advance
You need to use a loop :
while(FrameNext(pass,name,id,value,data)) { ... printf("%s : new frame pass:%llu name:%s id:%lli value:%f",__FUNCTION__,pass,name,id,value); } if(_LastError!=0) printf("Error #%i with FrameNext",GetLastError());
For anyone who can't get their Frameadd/Framenext code to work or output print statements in OnTesterPass() then make sure you don't have to many chart windows open. I couldn't get anything to output until I cleared all the open charts using Alt-W.
Now it works as intended.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
To do that, I used FrameAdd to save the data. Having two different arrays I used two different IDs:
I noticed that later I was not able to retrieve part of the data I previously saved with FrameAdd. To debug, I took example from Alain Verleyen's code:
It works fine for the first data sets - from a certain point in advance I see the following:
So I am not able to retrieve part of the data I previously saved with FrameAdd.
What I checked so far is that neither FrameAdd nor FrameNext return errors.
I noticed also that file FusoNewConf.EURUSD.H1.0.mqd (where the frames are saved) grew up to 5 GB.
Any clue please? Did I save too many data? Are there any constrains I'm not aware?
Thank you in advance