Categorygithub.com/MAK227/go-mql-build
modulepackage
1.0.1
Repository: https://github.com/mak227/go-mql-build.git
Documentation: pkg.go.dev

# README

MQL4 Build Tool

A simple MQL4 build tool written in Go for Linux (through wine) and Windows. It will compile the MQL4 EA/script and output the diagnostics to the terminal.

Installation

You can download the binary from the Releases page.

Or install it with

go install github.com/MAK227/go-mql-build@latest

Building from source

  1. Install Go
  2. Clone the repository
  3. Run go build

[!TIP] Symlink the binary to a directory in your $PATH to make it easier to use.

How it works

Usage Image

[!NOTE] The binary is named go-mql-build and should be ran from the MQL4 directory. Files should not have spaces in their names.

The tool will compile the MQL4 EA/script and output the diagnostics to the terminal. Will also create a .log file with the same name as the EA/script.

[!WARNING] The MT4 should be ran in portable mode to have the metaeditor.exe and MQL4 folder in the same directory if it's not installed in the same directory.

TUI

Running the tool without any arguments will open a TUI with the file picker and preview.

TUI

Keybindings

KeyDescription
Select the previous file
Select the next file
ctrl+c/qExit program
ctrl+uJump 5 files up
ctrl+dJump 5 files down
shift+uJump to first file
shift+dJump to last file
enterCompile target
sSyntax check

Example

For compilation:

go-mql-build -c /path/to/your/script.mq4

For syntax check:

go-mql-build -s /path/to/your/script.mq4

Usage

For successful compilation:

Usage Gif

For failed compilation:

Usage Gif

Contribution 🤝

Contributions are welcome! Whether you want to add new features, fix bugs, or improve documentation, feel free to open a pull request.

Star History

Star History Chart

GitHub Language Count GitHub Top Language Repo Size GitHub Issues GitHub Closed Issues GitHub Pull Requests GitHub Closed Pull Requests GitHub Contributors GitHub Last Commit GitHub Commit Activity (Week)

# Packages

No description provided by the author