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 MQL4 et MQL5

icon

Vous souhaitez apprendre le langage de programmation MQL5 ou MQL4, mais vous ne savez pas par où commencer ? Divers programmes pour votre terminal MetaTrader sont disponibles ici. Téléchargez et étudiez les exemples de code publiés, développez vos propres indicateurs et Expert Advisors. Publiez vos applications dans la plus grande bibliothèque de codes MQL5 et MQL4, et elles seront disponibles dans chaque terminal MetaTrader et MetaEditor.

Vos exemples de code dans MQL4 et MQL5 seront distribués dans le monde entier, et des milliers de traders entendront parler de vous !

Soumettre votre code

Asian Session Breakout identifies the price range formed during the Asian trading session and monitors how price behaves after that session ends. The Asian High and Asian Low remain extended until the end of the broker trading day. This makes the range useful as an intraday support-and-resistance zone during the European and US sessions. A compact dashboard displays the current range values, configured session time, breakout status, breakout confirmation method, and confirmation timeframe. The indicator does not open or manage trades. It provides market structure and breakout information for discretionary trading or EA development.

Un petit indicateur pédagogique pour MetaTrader 5 qui met en évidence sur le graphique les écarts de juste valeur haussiers et baissiers simples, composés de trois bougies.

Un indicateur simple, basé sur un critère de tendance

An institutional-grade order flow and footprint chart indicator ported from Pine Script to MQL5. It dynamically deconstructs major timeframe bars using lower timeframe (LTF) historical tick/real volume to compute buy/sell volume delta at each price level. The indicator features automatic timeframe selection, Point of Control (POC) highlighting, Stacked Imbalances, extreme Absorption detection, Unfinished Business (UB) tracking with live mitigation, and real-time alert triggers.

Value Area Levels is a session-based Value Area indicator for MetaTrader 5. It calculates and displays Value Area High, Point of Control, and Value Area Low levels for the developing, previous, and historical profiles.

Swap Meter affiche en temps réel les taux de swap de VENTE et d'ACHAT correspondant au symbole de votre graphique actuel dans un panneau clair et codé par couleur — et vous alerte instantanément dès que votre courtier modifie l'un ou l'autre de ces taux.

Suivi de la fourchette quotidienne — Comparaison en temps réel entre la fourchette du jour et la fourchette quotidienne moyenne. Le Suivi de la fourchette quotidienne vous permet de voir d'un seul coup d'œil quelle part de la variation quotidienne habituelle du titre s'est déjà produite aujourd'hui, ce qui vous aide à déterminer si la journée réserve encore du potentiel ou si elle est déjà épuisée.

This release introduces a lightweight automated trading prototype built on top of the Interactive Supply and Demand Zone Manager framework. The framework allows traders to draw and manage their own supply and demand zones, while each zone maintains its own lifecycle, interaction history, and evolving state as market conditions change. The hybrid approach combines user-defined zones with automated monitoring, validation, and trade management. The strategy evaluates qualified zones through a structured decision process before generating trade actions. Detailed logging provides visibility into zone behaviour, allowing traders to study interactions and build their own approaches using the collected information.

Computes the historical Pearson correlation between any set of instruments and the combined margin your account would need to hold all of them at once, as a percentage of your equity. Runs natively in MetaTrader 5 with no external libraries, no Python, and no AI — set your symbol list and lot sizes as inputs and it reports the full matrix in the Experts tab and on the chart, refreshing on a timer.

Volume Strength Compass is a volume-analysis indicator for MetaTrader 5 that evaluates market activity using Relative Volume, candle body strength, close position, and volume intensity. The indicator classifies each candle into different volume conditions such as normal volume, low volume, high volume,climax volume, bullish effort, bearish effort, and absorption. The results are displayed using colored volume columns, background highlights, signal labels, an average-volume line, and a real-time dashboard. The indicator can use tick volume, real volume, or automatically select real volume when available. It also supports alerts on either the current live candle or after candle closure.

SMMA Levels MTF is a multi-timeframe Smoothed Moving Average indicator for MetaTrader 5. The indicator calculates SMMA values from several selectable timeframes and displays them together on the current chart.

Pivot SuperTrend BhanuCodeLab is a trend-following indicator that combines confirmed pivot points with an ATR-based trailing trend line to identify market direction, trend reversals, and potential BUY or SELL signals.

Expert Advisor open source permettant de tester les effets de retournement et de poursuite de tendance liés au jour de la semaine. Conçu pour la recherche systématique, la validation de stratégies et le développement ultérieur par la communauté MQL5.

Session Boxes est un indicateur personnalisé pour MetaTrader 5 qui trace sur le graphique des rectangles codés par couleur représentant la fourchette haut-bas des sessions de négociation d'Asie, de Londres et de New York. L'indicateur utilise en interne les données de la période H1 et prend en charge la configuration des horaires de session en GMT, ainsi qu'un paramètre de décalage par rapport au serveur du courtier.

An institutional-grade trading journal and behavioral analytics suite designed to run entirely inside MetaTrader 5. The application is built as a single-file, zero-dependency dashboard that replaces standard terminal objects with a high-performance, double-buffered vector graphics pipeline (CCanvas). It provides real-time quantitative analysis, behavioral risk auditing, a vertical scrollable monthly calendar, and interactive log cards with inline note editing directly on the chart.

This indicator is essentially a GPS based on envelope as channel gauging and weather radar for the market wrapped into one. Instead of just giving you a bunch of lines to guess at, it calculates the mathematical "stretch" of the market and combines it with a multi-timeframe trend analysis to tell you exactly where you are. if price is outside band it is some fundamental shift in momentum happening if you are on wrong side then quit and stay away or go with trend on pull backs

Indicateur MACD reproduisant le style visuel de TradingView pour MT5. Histogramme à 4 couleurs, ligne de signal basée sur la moyenne mobile simple (SMA) — les valeurs correspondent barre par barre à celles de TradingView.

Cet indicateur affiche la valeur lissée de la tendance linéaire

Dynamic approach vastly outperforms relying on a single MA.

Educational MT5 Expert Advisor using completed-candle EMA 9/21 alignment and RSI 14 filtering, with fixed-lot execution and a compact black-and-gold dashboard.

1. The Core Tracking Engine (Alpha-Beta Filter)At its core, the indicator utilizes an Alpha-Beta filter—a lightweight, steady-state version of a Kalman filter designed to track position and velocity.Predictive Calculation: Instead of simply averaging past prices like an SMA or EMA, the engine calculates a predicted price based on current velocity ($v$).Error Correction:

Cet Expert Advisor associe un filtre de force de tendance basé sur l'ADX à une technique d'entrée sur rebond utilisant la moyenne mobile exponentielle (EMA), tout en s'appuyant sur l'ATR pour le calcul dynamique des niveaux de stop loss et de take profit. Il est conçu pour le trading d'un seul symbole, avec une seule position ouverte à la fois.

Variable Configurations to TestScalper Setup: Try an $\alpha$ of 0.45 and a $\beta$ of 0.12. The dashboard cells will flash changes rapidly, reacting instantly to short-term pullbacks.Swing Configuration: Lower the values to an $\alpha$ of 0.15 and a $\beta$ of 0.02. The matrix cells will stabilize, ignoring intraday market noise and preserving a clear view of macroscopic trends.

A multi currency multi symbols super trend dashboard

A read-only MT5 dashboard for risk-based lot sizing, account health, broker volume limits and current symbol exposure.

Super trend with basket TP and SL management

Expert Advisor permettant de tester l'hypothèse de continuation liée à la figure « Inside Bar ». L'EA place des ordres en attente dans le sens de la « Main Bar » après avoir détecté une figure « Inside Bar » valide, avec des filtres optionnels basés sur l'ATR et la qualité de la figure.

A babysitting trade management tool and system :D

Au lieu de devoir analyser chaque paire individuellement, vous pouvez voir d'un seul coup d'œil quelles sont les paires les plus prometteuses selon vos propres critères.

Un moteur d'états permettant la validation géométrique des signaux indicateurs

The Apex of Algorithmic Grid & Kinetic Momentum. Welcome to the KCI Native Matrix Engine—a merciless, mathematically driven algorithmic behemoth built natively for MetaTrader 5. Engineered for High-Frequency Trading (HFT) environments, this EA strips away bloated standard libraries and operates directly at the server routing level.

The KCI-Directional Matrix (KCI-DX) is an advanced, physics-inspired analytical tool that extracts market kinematics by measuring price path length and volatility energy. Unlike conventional momentum tools, KCI-DX employs a dynamic Z-Score normalization combined with a Sigmoid activation function. This ensures the output is flawlessly bounded between 0 and 100, providing hyper-responsive trend strength identification and directional bias without distortion from historical extremes.

The KCI Volatility Distance is an advanced, adaptive algorithm meticulously engineered to map market momentum and trend direction with pure precision. Utilizing a proprietary matrix-based calculation, this tool dynamically filters out market noise and provides a strictly quantitative perspective on directional strength. Built with a highly optimized Object-Oriented Programming (OOP) core, it is designed for both visual trading clarity and seamless integration into Expert Advisors or Machine Learning modules, ensuring ultra-light CPU performance across multiple assets.

A multi strategy EA gold mine :)

Breakouts based on envelope channel or band, multi EA logic in One EA

A local client to client trade copier with custom dashboard in C# and transport pipe in golang , complete src is provided in archive ( socket based ver ) ultra low latency

This indicator is a trend-momentum oscillator that tracks where price sits relative to its structural volatility channel using a normalized relationship between the Parabolic SAR and Envelopes.

P/L Calendar — Monthly Profit & Loss at a Glance. P/L Calendar shows you, day by day, exactly how your account performed this month — so you can spot your best and worst days, track your win rate, and see your trading rhythm without digging through the terminal's history tab.

Universal Breakout Study est un Expert Advisor pour MetaTrader 5 axé sur la recherche, conçu pour analyser et optimiser les stratégies de cassure de range. Il offre des tests de paramètres flexibles, une optimisation rapide et un cadre structuré permettant de valider des idées de trading à l'aide de données historiques et de tests prospectifs.

Chart Navigator MT5 Light — une mini-carte permettant de se déplacer rapidement sur le graphique des cours et d'accéder instantanément à vos repères sur celui-ci

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201