Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Twitter !
Rejoignez notre page de fans
Accédez à la CodeBase depuis votre terminal MetaTrader 5
Vous n'avez pas trouvé le bon code ? Commandez-le dans la section Freelance
Comment rédiger un Expert Advisor ou un indicateur

Bibliothèque de code source MQL5 pour MetaTrader 5 - 3

icon

Il s'agit de la plus grande bibliothèque de code source gratuite pour les programmes de la plateforme MetaTrader 5. Vous y trouverez des Expert Advisors, des indicateurs techniques, des scripts et des bibliothèques prêts à l'emploi. Utilisez la bibliothèque de codes lors de l'apprentissage du langage MQL5 et développez vos propres applications de trading automatisé basées sur les codes fournis.

Vous pouvez librement télécharger et tester les codes publiés, ainsi que les lancer dans MetaTrader 5. La bibliothèque est également disponible directement depuis la plateforme MetaTrader 5 et l'environnement de développement MetaEditor.

Soumettre votre code

Expert Advisor MT5 à vocation pédagogique utilisant l'alignement de la moyenne mobile exponentielle (EMA) 9/21 sur les bougies fermées et un filtrage par RSI 14, avec une exécution à lot fixe et un tableau de bord compact noir et or.

Une approche dynamique s'avère nettement plus efficace que le recours à un seul MA.

Professional open-source Trading Cost Calculator for MetaTrader 5. Calculates spread cost, commission, swap and estimated total trading cost using live broker symbol data and adjustable position settings.

Professional open-source Spread Monitor for MetaTrader 5. Displays live spread, minimum, maximum, average spread, history graph and configurable high-spread alerts with a modern Quantora dashboard.

Read-only broker-native trading-session inspector with current status, next transition, multi-symbol scope, and CSV export.

Read-only MT5 history utility that groups partial fills by position identifier and separates gross result from commission, swap, fee, and net result.

Read-only MT5 indicator that visualizes broker Stops Level and Freeze Level references on the chart.

Read-only OnTradeTransaction logger that records MT5 order, deal and position lifecycle events to local CSV and the Experts Journal.

Un tableau de bord « Super Trend » multidevises et multisymboles

Configurations variables à tester pour le paramétrage de TestScalper : essayez un $\alpha$ de 0,45 et un $\beta$ de 0,12. Les cellules du tableau de bord clignoteront rapidement, réagissant instantanément aux replis à court terme. Configuration « Swing » : réduisez les valeurs à un $\alpha$ de 0,15 et un $\beta$ de 0,02. Les cellules de la matrice se stabiliseront, ignorant le bruit intrajournalier du marché et préservant une vision claire des tendances macroscopiques.

Scans multiple timeframes for unfilled Fair Value Gaps, plots them as zones directly on your chart, and tracks local bull/bear imbalance depth with a histogram and live dashboard.

arks the prior session's high/low and flags liquidity sweeps that reverse back inside the range within a set number of bars." — category Other, or Trend if you'd rather group it that way.

Read-only MT5 script reporting broker volume, price, stops, freeze, spread and execution constraints.

An MT5 indicator that detects ATR-filtered institutional order blocks and tracks, in real time, whether each zone has been mitigated by returning price.

Tracks lag-N return autocorrelation over a rolling window as a live regime oscillator, distinguishing trending (positive autocorrelation) from mean-reverting (negative autocorrelation) market conditions. Plots a smoothed reading against dynamically-calculated statistical significance bands (±Z/√N), so you can tell a genuine regime shift from window-size noise — comparable across any symbol or timeframe since it works on returns, not raw price.

Super tendance avec gestion des TP et SL par panier

Un tableau de bord MT5 en lecture seule permettant de déterminer la taille des lots en fonction du risque, de suivre la santé du compte, de consulter les limites de volume imposées par le courtier et de visualiser l'exposition actuelle par symbole.

Deterministic synthetic acceptance checks for MT5 EA entry-state logic, with no market, account or order access.

Ruptures basées sur un canal ou une bande d'enveloppe, logique multi-EA dans un seul EA

Une mine d'or d'EA multi-stratégies :)

This is a FX Dashboard style terminal panel on the MT5 chart, plus lines drawn on the chart (EMA, Bollinger, Donchian).

The Day Trader Dashboard is a Bloomberg-style visual panel for MetaTrader 5 that tracks an intraday price range and flags when price is inside it (fade zone) or has broken out of it. It doesn't place trades — it's a decision-support overlay that computes the range High/Low from recent bars, draws those levels directly on the chart, and shows a live status readout (scanning / within range / breakout) in a themed, auto-scaling panel. It supports multiple independent instances on the same chart, several color themes, and cleans up 100% of its objects when removed.

News Trading Dashboard is an informational on-chart panel (it does not trade automatically) that monitors market volatility in real time to detect "news spike" moments — the sudden price moves that occur when economic data is released (NFP, CPI, interest rate decisions, etc.).

Channel Breakout Dashboard is an informational panel (not an automated trading robot) that runs on the MetaTrader 5 chart and centralizes, in one place, several market conditions that would otherwise require 4-5 separate indicators open at the same time.

Read-only MT5 script that estimates stop-distance cash loss in account currency, reserves explicit cash costs and floors volume to the broker grid. It never sends or modifies an order.

XAUUSD MTF Liquidity & Order Block Reversal Strategy A professional Smart Money Concepts (SMC) based MT5 indicator designed primarily for **XAUUSD (Gold)**. The strategy combines multi-timeframe liquidity, order blocks, liquidity sweeps, breakout/reversal confirmation, and M1 swing-based risk management to identify high-probability BUY and SELL opportunities. Strategy Features Multi-Timeframe Liquidity Detection The indicator identifies important liquidity and order-block levels from: * Best Day-wise Liquidity * H4 Liquidity & Order Blocks * M30 Liquidity & Order Blocks * M15 Liquidity & Order Blocks * M5 Liquidity & Order Blocks The strongest day-wise liquidity replaces simple Previous Day High/Low logic and searches historical daily candles for significant liquidity concentrations.

Swing Trading Dashboard is a visual indicator for MetaTrader 5 (it does not generate automatic trade signals — it only displays information on the chart). Essentially it's a "dashboard" panel that calculates the recent swing trading range and shows where the current price sits relative to it — mid-range, near a boundary, or already broken out.

Quantitative MT5 indicator measuring execution friction relative to ATR using spread, commission and slippage assumptions.

This indicator is a professional Scalping Dashboard utility designed specifically for MetaTrader 5 (MT5). It displays real-time vital market status information and scalping strategy conditions (based on Exponential Moving Arrows/EMAs), automatically computing spreads, momentum, and moving averages to output instant BUY/SELL SETUP visual signals.

Plots the previous trading week's High and Low as horizontal reference levels across the current week, with optional multi-week history for context. No repainting, no discretion — the levels are read directly from the completed Weekly bar.

La « KCI Volatility Distance » est un algorithme avancé et adaptatif, méticuleusement conçu pour cartographier avec une précision absolue la dynamique du marché et la direction des tendances. Grâce à un calcul exclusif basé sur une matrice, cet outil filtre de manière dynamique le bruit du marché et offre une perspective strictement quantitative sur la force de la tendance. Construit autour d’un noyau de programmation orientée objet (POO) hautement optimisé, il est conçu à la fois pour offrir une clarté visuelle dans le trading et pour s’intégrer de manière transparente dans des Expert Advisors ou des modules d’apprentissage automatique, garantissant ainsi une utilisation ultra-légère du processeur sur plusieurs actifs.

Un outil et un système de gestion des services de garde d'enfants :D

Daily Zone Recovery is a multi-strategy trading expert advisor for MetaTrader 5 that operates based on the previous trading day’s high and low levels. The expert advisor monitors price behavior near daily extremes, uses three independent entry strategies, and can manage positions using a fixed-volume grid.

A read-only audit script for accounts running several EAs (or manual trades alongside them). It groups the closed-trade history by magic number and prints one line per magic: closed round turns, net P/L including swap and commission from BOTH sides of the trade, win rate, profit factor, average win/loss, currently open positions and pendings, activity dates and symbols - sorted by net result, with a CSV export for spreadsheets.

Sell Arrow SL Box: Extends UPWARDS from the Sell Arrow. Buy Arrow SL Box: Extends DOWNWARDS from the Buy Arrow.

A native MQL5 tool that reconstructs closed positions from deal-level history, flags the ones closed through more than one exit, and reprices each one at its own first, last, and best exit rates to measure whether scaling out actually added value. Reports a Value-Add Ratio, a Scale Out Win Rate, an Efficiency figure, and a single-trade dependence check, combined into an A+ to F score with recommendations. Runs out of the box against a built-in demonstration data set; a companion script exports the real input file from your own account history. Pure MQL5, no external libraries.

Automatic structure-based SL, breakeven, ATR trailing, and dollar-based profit protection for manual MT5 trades and pending orders on Gold and selected FX pairs.

Marks non-repainting swing highs and lows using configurable LeftBars / RightBars pivots. Sends push and email alerts on each new confirmed swing.

Draggable Entry, Stop-Loss and Take-Profit lines with a live on-chart panel that calculates the exact lot size for a chosen account risk. No manual math, no guessing — drag the lines, read the size.

La matrice directionnelle KCI (KCI-DX) est un outil analytique avancé, inspiré de la physique, qui extrait la cinématique du marché en mesurant la longueur du parcours des cours et l'énergie de volatilité. Contrairement aux outils de momentum classiques, le KCI-DX utilise une normalisation dynamique par Z-Score combinée à une fonction d'activation sigmoïde. Cela garantit que le résultat est parfaitement compris entre 0 et 100, permettant ainsi une identification ultra-réactive de la force de la tendance et de la polarité directionnelle, sans distorsion due aux extrêmes historiques.

12345678910...204