Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 691 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 691 Bytes

mq4compile

A simple shell script that compiles mq4 files in the terminal

Note: Before using the script, make sure to edit the METAEDITOR variable to match the path of your metaeditor.exe.

Usage:

./mq4compile.sh /path/to/my/awesome_script.mq4

For convenience, you can move this script into a folder in your PATH:

# First check what folders are in your PATH
echo $PATH

# Then copy/move the script into the folder of your liking, in my case it will be ~/.local/bin
mv mq4compile.sh ~/.local/bin

# Now you can run mq4compile.sh anywhere
cd /path/to/my
mq4compile.sh awesome_script.mq4

Tip: Rename the script to mqc instead of mq4compile.sh to make it easier to type.