MQL include folder for multiple projects

 

Hi

Need help figuring out where to put mqh files i intend to use on multiple projects.

If i put in the standard include folder for mql, only that project can see the files.

So i want to put my mqh files somewhere on my drive and have mutiple mql editors find it there.

Ps how do i solve this problem 

Again am looking for common place to put files used by multiple projects, so include folder wount do.


Thanks

 

All you need is here (Serach for include and select Docimentation): https://www.mql5.com/en/docs/basis/preprosessor/include:

#include "mylib.mqh"

If the file name is enclosed in quotation marks, the search is made in the current directory (which contains the main source file). The standard directory is not included in the search.

Documentation on MQL5: Language Basics / Preprocessor / Including Files (#include)
Documentation on MQL5: Language Basics / Preprocessor / Including Files (#include)
  • www.mql5.com
Including Files (#include) - Preprocessor - Language Basics - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5