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
Hello. Could you please tell me. Why do orders and trades have a ticket but positions don't?
And what is the difference between a ticket and an identifier?
RTFM
RTFM
Oh... It's too big to find necessary information there quikly
Calling imported functions from ex5 library.
Explain please. Read https://www.mql5.com/ru/docs/runtime/imports
How are ex5 libraries loaded?If the library is already loaded (e.g. by another Expert Advisor and even from another client terminal running in parallel),
And still: how to make only one instance of ex5 library be loaded.
And further EAs will connect only to this instance.
I have made a library.
I have created an Expert Advisor, which includes the library.
1. Not a single Expert Advisor is loaded. The terminal.exe process is 91,000 KB.
2. Connecting one Expert Advisor to EURUSD. Terminal.exe process -- 131 000 KB. (+41 MB).
3. I connect the same Expert Advisor (additionally) to GBPUSD. terminal.exe process - 171 000KB.(+41MB).
How by means of MT5 only (through classes or libraries or scripts, EAs, etc.) create access to specific data (that will dynamically change) jointly?
PS// Tried to do both
Anyway, a different instance of the library is loaded for each EA.rlx:
It still loads a different library instance for each EA.Still: How can I make only one instance of ex5 be loaded.
And subsequent EAs will only connect to this instance.
I have made a library.
I have created an Expert Advisor, which includes this library.
1. Not a single Expert Advisor is loaded. The terminal.exe process is 91,000 KB.
2. Connecting one Expert Advisor to EURUSD. Terminal.exe process -- 131 000 KB. (+41 MB).
3. I connect the same Expert Advisor (additionally) to GBPUSD. terminal.exe process - 171 000KB.(+41MB).
How by means of MT5 only (through classes or libraries or scripts, EAs, etc.) create access to specific data (that will dynamically change) jointly?
PS// Tried to do both
It still loads a different library instance for each EA.Maybe it can be implemented with global terminal variables. That is, both instances use global terminal variables for calculations.
I think global terminal variables can help you, or write the data to a file
Thanks for the suggestion.
Maybe there are other ways.
Thanks for the suggestion.
Maybe there are other ways.
I think there are no other ways of using the same data by different Expert Advisors, scripts and indicators
I wish I could.
For example, I made up such a variant. It cannot be implemented through global variables.
advisor.ex5
trader.ex5
Passing the array!!! structures!! to another Expert Advisor that fills this array.
This code works correctly. BUT trader.ex5 does not link to an already running advisor.ex5, but creates another instance ofadvisor.ex5.