MT5Apache-2.0Template開発ひな形

MT5 Expert Advisor Template

Build an MT5 EA around your own explicit entry and exit rules.

自分のエントリー・決済条件を入れて、MT5用EAを開発するためのひな形です。

Get source from author原作者のソースを開く ↗

What it does

仕組みと使い道

The template provides a structure for adding signals, plus position sizing, ATR-based stop and target calculations and basic error handling.

売買条件を追加する構造のほか、ロット計算、ATRに基づくストップ・利益目標、基本的なエラー処理が用意されています。

Settings to understand first

最初に確認する設定

Preserve the Experts, Include and Files folder relationships from the author package. Add one minimal signal rule, compile in MetaEditor and test the trade lifecycle on demo.

作者パッケージのExperts・Include・Filesの関係を保って配置します。まず最小の売買条件を入れ、MetaEditorでコンパイルし、デモで取引の一連の動作を検証します。

What to watch out for

注意点と制約

This is a development starting point, not a finished strategy. Template error handling does not prove safety; validate symbol specifications, failure paths and position ownership in the final code.

完成した戦略ではありません。基本エラー処理があるだけで安全性は確認できません。銘柄仕様、失敗時処理、どの建玉を管理するかを完成コードで検証します。

Install, inspect, then test

導入から検証まで

  1. Open the original author repository below and read its current LICENSE and installation instructions. Get the matching source folder or repository ZIP from that author; no source package for this item is mirrored by BSV.
  2. In the matching desktop terminal choose File → Open Data Folder. Copy this EA source under MQL4/Experts or MQL5/Experts. Preserve include/folder structure if the author’s package has it.
  3. Open the matching MetaEditor, compile the main source, and resolve errors and missing dependencies. Check the tool-specific notes before enabling any permission. Do not enable DLL or external-web access simply to make an error disappear.
  4. Use Strategy Tester and an isolated demo account with no other positions first. Confirm entries, exits, order filters, costs, restart behavior and failures. Reading source is not a substitute for those checks.
  1. 下の原作者リポジトリで、現行のLICENSEと導入手順を読みます。対応するソースフォルダーまたはリポジトリZIPを原配布元から取得します。この項目のソース一式はBSVでは複製配布していません。
  2. 対応するデスクトップ版で「ファイル→データフォルダを開く」を選び、EAをMQL4/ExpertsまたはMQL5/Expertsへ置きます。作者のパッケージに付属フォルダがある場合は階層を崩しません。
  3. 対応するMetaEditorで本体をコンパイルし、エラーと依存不足を確認します。各ツールの注意点を読み、エラーを消す目的だけでDLLや外部通信を許可しないでください。
  4. まず他のポジションがないテスター・隔離したデモ口座で、新規注文・決済・対象の絞り込み・コスト・再起動・失敗時の処理を確認します。ソースを読むだけではこれらの実行確認の代わりになりません。

Source and license

ソースとライセンス

This is an author-hosted source listing, not a BSV mirror. The author repository is explicitly licensed Apache-2.0. BSV has checked the upstream listing and description, not every file or dependency. No runtime verification is claimed.

原作者が配布するソースの案内で、BSVでの複製配布ではありません。原作者リポジトリのApache-2.0表示と説明を確認していますが、全ファイル・依存関係の個別監査はしていません。実行検証済みとは表示しません。

Read the author’s setup and full documentation原作者の導入手順・全機能を読む
Original author原作者
EarnForex
Licenseライセンス
Apache-2.0
Source version取得対象の版
Author default branch; may change
Checked確認日
2026-10-01
Evidence出典
Original license原作者のライセンス