Portfolio Backtest Combiner

  • ユーティリティ
  • Mohamed-amine Baddir
    Mohamed-amine Baddir
    MetaTrader 5向けのExpert Advisor(EA)を開発し、実際に取引で使用する前に十分なテストを行います。
    対応内容:
    お客様のトレード戦略、TradingViewスクリプト、または文章化されたルールを、クリーンなMT5 Expert Advisorに変換
    既存EAの修正・バグ修正:リスク%によるロットサイズ計算、トレーリングストップ、セッション・時間フィルター、スプレッドフィルター、複数銘柄ポートフォリオ、ドローダウン保護
  • バージョン: 1.0
  • アクティベーション: 5

The Strategy Tester runs one Expert Advisor at a time. If you run several EAs on one account, their separate reports do not tell you the combined drawdown, the margin they need together, or whether the account can carry them at all. Portfolio Backtest Combiner answers that from the reports you already have.

How It Works

  • Backtest each Expert Advisor as usual and save the report as HTML (Strategy Tester > Backtest tab > right click > Report > save as HTML) into the MQL5\Files folder of the terminal.
  • Attach Portfolio Backtest Combiner to any chart and list the report files in the inputs.
  • In a few seconds the chart shows the verdict and the key figures of every weighting, and a full HTML report is written to MQL5\Files\PortfolioCombiner.

No source code of your Expert Advisors is needed: compiled EAs from the Market work.

What Is Calculated

  • The account rebuilt minute by minute from the M1 history of your terminal: balance, floating profit converted at historical prices, equity, swap charged night by night (triple swap day included).
  • Margin of every open position by the calculation mode of the symbol, including hedged positions, margin level, margin call and stop-out.
  • Every entry the combined account could not have paid the margin for, with the first date: the moment the account stops following the separate backtests.
  • Risk weights: multiply the lots of each EA (rounded to the volume step) and compare several weightings in one run.
  • Report: verdict, net result, maximum equity and balance drawdown, lowest margin level, worst day, return/drawdown, the result and own drawdown of each EA, the correlation of their daily results, the margin level over time, and a table of all weightings.

Accuracy

The method was checked against a real multi-symbol backtest of four strategies running together (EURUSD, USDJPY, XAUUSD, hedging account, 21 months):

  • net result and balance drawdown identical to the cent
  • lowest margin level identical (minute records)
  • equity within 3.61 USD in 99% of 651,169 minutes
  • on a small account, the first order the account could not pay for was predicted to the second

The margin of a position is held at its open price and swap is charged at every rollover, as in the Strategy Tester.

Demo

The free demo runs in the Strategy Tester: copy your saved reports into the common Files folder (File > Open Common Data Folder > Files), run the demo with the model "1 minute OHLC" or "Every tick" over the same period as the reports. The results are printed in the journal at the end of the test and the report is written to the common folder.

Inputs

  • Saved tester reports: file names in MQL5\Files, separated by ;
  • Weightings: one lot multiplier per report, sets separated by ; (example 1,1,1;1,0.5,2)
  • Deposit: 0 = the deposit of the first report
  • Symbol names: when the reports come from another broker, map them (example XAUUSD=GOLD;US30=DJ30)
  • Margin rule: fixed at the open price (as in the Strategy Tester), recalculated every minute, or recalculated on every trade
  • Margin call and stop-out levels: 0 = those of the current account
  • Report title

Good To Know

  • Test all EAs with the same deposit, leverage and period, on data of the same broker.
  • Set Tools > Options > Charts > Max bars in chart to Unlimited, and open each symbol once so its M1 history is downloaded.
  • The report has no position IDs; exits are matched with the oldest open entry of the same symbol and direction. This is exact for EAs that hold one position per symbol and direction, and close to exact for grid and averaging EAs.
  • EAs that size their lots from the balance trade differently together than alone; the tool shows the combination of the trades they made alone.
  • Equity is evaluated once a minute; spikes inside a minute are not seen.
  • The tool reads reports and writes files. It does not trade.
作者のその他のプロダクト
Prop Risk Guard は、口座のリスク管理ルールを自動的に適用します。1つのチャートに追加するだけで、口座内のすべてのポジションを監視します。設定した上限に達すると、ポジションを決済し、指値・逆指値などの保留中注文を削除して取引をロックします。これにより、1回の大きな損失や制御不能になったEAによって、評価口座や資金提供口座のルールに違反することを防ぎます。 1日の損失上限 パーセンテージ、固定金額、またはその両方で設定できます(より厳しい上限が適用されます)。 1日の開始時点の残高、1日の開始時点の有効証拠金(Equity)、またはその2つのうち高い方を基準に計算します。 毎日のリセット時刻は、サーバー時間に基づいて自由に設定できます。 ロックは次のリセットまで維持され、リセット後は取引が自動的に再開されます。 入金および出金は、1日の損失として計上されません。 最大ドローダウン 固定式: 初期残高を基準に計算します。 トレーリング式: 有効証拠金(Equity)の最高到達点を基準に計算します。 初期残高までのトレーリング: 有効証拠金の上昇に合わせて上限が引き上げられ、初
フィルタ:
レビューなし
レビューに返信