- www.mql5.com
Very very useful work to use my MT5's EA with brokers that still use MT4 platform, thanks a lot !
Unfortunaltely I got some unexpected errors on MT4 side by using it (Terminal - Experts windows) : "Copyist_positions EURUSD,M1: ArrayInitialize function internal error"
And some warnings when compiling source code on MT4 MetaEditor :" 'cmd' - comparison expression expected C:\Program Files\MetaTrader 5\MQL5\Files\MetaTrader 4\experts\Copyist_positions.mq4 (127, 46)"
Some idea to fix this bugs ?
- www.mql5.com
Very very useful work to use my MT5's EA with brokers that still use MT4 platform, thanks a lot !
Unfortunaltely I got some unexpected errors on MT4 side by using it (Terminal - Experts windows) : "Copyist_positions EURUSD,M1: ArrayInitialize function internal error"
And some warnings when compiling source code on MT4 MetaEditor :" 'cmd' - comparison expression expected C:\Program Files\MetaTrader 5\MQL5\Files\MetaTrader 4\experts\Copyist_positions.mq4 (127, 46)"
Some idea to fix this bugs ?
Thank you, we will check it.
Try the codes from the original russian article.
Bug is fixed now, I have just reinstalled MT5 & MT4 and it works !
Thanks a lot for your work.
I might be the unlucky one that that error message still continuously prompt out even I reinstalled MT5 and MT4 for both source codes in English and Russian. Could any one help on this? I actually need this function urgently. Many thanks!
P.S. I've already tried to debug this by placing "Translator positions.csv" in every file level but still the file cannot be found with the code 4103. The only difference between my path and this article is just the drive (mine is E:\). I did try to put the same csv file in the newly created path in C:\ but same error prompted. Thus, the file seemed to be transparent to the copyist program. :(
P.S. I've already tried to debug this by placing "Translator positions.csv" in every file level but still the file cannot be found with the code 4103. The only difference between my path and this article is just the drive (mine is E:\). I did try to put the same csv file in the newly created path in C:\ but same error prompted. Thus, the file seemed to be transparent to the copyist program. :(
This error 4103 is about chart operations. Don't you confuse something?
Charts |
|
|
ERR_CHART_WRONG_ID |
4101 |
Wrong chart ID |
ERR_CHART_NO_REPLY |
4102 |
Chart does not respond |
ERR_CHART_NOT_FOUND |
4103 |
Chart not found |
- www.mql5.com
I did think that I have been a bit confused since from others' program coding about fileopen function, they do check the error 4103 like the following:
return; // Exit start()
Actually, I compiled the source https://c.mql5.com/2/8/copyist_positions.mq4 successfully with some debug displays added and this program was run as a script. The following error occurred in the Experts window:
22:02:25 Copyist_positions EURUSD,M1: Error opening file 4103,Translator positionsHandle=-1
22:02:30 Copyist_positions EURUSD,M1: Error opening file 4103,Translator positionsHandle=-1
22:02:30 Copyist_positions EURUSD,M1: ArrayInitialize function internal error
The integer handle is clearly not equal to zero and fileopen function failed (though 4103 may not be the exact error code referring to this error since it's just got from getlasterror()?).
Much appreciated for any feedback for the above.
Hi,
would it be possible to rewrite the master part from MQ5 to MQ4? To be both usable on MT4 platform? Any idea how to convert, please?
Thanks a lot
this tools have a problem/bug that will open position until MT4 position up to MT5 lots,
that means it neglect the extern double koeff_lot=1.0;( position volume coefficient ) in MT4 scripts
if I set the koeff_lot to 0.1
If MT5 open 2 lot ,surely i want MT4 open 0.2 lot only
but this tools will enter 0.2 + 0.2 +0.2 , until MT4 open 2 lots
, it's terrible~ ~
can anyone fix this problem?
someone tell me to fix it,
add :
if ( (MT4_lots_total_in_that_symbol() >= MT5_lots() ) return(0);
I know how to code MT4_lots_total_in_that_symbol() ,
but hows to code MT5_lots() ?
I know zero in MQL5, and don't know how to pass this value to Script in MT4 Client Terminal ?
Thanks

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New article How to Copy Trading from MetaTrader 5 to MetaTrader 4 is published:
Author: Николай