Data Sharing between multiple MT4 terminals
I need to share data between several MT4 borkers terminals, real time, while running on the same computer. Is there any other way to accomplish this besides using a DLL to write and read to a common folder?
text files..... one terminal writes, while the other loops (checking for change in size)... accomplished with 2 EAs
problem with that
I've tried that with CSV's but each terminal application can only read and write to it's own Expert/Files/ folder. I want to share data between different metatrader applications. Is there a way to change the path structure so the EAs read/write elsewhere?
A DLL is by far the easiest way to accomplish this task.
What have you got against DLLs?
There is even one already written that allows you to write files to a directory outside the MT4 files directory:
Coder - Excellent! Thanks for the link. That is exactly what I need. The only thing I have against DLL is fear of the unknown.
Is there a way to use a DLL in an EA to access the DDE info from another brokers MT terminal application and bring it into the EA as a variable? The other brokers data could be examined while running the EA.
Did you try installing the 2nd MT4 into the "experts\files" directory of the first MT4 install? (Then try to access the file down a few levels?)
Interesting Idea. I'll try that. thanks
I would avoid DDE.. Its very Cludgy..If you did use DDE, you would prob get away with not having the hub though..Your DLL could in effect call DDE.
Instead, Id have a DLL on each side that polls the server, and gathers data from the the other EA.. In other words, Each EA on each side, has the other MT4's data. Each EA is polling the server.
BTW, this is all a EA can do, is poll.. Nothing can push to the EA, the EA must ALWAYS request using a DLL.
We do this a lot with some of our arbitrage strategies.
Broker arbitrage is what I'm sophmorically trying to research. Can you recommend any good reads on this, or maybe even any existing scripts or EAs. There was a thread on broker arbitrage here a while back but it died. Either they found it not profitable or they are too busy making money to post...
EDIT: eventually I was able to get it. Thanks for the useful link.
I would like to use volume data of a broker at another brokers' terminal (real time on 1M chart).. I have not much experience with DLLs. I can write, modify and use EAs and indicators in MT4.
I have read various threads about data exchange between terminals. There are comments about DLLs, Pipes etc. Actually I am able to export the data I want via an EA called 'testdataexport' which I downloaded from a thread here. but I am unable at the moment the import it to MT4 to an offline chart for example.
I would appreciate any help before I start to DLL tutorials.
© Forex Factory