![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
The questions left as I see it are:
Lets say we have a super class with private members, which can be accessed through protected methods by the subclass -
We need to save/load those too.
Which means - the Save method on class B will have to call the super class Save to serialize all the ancestors as well.
This is relatively easy.
2. Do we save each object in a different file, or all the objects in the same file?
If it's on a different file - this raises the question - how will we distinguish different objects of same class?
Let's say we save an array of objects (lines) implemented with CArrayObj - and another collection of orders also implemented with CArrayObj - then we have to give each collection a file name that never changes.
If we use one file name for all objects - still we have the problem of knowing which CArrayObj serialization belongs to which collection - the lines or the orders?
3. What about embedded objects? If I have an order for instance, which has an internal object like trendline for stop or take profit or whatever? how can this connection be maintained between the objects saved/loaded?
If they are in different files or within the same file.
because there can be many orders saved - each with it's own line.
The last two problems are the the hard part to solve IMHO if we want a methodology to save/load systems.
Appreciate any thoughts on that.