How to Send my personal trades from mt4 to mt5
What if you write for each trade an individual file which is deleted by the mt5 app after reading?
To be faster (some msec) use the Windows functions to write and read files and a RAM-Disk.
What if you write for each trade an individual file which is deleted by the mt5 app after reading?
To be faster (some msec) use the Windows functions to write and read files and a RAM-Disk.
You agree to website policy and terms of use
Hello everyone,
I intend to copy my personal trades from MetaTrader 4 to my MetaTrader 5. To achieve this, I have written two codes:
But I have encountered some issues. One of them was that the file created in MQL4 is in UTF-8, and MQL5 couldn't read it properly. So, I had to create a function in my MQL5 code to convert UTF-8 to UTF-9. For now, this part seems to be working fine, but I am facing a few other issues:
- If there are multiple trades in the file, only the first trade is copied.
- The trade keeps repeating continuously.
- If I modify a trade in MetaTrader 4, the modification does not reflect in MetaTrader 5.
I will place both MQL4 and MQL5 codes below. I would appreciate it if someone could provide guidance.mql4 Code
MQL5 Code