Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save and load Vector from disk #44

Open
rotem443 opened this issue Nov 23, 2018 · 3 comments
Open

Save and load Vector from disk #44

rotem443 opened this issue Nov 23, 2018 · 3 comments

Comments

@rotem443
Copy link

Hey,
I'm using the Vector with customized class, is there any way to save and load the vector to the disk?
Thanks

@dingmaotu
Copy link
Owner

Thanks for your interest. Currently there is no systematic way to serialize objects to disk. You have to do it by yourself. In the future, this might be added to the framework.

@rotem443
Copy link
Author

rotem443 commented Nov 23, 2018

Thanks for your interest. Currently there is no systematic way to serialize objects to disk. You have to do it by yourself. In the future, this might be added to the framework.

Thanks for the fast response.
What is the best way you can think about for implementing this for now?

(this is my problem - https://www.mql5.com/en/forum/291484#comment_9467524)

@dingmaotu
Copy link
Owner

Hi, you can check out the serialization format supported in the mql4-lib:

  1. CSV file is the simplest, you can use CsvFile class in Util/File.mqh
  2. Format/Resp.mqh or Format/Json.mqh and save the result to a BinaryFile.

Json format is not production ready though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants