Importing Variables and constants
-
I have created a long list of variables that I want to use in another project. What is the quickest way of importing them into the new project?
-
@jzfusion I have the same problem.. Modifying the .mq5 file and importing back to the builder doesn't seem to work. Usually I just open 2 windows side by side and ctrl+c ctrl+v the whole circus
-
That's bronze age!
-
I tried to modify the source code and add my variables in the global variables section but it still didn't pick up. I don't think it's that hard if you know what you're doing. I think a little guidance is what is needed. I will stay clear of the main code, just add my variables.
-
Yeah I tried the same. You actually have to put your variable in 2 different places. Use the search function to find the places..
But yeah, those variables still don't show up when imported back to builder... -
@jzfusion
Create new project. Import project with variables. Delete blocks. Still got your variables. This is the simplest way i could think of doing it.Hope it helps.
-
@leonvn
That's very clever. Why didn't I think about that!
cheers -
@jzfusion
Let me know if you come across an easier method.Good luck!