Hello,
I'd like to store some information about open orders, closed orders, their relation to each other. Mostly for money management but also it's a part of my strategy. But it seems that in MQL5 it's not an easy thing to do. Normally I would go for some database, or a JSON file. Any SQL database would be perfect.
I don't want to parse text files, as I might want to modify records etc. I image it can get messy very quickly. Could you suggest anything? What do you use to persist some information that can be later modified?
Cheers
It is possible to run a webserver with MySQL for example and do your administration there using webrequest.
It is possible to run a webserver with MySQL for example and do your administration there using webrequest.
You mean use a database that exposes REST endpoints? That'd be perfect! I didn't know about webrequest, thanks!
You mean use a database that exposes REST endpoints? That'd be perfect! I didn't know about webrequest, thanks!
You can dress the Christmas Tree any which way you like. External ommunication without DLL's, webrequest is probably the only.
If you don't mind using DLL, this https://www.mql5.com/en/articles/2599 could be an alternative option to communicate.

- 2016.07.20
- o_o
- www.mql5.com
Parsing text files has nothing to do with modifying them. Read the file into your data structure, modify the structure, write the structure.
I'd like to store some information about open orders, closed orders, their relation to each other.
I write this type of data using CSV to a flat file. CSV is readily opened by OpenOffice Calc (or Excel if you prefer).
I can then use macros to highlight or otherwise massage the data.
I can also use other tools, like gnuplot, to show me good things.
I don't want to parse text files, as I might want to modify records etc. I image it can get messy very quickly.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello,
I'd like to store some information about open orders, closed orders, their relation to each other. Mostly for money management but also it's a part of my strategy. But it seems that in MQL5 it's not an easy thing to do. Normally I would go for some database, or a JSON file. Any SQL database would be perfect.
I don't want to parse text files, as I might want to modify records etc. I image it can get messy very quickly. Could you suggest anything? What do you use to persist some information that can be later modified?
Cheers