Worstcase Portfolio Sizer MT5
- Utilità
-
Ginny Robin Van Diest
Candle Queen GY builds tools for traders who run several Expert Advisors at the same time.
I trade multiple EAs myself and wanted to know how deep the drawdown of the whole portfolio can realistically get, and how to size each EA for it. That question became my first tool: - Versione: 1.0
- Attivazioni: 10
WorstCase Portfolio Sizer
Monte Carlo position sizing for multiple Expert Advisors in one portfolioA backtest shows one possible order of trades.
In live trading the same trades can come in a different order, and the drawdown can be deeper.
WorstCase Portfolio Sizer repeats your trade history thousands of times in a different order and shows the range of drawdowns you can expect. It then calculates the risk per Expert Advisor that keeps the drawdown of the whole portfolio within the limit you choose.
How it works
- All Expert Advisors and symbols are combined into one account, day by day.
- Days on which several Expert Advisors lose at the same time stay together in every simulation (daily block bootstrap). When trades are shuffled one by one, this risk is not visible.
- You choose a maximum drawdown and a confidence level (90, 95 or 99 percent). The tool calculates the position size that stays within this limit.
What you see
- Max drawdown: your history compared with the Monte Carlo median, 90, 95 and 99 percent. The 95 and 99 percent values show a realistic worst case.
- Risk: the chance that the drawdown reaches your limit or your stop-trading level, and the chance of ending in loss.
- Return: your history, the Monte Carlo median, and the return in the weakest 5 percent of the simulations.
- Position size for your maximum drawdown.
- A chart with the range of equity paths and a chart with the distribution of the maximum drawdown.
- A table per Expert Advisor with trades, net profit, drawdown on its own, and two settings: one value for all Expert Advisors ("Same for all") and a value per Expert Advisor ("Suggested"), with the advice keep, increase, reduce or remove.
Data sources
- Your MetaTrader 5 trading account: The closed trades of your live or demo account, optionally filtered by magic number or symbol.
- Backtest reports: save one Strategy Tester report (HTML) per Expert Advisor in the folder shown by the tool. This also works for Expert Advisors that you bought.
- CSV file (advanced): a list of closed trades with the columns close time, symbol, magic number and profit, saved in the Common\Files folder of MetaTrader. Useful for trades from other sources.
How to use
- Attach WorstCase Portfolio Sizer to any chart.
- Choose the data source, your maximum drawdown and the confidence level.
- Optional: enter the current risk percentage or lot size of your Expert Advisors.
- Read the result and set the new value in the inputs of each Expert Advisor.
Good to know
- The tool does not open, modify or close trades. Algo Trading does not need to be enabled.
- It also works on accounts with read-only (investor) access.
- The panel can be resized, collapsed, moved and scrolled.
- Demo: in the Strategy Tester (visual mode) the panel shows an example portfolio with example data. Use M1, "Every tick", a period of one year or longer and a low speed, so the test keeps running while you view the panel.
- The results are based on past trades. They are an estimate of risk and not a promise of future results.
- More data gives more reliable results; at least 200 trades is recommended.
