HyperGain_EURUSD
- Whole period
- 2 years
- 1 year
- 6 months
- 3 months
- 1 month
Forward testing (Profit)
Monthly Statistics
- Jan
- Feb
- Mar
- Apr
- May
- Jun
- Jul
- Aug
- Sep
- Oct
- Nov
- Dec
Calendar for Months
About EA's Strategy
Translating...
初めまして。
EAデザイナー空(くう)と申します。
投資歴20年でその内の17年間という長きに渡ってEAと関わってきました。
17年前はMT4しか存在していませんでしたが、近年MT4のサポートが終了していることを受けて現在はMT5のインジケーター開発・EA開発に専念しています。
まず初めにMT5に拘る理由についてMT4との違いを含めてご説明します。
MT4(MetaTrader 4)は、MetaQuotes Software社によって開発された非常に有名なFX・CFD取引プラットフォームです。以下にMT4の歴史と、アップデート打ち切りの背景について詳しく解説します。
🔷 MT4の歴史
年 |
出来事 |
2005年 |
MetaQuotes社がMetaTrader
4(MT4)を正式リリース。前バージョン(MT3)からの大幅進化で、チャート機能、テクニカル指標、EA(Expert Advisor:自動売買)の実装が飛躍的に向上。 |
2006年以降 |
世界中のFXブローカーが採用し、個人トレーダー向けプラットフォームとして世界標準に。 |
2010年頃 |
自動売買EAやMQL4(専用言語)による開発が急拡大。サードパーティ市場も成長。 |
2013年 |
後継バージョンである**MetaTrader 5(MT5)**がリリースされるが、当初はMT4との互換性が乏しく、MT4が引き続き主流に。 |
2016年 |
MetaQuotes社がMT4の新規ライセンス販売を停止(ブローカー向け)。新規のFX業者はMT5を選ばざるを得ない状況に。 |
2018年以降 |
MT4は実質的なアップデート停止状態に移行。MT5の普及促進が本格化。 |
2021年〜 |
AppleのmacOS対応やモバイルアプリの不具合に対応できず、App StoreからMT4/MT5が一時削除(2022年に復帰)。MT4はセキュリティ・技術面で旧式化が顕著に。 |
🔷 アップデート打ち切りの背景
✅ 技術的な制限
- 32ビットアーキテクチャ:MT4は32bit設計で、最新の64bit OSとの親和性が悪く、パフォーマンスが限定的。
- マルチスレッド非対応:バックテストや最適化はシングルスレッド処理で非常に遅い。MT5は完全にマルチスレッド対応。
- データ構造が古い:深い板情報(Level2)や、複雑なオーダー処理に非対応。
✅ ビジネス的な理由
- MetaQuotes社は、MT5を今後の標準プラットフォームと位置付けており、企業リソースを集中。
- MT4が普及しすぎたため、パッチ当て対応が難しくなった(古いコードベースのためバグ修正がコスト高)。
- セキュリティ面での懸念も大きく、アップデート継続はリスク。
✅ MT5への移行促進策
- MT5では:
- 経済指標カレンダーの内蔵
- DOM(Depth of Market)
- 多通貨バックテスト
- ヘッジ/ネッティング両対応
- これらの強化により、MetaQuotes社は新機能をMT5限定で展開し、MT4を「Legacy(旧世代)」扱いにしている。
🔷 現在の状況(2025年時点)
- MT4は利用可能ですが、MetaQuotes社は完全に開発を終了しています。
- 今後OSの更新(WindowsやmacOS)、スマホ環境の変化により動作不安定になる可能性は高い。
- 多くのブローカーもMT5へのシフトを進行中です。
🔶 まとめ
項目 |
内容 |
初出 |
2005年 |
全盛期 |
2010年〜2016年 |
ライセンス販売停止 |
2016年(新規ブローカー向け) |
アップデート停止 |
2018年以降(セキュリティパッチ除く) |
現在の立ち位置 |
Legacy(旧世代)プラットフォーム |
推奨 |
今後はMT5への移行が推奨されている |
✅ MT4 vs MT5 比較表(2025年最新版)
項目 |
MT4(MetaTrader
4) |
MT5(MetaTrader
5) |
リリース年 |
2005年 |
2010年 |
開発言語 |
MQL4(C言語に近い) |
MQL5(C++に近い、より構造化) |
対象市場 |
主にFX(為替) |
FX、株式、先物、仮想通貨などマルチ市場対応 |
注文方式 |
成行・指値・逆指値 |
成行・指値・逆指値+ストップリミット注文対応 |
注文システム |
ヘッジ方式のみ(ポジション単位) |
ヘッジ・ネッティング両対応 |
時間足の数 |
9種類のみ |
21種類の時間足 |
カレンダー機能 |
なし |
経済指標カレンダーを内蔵 |
板情報(DOM) |
非対応 |
対応(Depth of Market) |
バックテスト方式 |
単一通貨・単スレッド |
マルチ通貨・マルチスレッド対応 |
最適化 |
遅い(シングルスレッド) |
高速(マルチスレッド、分散処理可能) |
EAの開発自由度 |
限定的(インジケーター呼び出しや管理がやや難) |
構造化・OOP対応で柔軟 |
カスタム指標の描画 |
チャート表示機能に制限あり |
描画機能が強化され自由度が高い |
ファイル構造 |
単純(MQL4フォルダ以下に配置) |
複雑(プロジェクト管理型) |
取引シンボル管理 |
単純(基本は1つのシンボルで完結) |
サブシンボルや多通貨同時操作も柔軟 |
対応ブローカー数 |
多い(特に旧来のFX業者) |
増加中(特に新規・ライセンス制限後) |
サポート状況 |
2023年以降開発終了・セキュリティパッチのみ |
現在も新機能が追加されている |
🔶 開発者目線での補足(EA/インジケーター制作者向け)
項目 |
MT4 |
MT5 |
標準ライブラリ |
少ない |
豊富なクラス・OOP構成 |
イベントハンドラ関数 |
OnTick, OnInit, OnDeinitのみ |
OnTrade, OnChartEventなど多数 |
バックテストの柔軟性 |
制限あり(履歴書き換え多い) |
精密な履歴データで高信頼性 |
ファイルI/O・DLL連携 |
一部制限あり |
拡張可能だがセキュリティ制限も強い |
コンパイラ |
MetaEditor 4(旧式) |
MetaEditor 5(更新継続中) |
🔷 結論:どちらを選ぶべきか?
利用者タイプ |
推奨プラットフォーム |
理由 |
初心者・MT4 EA利用者 |
MT4(慣れやすさ) |
既存EAが豊富でシンプルな環境 |
EA開発者・最適化重視 |
MT5(将来性・高速性) |
高度な最適化・開発環境が整備されている |
株式・先物トレーダー |
MT5 |
多市場に対応、DOM、カレンダーなどが標準搭載 |
長期運用トレーダー |
MT5 |
将来的なサポート体制・技術的進化を考慮 |
1. はじめに
MetaTrader 4(MT4)とMetaTrader 5(MT5)は世界的に広く使われている取引プラットフォームです。特にEA(自動売買ロジック)開発や運用において、バックテストは戦略の妥当性を検証するために不可欠な工程です。
本書では、MT4とMT5のバックテスト方法の違い、MT5における「リアルティックに基づいたすべてのティック」モードの優位性について詳細に比較・解説します。
2. MT4とMT5のバックテスト方式の比較
項目 |
MT4(MetaTrader 4) |
MT5(MetaTrader 5) |
ティック生成方式 |
疑似ティック(OHLC+ランダム) |
実ティック(ブローカーの履歴に基づく) |
スプレッド |
固定スプレッドのみ |
変動スプレッド対応(リアル反映) |
ティック時間精度 |
分単位レベル(曖昧な時間順) |
ミリ秒単位で順序・時間を正確に再現 |
バックテストモード |
コントロールポイント、全ティック(疑似) |
1分足OHLC、すべてのティック、リアルティック |
複数通貨対応 |
非対応 |
対応(マルチ通貨EAテスト可能) |
板情報(DOM)再現 |
非対応 |
一部対応(株式市場など) |
最適化エンジン |
シングルスレッド |
マルチスレッド・クラウド分散対応 |
3. MT4バックテストの制約
MT4では、1分足のOHLC(始値・高値・安値・終値)をもとに擬似的なティックデータを生成しており、以下のような問題点があります。
- 実際の価格変動を忠実に反映していない
- スリッページや高速約定などの再現が不可能
- スプレッドが固定であるため、実際の市場の流動性が考慮されない
- ティック間の時間差が不明確で、成行注文の滑りなどが再現できない
これらの制約により、EAのリアル運用成績とバックテスト結果に大きな乖離が生じるケースがあります。
MT5では、MetaQuotes社が提供するブローカーの履歴ティックデータをもとに、すべてのティックをリアルに再現することが可能です。
【特徴とメリット】
- 実際に記録されたミリ秒単位の価格変動を再現
- 成行注文の約定遅延やスリッページも正確に反映
- ブローカー提供のスプレッド履歴を用いて変動スプレッドを自動適用
- ティックの粒度が高く、EAの応答精度を検証可能
5. 「最後のPing」オプションの効果
MT5のバックテストには「最後のPing」という項目があり、実際の通信遅延(Ping値)をシミュレートすることが可能です。
- 実際のトレードと同様に、注文送信の遅延や約定のタイムラグを再現
- 約定のズレや滑りを反映するため、リアルな約定結果を得やすい
- 高頻度スキャルピングやミリ秒単位で利益を狙う戦略において、実運用との乖離を最小限に抑えられる
6. スプレッドの再現性と最適化精度の違い
項目 |
MT4 |
MT5 |
スプレッドの挙動 |
固定のみ |
変動スプレッドの再現が可能 |
ティック時間 |
擬似的 |
正確な履歴データ |
約定遅延 |
非対応 |
「最後のPing」により再現可能 |
成行注文の滑り |
不明確 |
再現可能 |
EAロジック再現性 |
低い |
非常に高い |
MT5は、リアル市場の環境を極めて高い精度で再現できるため、最適化で得られた結果の信頼性と実用性が格段に高いと言えます。
7. 結論:MT5を選ぶべき理由
- 実際の取引に限りなく近い精度で検証可能
- ティック単位での戦略に最適
- スプレッド変動やPing遅延まで再現可能
- EAの最適化結果の実運用適応性が高く、信頼性が高い
特にスキャルピングEA、高頻度取引EA、ナンピンロジックなどを構築・検証する開発者にとって、MT5での最適化・テスト環境は必須レベルの優位性を持っています。
8. 補足:おすすめのMT5バックテスト設定
- モード:リアルティックに基づいたすべてのティック
- スプレッド:実スプレッド(ブローカー指定なし推奨)
- 遅延:「最後のPing」チェックあり
- モデリング品質:99%以上
- 最適化エンジン:マルチスレッド or MQL5 Cloud Network
Price:¥59,800 (taxed)
●Payment







Sales from : 08/17/2025 21:16
Price:¥59,800 (taxed)
●Payment







Just like discretionary trading, there are those that decide trading and settlement timings by combining indicators, those that repeatedly buy or sell at certain price (pips) intervals, and trading methods that utilize market anomalies or temporal features. The variety is as rich as the methods in discretionary trading.
To categorize simply,
・Scalping (Type where trades are completed within a few minutes to a few hours),
・Day Trading (Type where trades are completed within several hours to about a day),
・Swing Trading (Type where trades are conducted over a relatively long period of about 1 day to 1 week)
・Grid/Martingale Trading (Holding multiple positions at equal or unequal intervals and settling all once a profit is made. Those that gradually increase the lot number are called Martingale.)
・Anomaly EA (Mid-price trading, early morning scalping)
However, a substantial advantage of automated trading is its ability to limit and predict risks beforehand.
[Risk]
Inherent to forex trading are the trading risks that undeniably exist in automated trading as well.
・Lot Size Risk
Increasing the lot size forcibly due to a high winning rate can, in rare instances, depending on the EA, lead to substantial Pips loss when a loss occurs. It is crucial to verify the SL Pips and the number of positions held before operating with an appropriate lot.
・Rapid Market Fluctuation Risk
There are instances where market prices fluctuate rapidly due to index announcements or unforeseen news. System trading does not account for such unpredictable market movements, rendering it incapable of making decisions on whether to settle in advance or abstain from trading. As a countermeasure, utilizing tools that halt the EA based on indicator announcements or the VIX (fear index) is also possible.
[Benefits]
・Operates 24 hours a day
If there is an opportunity, system trading will execute trades on your behalf consistently. It proves to be an extremely convenient tool for those unable to allocate time to trading.
・Trades dispassionately without being swayed by emotions
There is an absence of self-serving rule modifications, a common human tendency, such as increasing the lot size after consecutive losses in discretionary trading or, conversely, hastily securing profits with minimal gains.
・Accessible for beginners
To engage in Forex trading, there is no prerequisite to study; anyone using system trading will achieve the same results.
[Disadvantages]
・Cannot increase trading frequency at will
Since system trading operates based on pre-programmed conditions, depending on the type of EA, it might only execute trades a few times a month.
・Suitability may vary with market conditions
Depending on the trading type of the EA, there are periods more suited to trend trading and periods more suited to contrarian trading, making consistent results across all periods unlikely. While the previous year might have yielded good results, this year's performance might not be as promising, necessitating some level of discretion in determining whether it is an opportune time to operate.
・MT4 (MetaTrader 4. An account needs to be opened with a Forex company that offers MT4.)
・EA (A program for automated trading)
・The operating deposit required to run the EA
・A PC that can run 24 hours or a VPS (Virtual Private Server), where a virtual PC is hosted on a cloud server to run MT4.
Additionally, there are both demo and real accounts available. You can experience trading with virtual money by applying for a demo account. After opening a real account, you select the connection server assigned by the Forex broker, enter the password, and log in to the account.
When you deposit money into your account using the method specified by the forex broker, the funds will be reflected in your MT4 account, and you can trade.
Firstly, download the purchased EA file from your My Page on GogoJungle. You will download a zip (compressed) file, so right-click to extract it and retrieve the file named ‘◯◯◯ (EA name)_A19GAw09 (any 8 alphanumeric characters).ex4’ from inside.
Next, launch MT4 and navigate to ‘File’ → ‘Open Data Folder’ → ‘MQL4’ → ‘Experts’ folder, and place the ex4 file inside. Once done, close MT4 and restart it. Then, go to the upper menu ‘Tools’ → ‘Options’, and under ‘Expert Advisors’, ensure ‘Allow automated trading’ and ‘Allow DLL imports’ are checked, then press OK to close.
The necessary currency pair and time frame for the correct operation of the EA are specified on the EA sales page. Refer to this information and open the chart of the correct currency pair time frame (e.g., USDJPY5M for a USD/Yen 5-minute chart).
Within the menu navigator, under ‘Expert Advisors’, you will find the EA file name you placed earlier. Click to select it, then drag & drop it directly onto the chart to load the EA. Alternatively, you can double-click the EA name to load it onto the selected chart.
If ‘Authentication Success’ appears in the upper left of the chart, the authentication has been successful. To operate the EA, you need to keep your PC running 24 hours. Therefore, either disable the automatic sleep function or host MT4 on a VPS and operate the EA.
If you want to use it with an account other than the authenticated one, you need to reset the registered account.
To reset the account, close the MT4 where the Web authentication is registered, then go to My Page on GogoJungle > Use > Digital Contents > the relevant EA > press the ‘Reset’ button for the registration number, and the registered account will be released.
When the account is in a reset state, using the EA with another MT4 account will register a new account.
Also, you can reset the account an unlimited number of times.
→ Items to Check When EA is Not Operating
1 lot = 100,000 currency units
0.1 lot = 10,000 currency units
0.01 lot = 1,000 currency units
For USD/JPY, 1 lot would mean holding 100,000 dollars.
The margin required to hold lots is determined by the leverage set by the Forex broker.
If the leverage is 25 times, the margin required to hold 10,000 currency units of USD/JPY would be:
10000*109 (※ at a rate of 109 yen per dollar) ÷ 25 = 43,600 yen.
・Risk-Return Ratio: Total Profit and Loss during the period ÷ Maximum Drawdown
・Maximum Drawdown: The largest unrealized loss during the operation period
・Maximum Position Number: This is the maximum number of positions that the EA can theoretically hold at the same time
・TP (Take Profit): The set profit-taking Pips (or specified amount, etc.) in the EA's settings
・SL (Stop Loss): The set maximum loss pips (or specified amount, etc.) in the EA's settings
・Trailing Stop: Instead of settling at a specified Pips, once a certain profit is made, the settlement SL is raised at a certain interval (towards the profit), maximizing the profit. It is a method of settlement.
・Risk-Reward Ratio (Payoff Ratio): Average Profit ÷ Average Loss
・Hedging: Holding both buy and sell positions simultaneously (Some FX companies also have types where hedging is not allowed)
・MT4 Beginner's Guide
・Understanding System Trading Performance (Forward and Backtesting)
・Choosing Your First EA! Calculating Recommended Margin for EAs
・Comparing MT4 Accounts Based on Spread, Swap, and Execution Speed
・What is Web Authentication?
・Checklist for When Your EA Isn't Working