Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
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

Les meilleurs codes sources MQL4 et MQL5 selon les notes des utilisateurs - 15

Soumettre votre code

Un indicateur MetaTrader 5 pédagogique et léger qui met en évidence les zones « Premium », « Équilibre » et « Décote » à partir d'une fourchette de cours sélectionnée.

Le calculateur de spread a été conçu pour afficher le spread actuel de n'importe quelle paire de devises sur le graphique.

Un indicateur MT5 pédagogique qui définit des zones de support et de résistance à partir de points pivots confirmés. Les réactions proches sont regroupées en fonction d'une distance calculée à partir de l'ATR, puis classées selon le nombre de tests répétés, la force du rejet et leur récence. Seules les zones les plus solides sont affichées afin de préserver la lisibilité du graphique.

Une petite bibliothèque aux dépendances légères qui introduit dans MQL5 un type « Result » inspiré de Rust. Les fonctions renvoient un objet unique de type « valeur ou erreur » au lieu de s'appuyer sur l'état global GetLastError() ; les échecs sont ainsi explicites et impossibles à ignorer. Elle comprend ResultValue (types de valeurs) et Result (objets pointés), une structure Error, des macros de retour anticipé (TRY, RETURN_ON_ERROR, …) ainsi que des callbacks optionnels Then/Match/MapError.

Valeur du pip en temps réel, calcul de la taille de la position en fonction du risque, analyse personnalisée du risque lié au volume et P/L des positions ouvertes : le tout dans un seul tableau de bord.

Scanner de zones de support et de résistance sur plusieurs périodes avec indicateur de force et alertes instantanées — M15, H1, H4, D1.

Panneau en lecture seule intégré au graphique qui surveille votre compte par rapport à une limite de perte journalière et à une limite de drawdown maximal, avec un code couleur indiquant les statuts OK / AVERTISSEMENT / DANGER. Ce panneau est uniquement destiné à la surveillance : il ne passe, ne modifie ni ne clôture aucun ordre.

Calcule la taille de position appropriée pour une opération prévue en fonction de votre niveau de risque (pourcentage du capital ou montant fixe) et de l'écart de stop-loss (en points ou en niveau de prix). Tient compte des spécifications du contrat du titre (taille et valeur du tick, volume min./max./pas) et estime la marge requise.

Exporte vos positions clôturées sur une période configurable vers un fichier CSV afin de pouvoir analyser le journal des transactions dans Excel ou Google Sheets : heure et cours d'entrée et de sortie (pondérés en fonction du volume pour les exécutions partielles), volume, résultat en points, commission, swap, bénéfice net et durée de la transaction.

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.

Smart Trend Score is a clean and lightweight MetaTrader 5 indicator designed to identify high-quality trading opportunities using multiple trend and momentum filters.

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

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.

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.

Super trend with basket TP and SL management

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

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.

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:

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.

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.

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.

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

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.

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.

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.

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.

Most channel indicators tell you where the breakout level is. This one tells you how far away from it you are, right now, in a form you can act on. The panel shows, for both the upper and the lower channel edge: the level itself the distance from the current price, in the symbol's own price units the same distance expressed in ATR units a proximity bar that fills as price approaches the trigger Why the ATR column matters. A distance of 8 dollars from a breakout means something completely different in a quiet Asian session than it does during a news release. Dividing the distance by the current ATR makes the number comparable across sessions, across volatility regimes and across symbols. A reading of 0.30 ATR means the same thing on gold as it does on EURUSD. Colour coding: normal text : more than InpNearATR away (default 1.0 ATR) gold : within InpNearATR orange red : within InpVeryNearATR (default 0.5 ATR)

BlueMoon EA is an MT5 Expert Advisor that combines EMA Envelope entries with adaptive basket management, progressive position sizing, spread filtering, drawdown protection, and automatic trade recovery for hedging accounts.

The Nikkei 225 Gap Continuation EA is a MetaTrader 5 Expert Advisor that trades bullish and bearish continuation movements after the cash-session opening gap. It combines an opening-range breakout with VWAP confirmation, automatic risk-based position sizing, partial profit-taking, break-even management and a forced session exit. The EA supports both netting and hedging accounts.

Session-Based Liquidity Breakout & Fibonacci Retracement Strategy (often used in Forex or Crypto trading). It simplifies trading by avoiding complex Smart Money Concepts (SMC) like Order Blocks or Fair Value Gaps, relying instead on Asian Session liquidity, timing (session open), and Fibonacci levels.

Reads a closed-position trade history (a CSV file, or one generated automatically from the current account's deal history by the companion RuinExport.mq5 script) and reports four independent risk fingerprints: volume escalation after a loss, overlapping same-direction exposure that averages into a worse price, payoff asymmetry between wins and losses, and a classical risk-of-ruin estimate at a stated risk per trade. The four scores combine into a single A-to-F grade with plain-language recommendations. If no CSV is found, the script generates a reproducible demonstration book automatically, so the report is visible on the first run.

Advanced MQL5 risk management class providing deterministic lot sizing, auto-suffix detection, and cross-currency triangular conversion.

A faithful MQL5 port of Daniel Bloch's Relative Moving Average framework. It ranks the current close inside its own window's distribution on a [0, 1] scale comparable across symbols, publishing the fractiles, regime classification, and directional consistency as readable buffers.

An MQL5 implementation of all four cross-strategies from Bloch's Relative Moving Average framework, with his Adaptive Crossover Exit switching rules by volatility regime. Entries and exits are taken in fractile space, so thresholds mean the same thing on every symbol.

Pro Manager is an all-in-one MT5 trading assistant built for prop firm and professional traders. Execute trades faster, manage positions smarter, control risk efficiently, and automate daily trading tasks with powerful tools such as Break-even, Average TP, Magic Number management, and Auto Grid.

Session-Based Scalping Indicator for MetaTrader 5. It automatically marks the Asian session high and low, then generates scalping signals at the London open when price breaks or retests those levels. The indicator draws dynamic session ranges, sends alerts and push notifications, and includes optional trend, volume and time filters. Works on M1, M5 and M15 charts for any symbol.

Locks in the Asian session range on XAUUSD, then places an OCO breakout pair (BuyStop/SellStop) for the London open, with ATR-based stops and risk-percent position sizing. No indicators, no discretion — the range is measured, not guessed.

Read-only analytics for accounts that run several Expert Advisors. It groups closed trades by magic number and measures what running those systems together actually saves you: standalone versus combined drawdown, the pairwise correlation matrix drawn as a heat map on the chart, and a Monte Carlo reshuffle of the portfolio's period returns.

1...8910111213141516171819202122...202