Skip to content
other26 個の有効ルール2026-09-30 検証済み

Meta Trader5 .gitignore テンプレート

Standard Meta Trader5 gitignore template from upstream github/gitignore collection. 公式GitHubリポジトリの最新パターンと決定論的に統合され、パッケージディレクトリ、一時ビルド成果物、ローカル環境ファイルをクリーンに保ちます。

スタック統合ジェネレーター

フルジェネレーターで開く
Search for templates
クイック追加:
選択中1
Meta Trader5
選択されたテンプレート (1)
.gitignore
26 ルール
### Meta Trader5 ###
# MetaTrader 5 and MQL5 gitignore template
# Project homepage: https://www.metatrader5.com/en
# Compiled MQL5 executables (binaries)
# These are generated from .mq5 source files and should not be committed.
*.ex5
# 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
# Strategy Tester logs
*.slog
# Strategy Tester specific files
# History data, optimization results, and temporary files used by the tester.
# 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.
# 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
# and not part of your MQL5 source code repository.
*.dll
# User-specific configuration and credentials
# Files containing sensitive information or local user settings.
# 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)
*.~*
# Backup files (e.g., MyScript.mq5.bak)
*.bak
*.mqh.bak
*.mq5.bak
# MetaEditor project files
# Project files for MetaEditor workspaces.
.mqproj
# 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.
# Python compiled bytecode cache
__pycache__/
# Jupyter Notebook checkpoints
.ipynb_checkpoints/
# Python compiled files
*.pyc
# Python dynamic modules
*.pyd
79 行•UTF-8
決定論的パイプライン

生ソース: Meta Trader5 .gitignore

クローラブルな公式アップストリーム原典
metatrader5.gitignore•78 lines•UTF-8
# MetaTrader 5 and MQL5 gitignore template
# Project homepage: https://www.metatrader5.com/en
# Compiled MQL5 executables (binaries)
# These are generated from .mq5 source files and should not be committed.
*.ex5
# 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
# Strategy Tester logs
*.slog
# Strategy Tester specific files
# History data, optimization results, and temporary files used by the tester.
# 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.
# 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
# and not part of your MQL5 source code repository.
*.dll
# User-specific configuration and credentials
# Files containing sensitive information or local user settings.
# 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)
*.~*
# Backup files (e.g., MyScript.mq5.bak)
*.bak
*.mqh.bak
*.mq5.bak
# MetaEditor project files
# Project files for MetaEditor workspaces.
.mqproj
# 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.
# Python compiled bytecode cache
__pycache__/
# Jupyter Notebook checkpoints
.ipynb_checkpoints/
# Python compiled files
*.pyc
# Python dynamic modules
*.pyd

主要除外パターンの解説

ビルド・コンパイル生成物

ビルド処理で生成されるバイナリ、オブジェクトファイル、出力先ディレクトリを除外します。

*.dll

環境変数・シークレット情報

API キー、パスワード、接続文字列を含むローカル環境変数ファイル(.env)の流出を防止します。

.env

キャッシュ・一時ファイル

コンパイラキャッシュ、テストカバレッジデータ、一時作業ファイルを除外してリポジトリを軽量に保ちます。

*.log__pycache__/*.pyc

ソース元とライセンス検証

ライセンス:: CC0-1.0

このファイルをプロジェクトのルートディレクトリに .gitignore というファイル名で配置してください。新規および未追跡ファイルに即座に反映されます。