MT5 in OneDrive

 

I made a portable version on my MT5 and put the folder into my OneDrive as I wanted to be able to access the platform from multiple PC's and not having to copy templates/sets/scripts etc every time I make a change. Apart from the need to login every time I open the terminal (I can live with that) it seems to be running well.

The issue is that I can see my closed trades only on the PC I took the trades on. Are these trades stored in a different folder or is there a way to have them showing on all PC's?

 

No, you can't put the entire MetaTrader installation on OneDrive and expect it to share and work properly. 

There are multiple files that are protected by a hardware ID, which will be invalidated on other devices. There are also other files that will cause inconsistencies if you keep switching between devices in a shared environment.

You have to be selective about which parts you place on OneDrive and which ones you keep as local only.

This is what I have done ...

  1. I use MetaTrader in "portable" mode.
  2. I keep a local directory for everything except for the "MQL5" folder. That means the directories "Bases", "Config", "Logs", "Tester", etc.
  3. The "MQL5" directory is a NTFS Junction to the real directory that resides on a OneDrive share. This is the only folder that is shared.

This way, all the devices work independently and consistently but share the same MQL5 source.

As for the trade history, that is stored on the trader server, so it does not matter on which device you connect from. What is probably happening on your end, is that the cached files of the trade history are not updating properly because of encryption and hardware id mismatches.

By having only the MQL5 directory shared, and a having a local independent setup for the rest, prevents issues and inconsistencies.

 

Thanks,

would you have more info on the NTFS Junction? Having the whole in OneDrive seems to work well apart from the need to login every time, not nice but can live with.


I'd like to try your idea, if you have more information.

 
Thanks :-) did a quick one before posting my previous comment but nothing 'quick and easy' come up. Will do more reasearch
 
CRom11 #Thanks :-) did a quick one before posting my previous comment but nothing 'quick and easy' come up. Will do more reasearch

Use Windows command line and "mklink" ...