Guarda come scaricare robot di trading gratuitamente
Ci trovi su Twitter!
Unisciti alla nostra fan page
Script interessante?
Pubblica il link!
lasciare che altri lo valutino
Ti è piaciuto lo script? Provalo nel Terminale MetaTrader 5
Script

Monte Carlo Drawdown from Your Account History, with Capital Check - script per MetaTrader 5

Frederick David Diaz Arenas
Frederick David Diaz Arenas
  • MT5 & NinjaTrader 8 Developer | Strategy Validation al  Global Traders
  • Cile
  • 137
I turn your trading rules into a working Expert Advisor for MetaTrader 5 (or a NinjaTrader 8 strategy), and I test whether the strategy has a real edge before you risk money.
What I can do for you:
Visualizzazioni:
89
Pubblicato:
Freelance MQL5 Hai bisogno di un robot o indicatore basato su questo codice? Ordinalo su Freelance Vai a Freelance

Your historical drawdown is only one possible path. The same trades in a different order could have produced a deeper one. This script shuffles your trades thousands of times and shows how deep the drawdown can realistically get, and whether your account size can carry it.

Simulated drawdown histogram with p50, p95 and p99 lines

It reads the closed trades directly from your account history (with optional filters by symbol, magic number and dates) or from a CSV file in Common\Files. No other tool is needed.

Results:

  • Historical maximum drawdown and the 50th, 95th and 99th percentiles of the simulated drawdowns.
  • A second variant that also removes a random share of trades, to test dependence on a few big winners.
  • Profit percentiles and the probability of touching a chosen loss (for example 5 % of the account).
  • Capital check: for your account size and maximum acceptable drawdown, it says whether the account supports the strategy, the maximum position-size factor and the minimum capital needed.

The results are printed in the Experts log, saved to a CSV file and drawn on the chart as a histogram. Each percentile line has its own line style and label, so the chart does not rely on colour.

It also writes a readable HTML report to Common\Files (English or Spanish): results explained in plain language, a big YES/NO capital check, the histogram as SVG and a short limitations section. Open it in a browser or print it to PDF.

Limitations: it uses closed trades only, so it does not see floating drawdown inside a trade, and it treats trades as independent.

OnTester Robustness Score with Simulated Commission and Trade CSV Export OnTester Robustness Score with Simulated Commission and Trade CSV Export

A custom OnTester() criterion that ranks optimisation passes by net profit factor, number of trades, drawdown and equity-curve linearity. Includes simulated commission, trade export to CSV and a readable HTML report.

Smart Money Concepts MT5 Smart Money Concepts MT5

Smart Money Concepts MT5 — BOS / CHoCH structure, Order Blocks, Equal Highs/Lows, Fair Value Gaps and Premium/Discount zones. MT5 adaptation of the MAJID Smart Money Concepts indicator, free for non-commercial use under CC BY-NC-SA 4.0.

ATR Stop Loss Take Profit Levels ATR Stop Loss Take Profit Levels

ATR stop loss and take profit levels for Gold (XAUUSD) and any symbol on MT5. Draws the stop and two targets from the ATR for a buy at the ask and a sell at the bid, with the lot for your risk in percent of the balance. Open source code.

Pivot Points Daily Weekly Monthly Pivot Points Daily Weekly Monthly

Pivot points for Gold (XAUUSD) and any symbol on MT5. Classic or Fibonacci P, R1 to R3 and S1 to S3 from the previous day, week or month, one set per period, with an optional alert when a candle closes across a level. Open source code.