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 !
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 ContinuerOutil de surveillance en temps réel de la marge de sécurité contre les baisses quotidiennes et indicateur précis du seuil de dépassement pour les comptes des sociétés de trading pour compte propre. Comprend la reconstitution de l'historique des transactions à 00h00 (heure du serveur) (commissions d'entrée comprises), le gel de l'instantané du HWM à 00h00, l'étalonnage des taux croisés OrderCalcProfit en deux étapes et des tampons de données iCustom() pour les Expert Advisors.
Écarts de juste valeur non actualisés sur les barres fermées, avec des états de zone (active, touchée, atténuée) et des tampons iCustom pour les EA.
Manual one-click trading panel for MetaTrader 5. Calculates the lot size from your risk % and stop loss (always rounded down), places SL/TP by pips and reward:risk, and manages trades with breakeven, trailing stop and Close All (only its own trades). Shows balance, equity, spread, floating P/L and an Asia / London / New York session tracker. No trading strategy inside: trades open only when you click BUY or SELL.
Surveille l'ensemble du compte et clôture toutes les positions avant que la limite de perte journalière ou de drawdown maximal ne soit atteinte, puis maintient le compte inchangé jusqu'à la fin du bloc. N'effectue aucune opération.
Consultez l'effet de levier réel de chaque symbole Market Watch, y compris les paliers de marge variable, avec le swap, la commission et le spread en temps réel, le tout dans un seul panneau.
Zero-DLL on-chart execution monitor tracking genuine tick-only Min/Avg/Max spread, Spread-to-ATR ratio, decoded broker swap modes, 3x rollover day, and 1.0-lot all-in cost.
Zero-DLL intraday session box indicator (Asia, London, New York) with 14-day Average Daily Range exhaustion tracking and dynamic ADR Upper/Lower target lines.
JPN225 Yen Check is a free, fully open EA for the Nikkei 225 on M30. It buys when the Nikkei is holding near the top of its recent range, but only if it hasn't run too far ahead of GBPJPY. Everything is closed by 17:00 server time. Four conditions, long only, one trade at a time, a stop loss on every trade.
Zero-DLL on-chart HUD that calculates ATR-based Stop-Loss/Take-Profit distances and broker-normalized lot sizes across 3 configurable risk tiers.
Donchian channel breakout Expert Advisor with EMA trend filter, ATR stop, ATR trailing stop, break-even and position size from risk % of balance.
A library for MetaTrader 5 that declares rules between the inputs of an Expert Advisor once in the code. OnInit rejects a combination that breaks a rule, with the reason in the Journal; before an optimization starts, OnTesterInit estimates which share of its passes the rules would reject and warns above a limit you set.
Protects prop firm challenge and funded accounts: watches equity in real time and closes all trades before the daily loss or maximum loss limit is broken, with an optional profit target lock and a live progress panel.
Puts the contract specification of the chart symbol on one sheet, including the money value of one point and the margin for one lot.
Structural Swing Migration BUY is an educational Expert Advisor for MetaTrader 5 that opens BUY positions when confirmed swing highs and swing lows move upward together. It evaluates closed M15 candles and combines structural confirmation with a volatility threshold and a bullish candle filter.
One include file that encrypts texts and bytes so only a program with the same key can read them. A wrong key or a changed message is refused instead of read as garbage, keys can come from a password, and the code is checked against the official NIST and RFC test vectors.
Trace la fourchette d'ouverture d'une session configurable (heure de début et durée en minutes, avec un ajustement au fuseau horaire du serveur), les niveaux 1R et 2R au-dessus et en dessous de la fourchette, ainsi que le VWAP de la session (volume par tick, ou volume réel lorsque le courtier le fournit). Un petit panneau recense, sur les N dernières sessions terminées, le nombre de celles où la fourchette a été franchie uniquement à la hausse, uniquement à la baisse, des deux côtés ou pas du tout, ainsi que la fréquence à laquelle le cours a atteint les niveaux 1R et 2R après le premier franchissement. Ces statistiques sont des comptages historiques : elles décrivent le passé et ne permettent pas de faire des prévisions. Seules les barres clôturées sont prises en compte, ce qui évite tout « repaint » ; des alertes facultatives (fenêtre contextuelle, notification push et alerte sonore) se déclenchent une fois par direction et par séance lorsqu’une barre clôturée se ferme en dehors de la zone. Huit tampons (plage, cibles, VWAP, état de cassure) peuvent être lus depuis un Expert Advisor via iCustom(). Fonctionne sur les périodes M1 à M30, ne recalcule que les nouvelles barres et supprime ses objets graphiques lorsqu’il est désactivé. En lecture seule : il n’effectue jamais de transactions. Pas de DLL, pas de requêtes Web.
Affiche les plus hauts et les plus bas de la veille, de la semaine précédente et du mois précédent, ainsi que des niveaux ronds automatiques autour du cours actuel. Chaque niveau est accompagné d'une légende indiquant le nombre de fois où le cours l'a frôlé et le nombre de fois où une barre l'a « balayé » (c'est-à-dire où elle a franchi le niveau avant de clôturer du côté d'origine). Les comptages ne prennent en compte que les barres clôturées, ils ne sont donc pas mis à jour. Alertes optionnelles (fenêtre contextuelle, notification push, e-mail, son) pour les « balayages » et les nouveaux contacts. La tolérance de contact correspond à une fraction de l’ATR ou à un nombre fixe de points. Les 6 niveaux des périodes précédentes et leurs nombres de contacts sont exposés dans 12 tampons d’indicateur pour une utilisation depuis un Expert Advisor avec iCustom(). Fonctionne sur n’importe quelle période allant jusqu’à H4. En lecture seule : il n’ouvre, ne modifie ni ne clôture jamais de transaction. Pas de DLL, pas de requêtes Web.
Checks the chart's history against the symbol's trading sessions and separates real holes from holiday short sessions and days without bars. Marks the holes on the chart, shows coverage and the largest hole, warns when the history stops short of now, and can write a CSV report.
Prop Firm Equity Guard protects prop-firm challenges and funded accounts. It monitors live equity against your daily loss and max drawdown limits, then closes all positions, deletes pending orders and locks trading before the firm's limit is hit. A safety buffer makes it act early, and anything opened while locked is closed instantly. It supports static and trailing drawdown, an optional profit target lock and alerts, saves its state through restarts, and shows an on-chart dashboard with room left and a reset countdown. It works alongside manual trading and other EAs.
Shows the closed trades of the account in R (net profit divided by the money at risk at entry): expectancy, win rate, drawdown in R, losing streak, per-symbol summary and CSV export.
Drag a stop line on the chart and see the volume for a given risk, the real risk after rounding, and a warning when even the minimum volume risks too much.
Higher-timeframe EMA (fast and slow) on a lower-timeframe chart, using only higher-timeframe bars that are already closed. Values never change after the bar closes.
Round number levels for Gold (XAUUSD) and any symbol on MT5. Draws major and minor round levels around price plus Asia, London and New York session open lines, with an optional alert when a candle closes across a major level. Open source code.
Multi timeframe trend dashboard for Gold (XAUUSD) and any symbol on MT5. Shows up, down or flat for up to 6 timeframes from a fast and slow EMA on the last closed bar, with the distance in points and an alert when all line up. Open source code.
Engulfing and inside bar scanner for Gold (XAUUSD) and any symbol on MT5. Marks bullish and bearish engulfing candles and inside bars on closed bars, draws the mother bar range as a box and can alert on each pattern. Arrow buffers for iCustom. Open source code.
One include file that gives your EA or indicator keyboard shortcuts the user types into the inputs, such as Shift+B. Each press fires one action, Shift+B never fires on a plain B, and a shortcut that cannot work is refused at start with the reason.
Watches the equity like a prop firm does: daily loss limit and max loss limit, static or trailing, floating profit included. Stops new trades at a warning level, closes everything on a breach and remembers it after a restart.
Affiche les plus hauts et les plus bas d'une période sélectionnée et émet une alerte dès le premier franchissement de chaque côté. Ces niveaux sont également accessibles via iCustom.
Gère les positions déjà ouvertes : il ajoute les SL/TP manquants, déplace le stop au seuil de rentabilité, le suit, limite le nombre de positions et applique des limites quotidiennes de capital. Il n'ouvre jamais de positions.
Measures how long price takes to come back to its moving average. The histogram shows the distance of the close from an EMA in ATR. Every time that distance first reaches a stretch level (1, 2 and 3 ATR by default), the indicator follows the stretch until the close is back at the average, runs further, or the wait is over. A panel shows, for each level, how often price came back, how often it ran further first, and the median and 80th-percentile number of bars the return took. One line can be pasted into a comment to compare symbols. It is a statistics tool and gives no trade signals.
Account guard for prop-firm challenges. It does not open trades: it watches the whole account (manual trades and any EA) and closes everything before the firm's limits are broken. - Daily loss limit: closes all and blocks trading until the next day. - Max drawdown: static or trailing (can lock at the start balance); closes all and locks the account. - Optional profit-target lock, max lots / max positions, Friday close. - On-chart panel (equity, today's P/L, daily and drawdown room left) and push alerts. - Equity peak and lock are saved per account, so a restart does not reset the protection. Main inputs: StartBalance, DailyLossUSD, DDMode, MaxDDUSD, LockAtStart, safety buffers, TargetUSD, MaxOpenLots, MaxOpenPositions, FridayCloseOn, ResetLock. Attach to any one chart, any symbol and timeframe, with Algo Trading enabled.
Draws a live heatmap of two optimised inputs while the Strategy Tester optimises your EA, and scores every cell by its neighbourhood: the plateau score is the mean minus k times the standard deviation of the surrounding cells. It shows whether your best parameters sit on a stable plateau or on a single lucky cell, and writes an HTML report, a CSV and a picture of the map. Includes a Monte Carlo drawdown criterion and a small demo EA. Part of the free Robustness Lab set.
Takes the closed trades of your account (all, or filtered by magic number and symbol), reshuffles or resamples them thousands of times and shows how deep the drawdown could realistically get. You get drawdown percentiles, the probability of a drawdown above your limit, the spread of final equity, an equity fan chart and a drawdown histogram, on the chart and as an HTML report. Part of the free Robustness Lab set.
Classifies the market as trend, mean-reversion or noise using three public measures: the Hurst exponent by rescaled range with small-sample bias correction, Kaufman's efficiency ratio and the percentile of the current ATR. A colour strip shows the regime bar by bar, and a panel shows the regime on M15, H1, H4 and D1 at the same time. Part of the free Robustness Lab set.
Shows how a symbol has behaved in every hour of every weekday, as a heatmap on the chart. Colour the cells by t-statistic, mean return, hit rate or average range. Cells that pass a significance threshold get a gold frame, and the panel tells you how many cells would pass that threshold by chance alone, so a single lucky hour is not mistaken for an edge. Hover any cell for its full numbers. Part of the free Robustness Lab set.
Calculates the lot size for a risk % and a stop distance on any symbol, using the broker's own profit calculation, so the result is exact for forex, gold, indices, stocks and crypto.
Builds H2 to D1 candles from H1 on the New York close clock, so your indicators see the same candles on every broker, no matter which server time it uses. Detects the server clock automatically.
One call before you send an order: is the session open, how long until it closes, are quotes still coming in, is trading allowed. Gives you the reason when the answer is no.
Un oscillateur de classification de tendance qui mesure l'ampleur et la persistance de l'écart entre le cours et un VWAP (prix moyen pondéré en fonction du volume) glissant, exprimées en écarts-types, permettant ainsi de distinguer les phases de tendance des phases de consolidation.
Une bibliothèque en un seul fichier qui gère le fonctionnement d'un EA : vérifications avant exécution, normalisation par rapport aux limites du courtier, nouvelles tentatives sécurisées, un ordre par signal, isolation par « magic number » et restauration de l'état après un redémarrage. Prise en compte du lot en fonction du risque, de la limite de perte journalière et du seuil de capital minimum. Testée dans le Strategy Tester.