Send and receive variables to different accounts/terminals
-
I am currently using my EA in a master terminal and using copytrading platforms to copy the trades to a slave terminal. However on the master platform, it can not retreive data from the slave, for example, account balance or equity. Is there a way to communicate those values into a variable and send it to the master side? Also I keep these two open on the same vps, so anything local can work too. Any ideas?
-
I know it is possible, but I'm afraid I don't know how. If both master and slave terminals are installed on the same VPS, both share part of the drive paths to any of of them. You will need a programmer to tell you. Maybe jstap can help, here?
-
thank you
-
You're welcome.
-
same VPS so basically the same computer... you can use a terminal variable (global) and it will be saved onto a shared folder, that you can read from another.
-
@jstap Just curious. Are terminal variables stored into the 'Common' folder that is available on all installed MT5 platforms in your computer? If not, in which folder?
-
been a long time since I looked, but I'm pretty sure they are saved in the common folder
~

-
Thank you.

-
@jstap that's good to know, but can you automatically put account balance into the global variable in fxdreama. I already do it manually, I'm looking for an automated way.
-
-
@jstap Ive use the "terminal variable" block and I can see the global variable on the platfrom via F3, however it does not go to the common folder. It goes to its own folder in appdata. Anyway to make it go into common?
-
the easiest way is to save it on 1 terminal, then read it on another, F4 will give you a list of saved global variables. Is easier to read through your terminal rather than finding where they're saved
-
@jstap thanks will give it a go