How to make 2 MT4 EAs to communie on different platforms - Page 2
Page 2 of 732 FirstFirst 12
Results 11 to 18 of 318

Thread: How to make 2 MT4 EAs to communie on different platforms

  1. #11
    Quote Originally Posted by ;
    Using files to communie between two processes is a last resort if nothing else is inside your skill set. The appropriate way is with named pipes (on exactly the same system ) or sockets if on a network.

    Another possibility is MTBRidge. The description sounds good, that is as much as I know about it.

    http://itvex.com/
    Thank you. I will check this one too.

  2. #12
    Quote Originally Posted by ;
    Yes.
    ... I suggested the easy solution.
    Your proposal it seems real simple, and that I can use it for what I need.
    I stumbled to learn programming using mql4, what in the beginning looked like something quite complied, today it looks simple, but I do not actually have a notion how different softwares communie with one another, so I thought that there might be a fantastic step-by-step guide how to build bridge... or anything like this.

  3. #13
    The simplest would be to write to a csv file in experts/files for both brokers, then create an app that reads both documents every x secs and the app will process the information and create a 3rd file that can subsequently be read using mql code.

    Another method is to write a DLL in C .

    You could also use the registry, which is exactly the same method as writing to documents but you are using RAM.

    Read 7bit's post in the base of http://forum.mql4.com/34987; he's an ace:

    Quote Originally Posted by ;
    I don't believe you want a RAM diskdrive. Windows' disk (that is by default triggered for all non-removable press ) will cache the write and make it in the same time available for read operations that will then be served straight from the cache. The composed information should be available immediately after flush().

    Flush() will write to the cache, not the disk, so it is fast. The disk is one level deeper and transparent to all userland file works (The disk behaves just like it *is* the disk towards all layers over it,...

  4. #14
    Quote Originally Posted by ;
    The easiest would be to write to a csv file in experts/files for both brokers, subsequently make an app that reads the two files every x secs and the app will process the information and create a 3rd file that can subsequently be read using mql code.
    :
    which will not work. MQL4 file I/O is restricted to writing / reading files in its own workspace that's the experts/files folder to the platform. This is to prevent malicious code. It can be overcome with a windows DLL, however if you are going to that much effort, you need to consider better ways. The OP got it right when he called it a bridge.

  5. #15
    Quote Originally Posted by ;
    Hi,

    How can I create 2 EAs to speak with each other? 1 EA working on broker1, other running on broker2? Do I send/receive variables between them?
    Do I need to 3rd party bridge?
    Take a look at this supplied by Metaquotes: http://forum.mql4.com/54147

  6. #16
    Quote Originally Posted by ;
    The simplest is to write to a csv file in experts/files for both brokers, subsequently create an app that reads the two documents every x secs and the app will process the information and then create a 3rd file which can subsequently be read using mql code.
    I attempted with cvs, and file synchronization before, but did not work as I would like.

    Quote Originally Posted by ;
    The following method is to write a DLL in C .
    I have to learn C programming for that, and I really don't know what level of C programming knowledge is sufficient to create this type of thing.

    Quote Originally Posted by ;
    it is also possible to use the registry, which is just the exact same way as writing to documents but you're using RAM.
    Probably I'll use registry.

    Quote Originally Posted by ;
    Read 7bit's post in the bottom of http://forum.mql4.com/34987; he's an ace:
    Thank you, I'll check.

  7. #17
    Quote Originally Posted by ;
    Have a look at this Supplied by Metaquotes: http://forum.mql4.com/54147
    Thank you.

  8. #18
    Quote Originally Posted by ;
    Hi,

    How can I make 2 EAs to communie with one another? One EA working broker1, other running on broker2? How can I send/receive factors between them?
    Do I want to 3rd party bridge?
    Either you construct your own bridge or you want a 3rd party bridge.

    Your own bridge: A document that's used by both EAs.

    3rd party: gooogle Permvar, it is from fx1.net, it has all you need.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.