Darwinex Advanced MQL Samples provides technical implementations for multi-symbol trade management and institutional-grade risk controls. The codebase includes specialized modules for calculating custom performance metrics, such as Pearson correlation coefficients and CAGR over mean drawdown, to refine backtesting optimization. Users can choose between fixed, minimum, or relative lot sizing methods. The repository serves as an educational resource for developers building robust trading systems with integrated diagnostic logging and advanced statistical analysis.
Read from custom-perf-metric-coeff-correlation.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
PositionSizingMethod
ENUM_POS_SIZE_METHOD
RELATIVE_LOT_SIZE
Position Sizing Method
CustomPerfCriterium
ENUM_CUSTOM_PERF_CRITERIUM_METHOD
COEFF_CORRELATION_R
Custom Performance Criterium
DiagnosticLoggingLevel
ENUM_DIAGNOSTIC_LOGGING_LEVEL
DIAG_LOGGING_LOW
Diagnostic Logging Level
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone darwinex/advanced-mql-programming from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
This collection of MetaTrader 5 expert advisors implements various technical strategies using indicators such as Moving Averages, MACD, and the Andean Oscillator. It includes a specific tool for trading based on Commitment of Traders data combined with SuperTrend signals. Most robots in the repository incorporate a gri
This repository features a collection of trading tools for MetaTrader 5 and 4, headlined by a comprehensive Trade Manager EA. This manager enables manual execution via keyboard shortcuts and provides automated risk controls, including ATR-based break-even settings and trailing stops. The collection also offers strategy
This repository provides a containerized environment for MetaTrader 5 using Docker, Alpine Linux, and Wine64. It includes a VNC server with an Openbox GUI for remote management and features Python integration via pyzmq for data feeding. The collection includes various MetaTrader 5 expert advisors, ranging from a 3D cor
This repository provides a collection of Expert Advisors for MetaTrader 5 and Python trading scripts developed for an educational YouTube series. It features various technical indicator-based strategies, including MACD, Relative Strength Index, Stochastic, and Bollinger Bands. The included MQL5 files implement multi-ti
MT5CollectionIndicator crossoverMean reversionTrend following
This repository features a diverse collection of expert advisors and trading utilities for MetaTrader 4 and MetaTrader 5. It includes automated robots based on trendline analysis, session breakouts, and technical indicator crossovers using MACD, RSI, and Williams Percent Range. The library provides various tools for ri
This collection for MetaTrader 5 provides a library and several expert advisors optimized for Renko chart trading. It includes a primary automated robot that executes trades based on Renko bar signals, as well as specific examples for moving average and price crossovers. The included tools offer robust trade management