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

 

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 

 

I am still stuck at  "error opening the file 4103". 

 

Does any one has fix for this please ? 

 
j2011:

I am still stuck at  "error opening the file 4103". 

Does any one has fix for this please ? 

It seems that the file which MetaTrader 4 tries to open is locked by another application (a some program opened this file and still keeps). 
 

where is this file located ? Path ?

 
Rosh:
It seems that the file which MetaTrader 4 tries to open is locked by another application (a some program opened this file and still keeps). 
The problem is that you probably installed MT4 under MQL5/FILES. You need to install it under MQL5/FILES/METATRADER4.
 

My MT4 path: 

C:\Program Files\MetaTrader 5\MQL5\Files\METATRADER4

 Still same error.

 

amir_avatar,

are you able to copy trades from any of these championship trades to your live account ?  and are the trades copied close to their results  ? 

Documentation on MQL5: Timeseries and Indicators Access / CopyClose
  • www.mql5.com
Timeseries and Indicators Access / CopyClose - Documentation on MQL5
 
qq530321889:
Follow the recommendations in the logs.
 
Hi all, how to do so (what to change in the code) that the copier only open positions? That is, if in MT5 open order in MT4 also need to open but when we close the order in MT5 in MT4 he remained untouched.... who can help, please write in a private message.