Discussion of article "How to Copy Trading from MetaTrader 5 to MetaTrader 4" - page 14

 
scorp_sys:

mql4++ compiler

is this a new version for the receiver in mt4, with additional parameters?

It will be possible to do all this now on mutex
 

 Hi

do you excuse the ignorance but the files "Translator_positions " ed "Copyist_positions " where you they must be installed?.

 

Thanks 

 
awkozlov:

You can batch file. And across the network and within the company.

By the way file synchronisation for mega Maykosoftovsky recommend SyncToy 2.1 http://www.microsoft.com/en-us/download/details.aspx?id=1 5155

     string Path = TerminalInfoString(TERMINAL_PATH) +"\\experts\\files\\";
      if (  CopyFileA (Path+folder+".csv","c:\\"+folder+"csv", true  ))
         PrintFormat("%s file moved",folder);
      else
         PrintFormat("Error  %s ! Code  %d",Path+folder ,GetLastError());
    
 
Urain:
This will all now be possible to do on mutex

I can't understand how to copy a trade from one terimnal to another on mutex

 
ToporMT5:

I can't understand how to copy trade from one terimnal to another on mutex

Well, if you use modern methods of interprogram exchange to copy trade, you can do it without mutexes, but if you use ancient, file-based methods, it is difficult to synchronise write and read operations without mutexes.
It's like with mail - you can send it by phone and through the Internet, and you can send it by ground transport, and someone has to regulate traffic.
In general, the means of synchronisation (semaphores, mutexes, events) were invented long ago - about half a century ago, but they are just a bit late for us in MQL.
.

 
xorpheus:

Thanks for taking the time to write that.

Another way is to keep the default installation settings and make the connection between the two folders with a symbolic link.

http://en.wikipedia.org/wiki/NTFS_symbolic_link

I alredy made what you explain, but it does not copy pending orders, what can i do  to crrect this?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Trade Constants / Order Properties
  • www.mql5.com
Standard Constants, Enumerations and Structures / Trade Constants / Order Properties - Documentation on MQL5
 
trofeotrofeo:
I alredy made what you explain, but it does not copy pending orders, what can i do  to crrect this?
I don't think the code is intended to copy pending orders.  That would create complicated problems.  It simply makes sure you have the same net position in slave MT4 terminal compared with master MT5 terminal.
 

the copyist_positions which is run on mt4 does not accepted on new mt4 build 600. whenever I try to add expert to a chart terminal replies "copyist_positions  is not an expert and can not be executed"!!!!!! while it is compiled and run at previous mt4 builds


any one has any idea about this?

 
raminzk:

the copyist_positions which is run on mt4 does not accepted on new mt4 build 600. whenever I try to add expert to a chart terminal replies "copyist_positions  is not an expert and can not be executed"!!!!!! while it is compiled and run at previous mt4 builds


any one has any idea about this?

thanks to alexvd problem resolved!

alexvd:


Remove or comment the line

#property show_inputs



It is property of scripts so the new compiler decides that it is a script
 

Hello Raminzk,

Is the EA working well., cause in my case its not copying any trades. after the update, maybe we should change something in the folders?

Anybody can help?