You can probably get some hints from here: https://www.mql5.com/en/docs/standardlibrary/cobject/cobjectsave
Documentation on MQL5: Standard Library / Basic Class CObject / Save
- www.mql5.com
Save(int) method in CObject class always returns 'true' and does not perform any action. If you want to save the data of a derived class in a file, the Save(int) method should be implemented.
Seng Joo Thio:
You can probably get some hints from here: https://www.mql5.com/en/docs/standardlibrary/cobject/cobjectsave
Thank You Sir.
You can probably get some hints from here: https://www.mql5.com/en/docs/standardlibrary/cobject/cobjectsave
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
Greetings of the day!
I have an EA in which there are too many objects. OnDeint() I am trying to save current status of all objects which is taking more than 5 seconds resulting in "Abnormal Termination".
So I thought of creating a HashMap where I will be saving status of all object OnChartEvent().
Now when I de-initialize, I want to save the object of the HashMap. And I want to retrieve it once I reattach it.
So, can we import/export an object in mql5 ? If yes then how?