Skip to content

Commit bef6d43

Browse files
authored
Merge pull request #4706 from softwaredevelop/refactor-mql5-gitignore
Refactor .gitignore for MQL5: Clean up file extensions and improve clarity
2 parents 1af287e + 6b7a933 commit bef6d43

File tree

1 file changed

+41
-21
lines changed

1 file changed

+41
-21
lines changed

community/MetaTrader5.gitignore

Lines changed: 41 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,38 @@
44
# Compiled MQL5 executables (binaries)
55
# These are generated from .mq5 source files and should not be committed.
66
*.ex5
7-
*.ex4 # For MQL4 compatibility if you also manage MT4 projects in a similar structure
7+
# For MQL4 compatibility if you also manage MT4 projects in a similar structure
8+
*.ex4
89

910
# Log files
1011
# Terminal logs, strategy tester logs, and custom logs from Print() functions.
1112
*.log
12-
*.slog # Strategy Tester logs
13+
# Strategy Tester logs
14+
*.slog
1315

1416
# Strategy Tester specific files
1517
# 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)
18+
# FXT files (history data for testing)
19+
*.fxt
20+
# History data files (can be large)
21+
*.hst
22+
# Initialization files (often generated by tester or EAs)
23+
*.ini
24+
# Data files (various purposes, often temporary)
25+
*.dat
26+
# CSV export files (e.g., from tester reports)
27+
*.csv
28+
# Journal files (tester journal)
29+
*.jrn
2230

2331
# Market Watch sets and profiles
2432
# 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)
33+
# Market Watch symbol sets
34+
*.set
35+
# Chart templates
36+
*.tpl
37+
# Chart settings files (can be generated when saving templates or profiles)
38+
*.chr
2839

2940
# External libraries (DLLs)
3041
# If you use custom DLLs, you might want to ignore them if they are built separately
@@ -33,14 +44,19 @@
3344

3445
# User-specific configuration and credentials
3546
# 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)
47+
# Environment variables (e.g., for Python integration credentials)
48+
.env
49+
# Configuration files (if not meant to be shared)
50+
*.cfg
51+
# Be careful: if you have config JSONs you *do* want to commit, add specific exceptions.
52+
*.json
53+
# Example: !config.json (to include config.json but ignore other *.json)
4054

4155
# Temporary files and backup files generated by MetaEditor
42-
*.~* # Temporary files (e.g., ~MyScript.mq5)
43-
*.bak # Backup files (e.g., MyScript.mq5.bak)
56+
# Temporary files (e.g., ~MyScript.mq5)
57+
*.~*
58+
# Backup files (e.g., MyScript.mq5.bak)
59+
*.bak
4460
*.mqh.bak
4561
*.mq5.bak
4662

@@ -51,7 +67,11 @@
5167
# Python specific ignores (if you also keep Python scripts or Jupyter notebooks in this repository)
5268
# These are relevant if your Git repo root is higher up (e.g., the terminal folder itself)
5369
# 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
70+
# Python compiled bytecode cache
71+
__pycache__/
72+
# Jupyter Notebook checkpoints
73+
.ipynb_checkpoints/
74+
# Python compiled files
75+
*.pyc
76+
# Python dynamic modules
77+
*.pyd

0 commit comments

Comments
 (0)