Compilation steps for v1.080 #264
Locked
kenorb
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compilation for Windows
Requirements
Steps
Method using Git GUI
To compile the project, follow these steps:
Open MetaEditor.
Open Experts folder in File Explorer. You can do that from File menu, then choose Open Data Folder and enter MQL?/Experts folder, or by selecting Experts folder and choose Open Folder from the contextual menu.
Once the folder is opened in File Explorer, open contextual menu and select Git GUI Here (assuming you've installed Git client, as per above Requirements).
In Git GUI, choose Clone Existing Repository and type
https://github.com/EA31337/EA31337
as a Source Location andEA31337
(you can choose a different name) as a Target Directory, then Clone it.After Cloning, to checkout the specific version, in Git GUI select Branch menu and Checkout..., then select Tag and choose the version to checkout. For the latest development version, choose
master
branch.Go back to MetaEditor app, and open Experts/EA31337/src/EA31337.mq4, then Compile.
Note: For older versions (<v1.076), you also need to clone
https://github.com/EA31337/EA31337-classes
repository into MQL?/Include folder (similar as above). Make sure you checkout the same version for both repositories.If you've got any problems, check Troubleshooting section below, raise an issue, or ask at @EA31337.
Method using Git Bash
Open MetaEditor.
Select Experts folder and choose Open Folder from the context menu.
In opened folder, select Git Bash Here and type:
Now go to Include folder (same level as Experts), open Git Bash and type:
For older versions below v1.076, make the following symbolic link by typing (so both folders are in sync while changing):
Now open Experts/EA31337/src/EA31337.mq4 and compile.
If you've got any problems, check Troubleshooting section below, raise an issue, or ask at @EA31337.
General method
To compile the project, you need to
Download or clone (recursively) this repository into platform's MQL4/Experts folder, for example:
Note: To open that folder, run platform and select File, Open Data Folder from the menu.
Symlink or copy src/include/EA31337 folder into MQL4/Include folder.
Clone
EA31337-classes
repository into MQL4/Include folder.Open the main
EA31337.mq4
file in MetaEditor and compile.Note: For MQL5, rename or copy the file to have
.mq5
extension.In some cases (different branches/versions), you may also need to clone
EA31337-strategies
into src/include/EA folder.Note: When downloading a ZIP file, it's missing the git submodules, so you need to clone it recursively.
Compiling specific version
To compile the specific version of the project, use git to checkout the right version, e.g.:
After cloning project recursively, run
git tag
to see all the available versions.Change the code to point to the specific version, for example:
git checkout v1.076
.For version v1.066 and above, make sure your include files are compatible with the given version.
For example, when using symbolic links, files in include's folder should be automatically updated. Otherwise you need to copy required dependencies manually.
Troubleshooting
This is the platform bug. Please upgrade MetaEditor 5 to at least build 1745. If you can't find it, copy it from MetaTrader 5.
Beta Was this translation helpful? Give feedback.
All reactions