Download MetaTrader 5
To add comments, please log in or register
Find out how your rating can be improved
DrZogg
140
DrZogg 2014.05.28 04:24 

Hi Folks, 

I'm convinced there's an article that explains how to use the common data folder for classes. But I can't find it. I've searched via google and via this search form.

I've tried to create classes in the folder, doesn't want to do it, I've tried to import the classes, no joy, I've tried to create a library in the folder.

Can anyone point me in the right direction please? The idea is to have single place for classes that I can use in all my instances of MT4. 

Alain Verleyen
Moderator
30298
Alain Verleyen 2014.05.28 19:51  
PumPuiMonkey:

Hi Folks, 

I'm convinced there's an article that explains how to use the common data folder for classes. But I can't find it. I've searched via google and via this search form.

I've tried to create classes in the folder, doesn't want to do it, I've tried to import the classes, no joy, I've tried to create a library in the folder.

Can anyone point me in the right direction please? The idea is to have single place for classes that I can use in all my instances of MT4. 

 

 

Common folder is for data, not code. It's currently not possible to share directly code between several instances of MT4.

What I do is to use mql5 storage.

DrZogg
140
DrZogg 2014.05.28 23:36  

Thanks Angevoyageur, 

 I see you can store classes in there. Looks like it was designed from the start to work like that. 

 Not my thing though, like to keep my classes to myself. 

Ian Venner
2583
Ian Venner 2014.05.29 13:56  

I don't like cloud based storage either it feels like a security risk, I wonder is there an encryption based solution to that ?

Alain Verleyen
Moderator
30298
Alain Verleyen 2014.05.29 16:06  
SDC:

I don't like cloud based storage either it feels like a security risk, I wonder is there an encryption based solution to that ?

I security risk for what ? Nobody takes care to your code (Nothing personal, nobody takes care to my code either).

Ian Venner
2583
Ian Venner 2014.05.29 23:17  

Yes you are right for now, but they might start to care if our codes is part of a million dollar EA ;)

Alain Verleyen
Moderator
30298
Alain Verleyen 2014.05.30 06:22  
SDC:

Yes you are right for now, but they might start to care if our codes is part of a million dollar EA ;)

I hope you do.
Halley
198
Halley 2014.05.30 07:42  

I do not think that versioning system is intended for synchronizing classes over a single computer. Good for sharing or backup.

I am accessing a few folders inside the MQL4 using symbolic links among MT4 terminal installations. It works quite well, just you should avoid linking some terminal-specific folders like \files or folders that get modified by a terminal during update.

/
To add comments, please log in or register