From 6b7a9333048088116d1a215f2d24c2abf6e3bdf9 Mon Sep 17 00:00:00 2001 From: softwaredevelop <61334390+softwaredevelop@users.noreply.github.com> Date: Sun, 10 Aug 2025 07:52:09 +0000 Subject: [PATCH] Refactor .gitignore for MQL5: Clean up file extensions and improve clarity --- community/MetaTrader5.gitignore | 62 ++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 21 deletions(-) diff --git a/community/MetaTrader5.gitignore b/community/MetaTrader5.gitignore index 0e235ca7..21fef0aa 100644 --- a/community/MetaTrader5.gitignore +++ b/community/MetaTrader5.gitignore @@ -4,27 +4,38 @@ # Compiled MQL5 executables (binaries) # These are generated from .mq5 source files and should not be committed. *.ex5 -*.ex4 # For MQL4 compatibility if you also manage MT4 projects in a similar structure +# For MQL4 compatibility if you also manage MT4 projects in a similar structure +*.ex4 # Log files # Terminal logs, strategy tester logs, and custom logs from Print() functions. *.log -*.slog # Strategy Tester logs +# Strategy Tester logs +*.slog # Strategy Tester specific files # History data, optimization results, and temporary files used by the tester. -*.fxt # FXT files (history data for testing) -*.hst # History data files (can be large) -*.ini # Initialization files (often generated by tester or EAs) -*.dat # Data files (various purposes, often temporary) -*.csv # CSV export files (e.g., from tester reports) -*.jrn # Journal files (tester journal) +# FXT files (history data for testing) +*.fxt +# History data files (can be large) +*.hst +# Initialization files (often generated by tester or EAs) +*.ini +# Data files (various purposes, often temporary) +*.dat +# CSV export files (e.g., from tester reports) +*.csv +# Journal files (tester journal) +*.jrn # Market Watch sets and profiles # User-specific lists of symbols in Market Watch, and terminal profiles. -*.set # Market Watch symbol sets -*.tpl # Chart templates -*.chr # Chart settings files (can be generated when saving templates or profiles) +# Market Watch symbol sets +*.set +# Chart templates +*.tpl +# Chart settings files (can be generated when saving templates or profiles) +*.chr # External libraries (DLLs) # If you use custom DLLs, you might want to ignore them if they are built separately @@ -33,14 +44,19 @@ # User-specific configuration and credentials # Files containing sensitive information or local user settings. -.env # Environment variables (e.g., for Python integration credentials) -*.cfg # Configuration files (if not meant to be shared) -*.json # Be careful: if you have config JSONs you *do* want to commit, add specific exceptions. - # Example: !config.json (to include config.json but ignore other *.json) +# Environment variables (e.g., for Python integration credentials) +.env +# Configuration files (if not meant to be shared) +*.cfg +# Be careful: if you have config JSONs you *do* want to commit, add specific exceptions. +*.json +# Example: !config.json (to include config.json but ignore other *.json) # Temporary files and backup files generated by MetaEditor -*.~* # Temporary files (e.g., ~MyScript.mq5) -*.bak # Backup files (e.g., MyScript.mq5.bak) +# Temporary files (e.g., ~MyScript.mq5) +*.~* +# Backup files (e.g., MyScript.mq5.bak) +*.bak *.mqh.bak *.mq5.bak @@ -51,7 +67,11 @@ # Python specific ignores (if you also keep Python scripts or Jupyter notebooks in this repository) # These are relevant if your Git repo root is higher up (e.g., the terminal folder itself) # or if you mix Python code within your MQL5 structure. -__pycache__/ # Python compiled bytecode cache -.ipynb_checkpoints/ # Jupyter Notebook checkpoints -*.pyc # Python compiled files -*.pyd # Python dynamic modules +# Python compiled bytecode cache +__pycache__/ +# Jupyter Notebook checkpoints +.ipynb_checkpoints/ +# Python compiled files +*.pyc +# Python dynamic modules +*.pyd