Hello everyone. I am working on an EA and it's starting to contain a LOT of functions. I'd like to make a libray for these functions, (actually I have so many, I'm probably going to make 3 different library files to make things even more straightforward). Some of the functions need to share global variables with the main EA. I was going to simply create the library files an use them the standard way, but then I found out that I will need to include these files in the MT4 library folder when I want to run it, in other words, they don't compile into the EA. I don't want external files i have to make sure are there, I want everything compiled into just one EA. So I decided to go the #include "mylib.mqh" route. But I couldn't compile my library files without declaring the variables that are already declared in my main ea. Won't redeclaring them here reset them?
How best to do this?