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.
Autorisez l'utilisation de cookies pour vous connecter au site Web MQL5.com.
Veuillez activer les paramètres nécessaires dans votre navigateur, sinon vous ne pourrez pas vous connecter.
Vous êtes connecté. L'authentification à deux facteurs a été désactivée. Configurez-la à nouveau et scannez un nouveau code QR, ou continuez avec l'authentification à deux facteurs désactivée.
Activer l'authentification à deux facteurs ContinuerChecks the bar history of the chart for six defects that make an indicator give different values on another broker: missing bars, impossible values, filler bars, repeated bars, bars without ticks and price spikes. Every defective bar is marked in the indicator window, and a panel gives a health score for the symbol and timeframe, the largest holes, the defect counts and one line that can be pasted into a comment to compare brokers.
finds out why an indicator shows nothing on the chart. It reads the buffers of every other indicator on the chart and gives each one a verdict: not calculated, all values empty, values only in the newest bars, all values zero, no values in the visible bars, or values outside the visible scale. A panel lists the problems first, gives one line of advice and prints a report line that can be pasted into a comment.
Moves the stop loss of already open positions (manual or from any EA) to break-even and then trails it by points or ATR. Never opens or closes trades, only moves the SL in your favour.
Draws Asian, London and New York session boxes (high/low and range in points) for the last N days. Session hours are set in GMT; the broker's GMT offset is detected automatically.
Two-click Fibonacci tool: press F or the FIBO button, click the swing start and end. Points snap to the candle high/low, every level has its own colour and price label.
Bootstrap par blocs des résultats quotidiens : quelle peut être l'ampleur maximale de la baisse d'un compte ou d'une stratégie au cours des prochains mois, avec des centiles et un générateur initialisé permettant des simulations reproductibles.
Détecte le modèle ICT sur les barres fermées (balayage de liquidité en zone critique, MSS avec déplacement ou FVG inversé, entrée par retracement avec SL et TP) et suit chaque configuration jusqu'à son résultat en fournissant des statistiques pour le scénario le plus défavorable. Il n'effectue jamais de transactions et ne modifie jamais ses données a posteriori ; tampons compatibles avec les EA.
Un indicateur permettant de déterminer à quel moment les bougies ont franchi une limite de cours extrême
Met en évidence les sessions d'Asie, de Londres et de New York, ainsi que le chevauchement entre Londres et New York, en tenant compte de l'heure locale réelle et des règles relatives à l'heure d'été, de sorte que les plages horaires des sessions soient correctes quel que soit le courtier.
Script qui génère un rapport sur les contraintes auxquelles un EA doit faire face : couverture ou compensation, autorisations de trading, modes d'exécution, niveaux de stop et de gel, règles de volume, swaps et positions déjà ouvertes sur le symbole. Il enregistre un fichier de rapport que vous pouvez joindre à une commande Freelance.
Marque les écarts d'ouverture quotidiens et du week-end sur n'importe quel graphique, suit le moment où chaque écart est comblé, signale les nouveaux écarts, enregistre une ligne CSV par écart et transmet les informations relatives à l'écart à iCustom.
Classifies each bar into trend, exhaustion, compression or noise regimes using Fractal Efficiency, ATR compression and a time-of-day adjusted volume Z-Score.
Mécanisme de surveillance en lecture seule pour MT5 : alertes en cas de « magic numbers » inconnus, de positions en double après une reconnexion, d'absence de SL, de stop-out et de ce qui s'est passé pendant sa désactivation. N'effectue jamais de transactions.
L'indicateur détecte les vagues de prix, marque leurs sommets et leurs creux à l'aide de flèches à trois niveaux, puis trace automatiquement des lignes de résistance et de support à partir de ceux-ci.
Draws the previous day, week or month high, low and close, the current period open and Classic, Fibonacci, Camarilla or Woodie pivots for each period, with a panel showing the nearest level above and below price.
Shows the relative strength of USD, EUR, GBP, JPY, CHF, CAD, AUD and NZD, plus an optional gold (XAU) line, built from the 28 major pairs, with a strongest-to-weakest ranking panel.
Volume-weighted average price that resets every day, week or month, with two pairs of standard-deviation bands, the previous period's final VWAP and a panel showing how far price is from VWAP in price, points and sigma units.
A script that turns candles into a MIDI file: one instrument per symbol, meter detected from the data, pitch from the move, duration from the candle body.
Dynamically export customizable historical bar data (OHLC, Tick Volume) and selected technical indicators (RSI, MACD, ATR, ADX, Stochastic, CCI, MFI, Momentum) directly to a clean .csv file with automatic header generation.
A real-time CCanvas on-chart utility for MetaTrader 5 that calculates net lot exposure per currency across all open positions and simulates the exact margin, Margin Level (%), and Stop-Out buffer impact of a new Buy or Sell order—automatically accounting for your broker's hedged margin rules.
Free panel indicator for funded / prop-firm accounts: shows the room left before the daily loss limit and the static maximum drawdown, and alerts when you get close. Monitor only: it never opens, closes or blocks trades.
Exports the closed positions of the account to a CSV file (one row per position) and shows a summary: trades, win rate, profit factor, net result, max drawdown and results per symbol. Read-only.
A compact on-chart scanner that shows the RSI of the Market Watch symbols (or of a custom list) in a sorted, color-coded dashboard, marks overbought and oversold symbols, and can send alerts when a symbol enters one of these zones.
Devil Trader AI Lite is an automated Smart Money & Liquidity Expert Advisor engineered exclusively for GOLD (XAUUSD) on M30 and H1 timeframes. It maps Major Demand and Supply Order Blocks, waits for confirmed rejection candles, and applies dynamic ATR Stop-Loss, auto-lot sizing, and trailing stop protection with zero Martingale.
Break-even and trailing stop for open positions, measured in R (distance to the first stop loss). Respects stops level and freeze level, only moves the stop in profit direction.
Probabilité de surapprentissage lors du backtest (PBO) d'une optimisation MT5 par validation croisée symétrique sur le plan combinatoire. Chaque itération envoie ses résultats quotidiens sous forme de trame, et la PBO est calculée à la fin de l'optimisation.
Panneau intégré au graphique qui convertit un paramètre de risque en taille de lot et montre l'impact du pas de volume et du lot minimum du courtier sur ce risque. À titre d'affichage uniquement : il ne passe, ne modifie ni ne clôture jamais d'ordre.
Seven-Bar Pressure Flip (SBPF) is a sell-only Expert Advisor for MetaTrader 5, provided as a research example for XAUUSD on the M15 timeframe. It looks for a bearish reversal candle following positive average candle-body pressure and manages positions using ATR-based stops, a fixed reward-to-risk setting, and a bar-count exit.
PRO Day Trading Signals is a non-repainting M15 indicator for MT5 that finds trend-following pullback entries after a liquidity sweep. How it works: it trades only in the direction of the H4/H1 trend (EMA200, EMA20/50). It waits for an M15 candle to sweep the previous 10-bar high or low at the EMA20/50 zone and close back inside. It confirms with a strong candle body (≥0.30 × ATR) and RSI (≥52 for BUY, ≤48 for SELL). Signals appear only on closed bars.
An MQL5 indicator example that checks the latest closed candle and suppresses duplicate alerts.
Marks every weekend gap on the chart, measures it in price and in ADR, shows whether and how fast it was filled, and keeps fill statistics for recent weeks. Display only, it does not trade.
Shows where today's daily ATR stands against the last 1, 3 and 5 years, and translates an ATR stop into money, lot size and minimum-lot risk for your account settings. Completed bars only. Display only, it does not trade.
Builds a time-of-day profile from your own broker's history: the typical spread, the typical tick activity and the typical spread-to-range cost of every time slot of the trading day. Cheap and expensive slots are marked in the indicator window, the daily rollover window is flagged, and a panel lists the best and worst slots and ranks the current spread against its own slot.
Intraday momentum EA for the Nasdaq 100: trades breakouts of a noise band around the New York open (rules of Zarattini, Aziz and Barbon, 2024), exits inside the band or across the session VWAP, flat at 16:00 New York.
Tokyo, London and New York session boxes with high-low range, kept on the right hours through every clock change, plus a live clock panel.
Tracks live MQL5 economic calendar events and real-time Bid-Ask spread in a chart HUD, exposing three iCustom buffers for EA news and spread gating.
False breaks at an ATR envelope, drawn as trades: price pushes through a band, closes back inside, and a box runs from the entry to the moving midline, with the stop as a thick line. Each label prints the win rate of earlier signals in the same RSI zone, and a corner card charts it for every zone.
Detects swing highs and lows automatically and draws Fibonacci retracement levels on the latest completed swing leg. The levels move to the new leg as soon as a new swing is confirmed; the levels, their colors and the swing sensitivity are configurable.
Small include file that gives you the lot size from risk in percent (or fixed money) and the stop loss distance. Rounds always down, checks min/max lot and free margin.
Expert Advisor éducatif : cassure de la fourchette journalière avec ordres en attente BuyStop/SellStop, rapport risque/rendement, prise de bénéfices et jours de trading. Code MQL5 clair et commenté, avec vérifications de la marge et du niveau de stop. Uniquement pour la version démo et le testeur de stratégie.