Skip to content

Commit 622c031

Browse files
authored
Merge pull request #4690 from softwaredevelop/add-metatrader5-gitignore
Add .gitignore template for MetaTrader 5 / MQL5
2 parents 926c9ad + 67806c5 commit 622c031

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

community/MetaTrader5.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# MetaTrader 5 and MQL5 gitignore template
2+
# Project homepage: https://www.metatrader5.com/en
3+
4+
# Compiled MQL5 executables (binaries)
5+
# These are generated from .mq5 source files and should not be committed.
6+
*.ex5
7+
*.ex4 # For MQL4 compatibility if you also manage MT4 projects in a similar structure
8+
9+
# Log files
10+
# Terminal logs, strategy tester logs, and custom logs from Print() functions.
11+
*.log
12+
*.slog # Strategy Tester logs
13+
14+
# Strategy Tester specific files
15+
# History data, optimization results, and temporary files used by the tester.
16+
*.fxt # FXT files (history data for testing)
17+
*.hst # History data files (can be large)
18+
*.ini # Initialization files (often generated by tester or EAs)
19+
*.dat # Data files (various purposes, often temporary)
20+
*.csv # CSV export files (e.g., from tester reports)
21+
*.jrn # Journal files (tester journal)
22+
23+
# Market Watch sets and profiles
24+
# User-specific lists of symbols in Market Watch, and terminal profiles.
25+
*.set # Market Watch symbol sets
26+
*.tpl # Chart templates
27+
*.chr # Chart settings files (can be generated when saving templates or profiles)
28+
29+
# External libraries (DLLs)
30+
# If you use custom DLLs, you might want to ignore them if they are built separately
31+
# and not part of your MQL5 source code repository.
32+
*.dll
33+
34+
# User-specific configuration and credentials
35+
# Files containing sensitive information or local user settings.
36+
.env # Environment variables (e.g., for Python integration credentials)
37+
*.cfg # Configuration files (if not meant to be shared)
38+
*.json # Be careful: if you have config JSONs you *do* want to commit, add specific exceptions.
39+
# Example: !config.json (to include config.json but ignore other *.json)
40+
41+
# Temporary files and backup files generated by MetaEditor
42+
*.~* # Temporary files (e.g., ~MyScript.mq5)
43+
*.bak # Backup files (e.g., MyScript.mq5.bak)
44+
*.mqh.bak
45+
*.mq5.bak
46+
47+
# MetaEditor project files
48+
# Project files for MetaEditor workspaces.
49+
.mqproj
50+
51+
# Python specific ignores (if you also keep Python scripts or Jupyter notebooks in this repository)
52+
# These are relevant if your Git repo root is higher up (e.g., the terminal folder itself)
53+
# or if you mix Python code within your MQL5 structure.
54+
__pycache__/ # Python compiled bytecode cache
55+
.ipynb_checkpoints/ # Jupyter Notebook checkpoints
56+
*.pyc # Python compiled files
57+
*.pyd # Python dynamic modules

0 commit comments

Comments
 (0)