Hello to Everyone,
Is possible to share info between experts?, for example an array?
Thanks in advanced!
The most common and easiest way to share data between EAs (or Indicators, Scripts, etc.) is via Global Terminal Variables, but they only store floating point (double) data. This works for both MT4 and MT5.
Another common way to allows for any data type or quantity to be shared as by sharing files, be they text or binary files, allow for data of any type or length to be shared. This works for both MT4 and MT5.
In MT5 (only) you have a few more options pre-built into MQL5, like the use of Databases (such as SQLite) or Sockets (which can also be used for EAs running on different machines on the network).
There are probably a few other options, like using DLL calls, and maybe even other methods that I have not even thought about.
So, in essence, there are many options available.
I will like to try SQlite!
Forum on trading, automated trading systems and testing trading strategies
SQLite in MQL5: New Features and Performance Testing
Renat Fatkhullin , 2019.12.07 11:35
Enough blatant nonsense about "killing SSD" from narrow-minded users to distribute.
No, these are file databases - they can be exchanged, but it is risky to simultaneously access from different experts because of the potentially exclusive access with simultaneously open databases.
Databases opened "only in memory by the DATABASE_OPEN_MEMORY flag" are available only to a specific program and are not shared with anyone.
Scopes of databases:
Please enable the necessary setting in your browser, otherwise you will not be able to log in.