Hello everyone,
I want to write my own trade copier, because all available paid and unpaid do not meet my needs.
What are the basic principles of making trade copier EA?
We have 3 accounts live/demo with 20 traders each varying just the lot size. We have full acess to those accounts login/pass/investor pass.
Is it possible to remotely login to those accounts and copy trades to my account using EA? Or what are the critearias? because i haven't found
any mql4 file of a trade copier to look inside.
Thanks for help, lets make a trade copier EA :)
![Simple Copier Simple Copier](/i/code/expert.png)
- votes: 25
- 2015.11.16
- Vladimir Tkach
- www.mql5.com
https://www.mql5.com/en/code/14085
Thanks a lot, but it transfers trades only within local pc right? How can it be done remotely? My first thought is to locate the file on some website and using webrequest() do write/read file.
Sockets but this has to coded in another language than mt5 I guess
There are tries to connect mt4 to a socket - but finally I gave up :(
https://www.mql5.com/en/forum/149633
https://www.mql5.com/en/forum/151932
Those are normally in one way connections. A two way connection therefore needs two socket-channels.
FIX has a socket channel for sending orders and another channel to receive quotes and confirmations ...
And the socket-server - the one who listens/waits for a connection blocks until it got something - like OnTick() nothing happens until a tick was sent.
A dll-solution is possible but not needed. You can e.g. use a PowerShell-Script as server or client ...
![Client-Server-Socket functions for mt4 >= Build 600 - MQL4 forum Client-Server-Socket functions for mt4 >= Build 600 - MQL4 forum](https://c.mql5.com/36/8/client-server-socket-functions.png)
- www.mql5.com
There are tries to connect mt4 to a socket - but finally I gave up :(
https://www.mql5.com/en/forum/149633
https://www.mql5.com/en/forum/151932
Those are normally in one way connections. A two way connection therefore needs two socket-channels.
FIX has a socket channel for sending orders and another channel to receive quotes and confirmations ...
And the socket-server - the one who listens/waits for a connection blocks until it got something - like OnTick() nothing happens until a tick was sent.
A dll-solution is possible but not needed. You can e.g. use a PowerShell-Script as server or client ...
Thanks, i will have a look. Currently i am reading a solution regarding named pipes, but it is for mt5 so perhaps it can be adapted to mt4
https://www.mql5.com/ru/articles/115
Although it in Russian :)
![Реализация взаимодействия между клиентскими терминалами MetaTrader 5 при помощи именованных каналов (Named Pipes) Реализация взаимодействия между клиентскими терминалами MetaTrader 5 при помощи именованных каналов (Named Pipes)](https://c.mql5.com/36/8/realizaciya-vzaimodeystviya-mezhdu.png)
- 2010.07.01
- investeo
- www.mql5.com
NamedPipes are bound to one pc as there medium is a kind of file writing and reading!
so there is no way to use named pipes via web?
i found another article, https://www.mql5.com/en/articles/503 here it states that pipes can be used in the network but in mt5 at least...
![Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs Communicating With MetaTrader 5 Using Named Pipes Without Using DLLs](https://c.mql5.com/36/8/communicating-with-metatrader-5.png)
- 2012.10.15
- MetaQuotes Software Corp.
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everyone,
I want to write my own trade copier, because all available paid and unpaid do not meet my needs.
What are the basic principles of making trade copier EA?
We have 3 accounts live/demo with 20 traders each varying just the lot size. We have full acess to those accounts login/pass/investor pass.
Is it possible to remotely login to those accounts and copy trades to my account using EA? Or what are the critearias? because i haven't found
any mql4 file of a trade copier to look inside.
Thanks for help, lets make a trade copier EA :)