Les Expert Advisors analysent les graphiques de prix et effectuent des transactions automatiquement en suivant les règles sous-jacentes. Vous trouverez ici des codes sources MQL5 permettant de résoudre divers problèmes. Vous pouvez sélectionner aussi bien des Expert Advisors simples basés sur le croisement de moyennes mobiles que des Expert Advisors complexes impliquant des algorithmes compliqués de génération de signaux et une protection contre les erreurs de trading.
Vous pouvez télécharger et lancer les Expert Advisors proposés dans MetaTrader 5. Il est recommandé de tester et d'optimiser les robots de trading dans le testeur de stratégie avant de les utiliser. La bibliothèque d'Expert Advisors 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 ContinuerDaily Profit Lock is a free utility EA that protects a good trading day. Once today's profit hits your cap, it closes your trades, deletes pending orders and blocks new trades until the next day. You can set the cap as a fixed amount, a percent of balance, or a share of total profit, which suits prop-firm consistency rules. Dry run is on by default, so it only alerts until you're ready, and it never opens a trade itself.
Chart panel Expert Advisor with BUY, SELL and CLOSE buttons. Market orders use a fixed lot with stop loss and take profit in pips, and the panel shows the floating profit of its trades.
Utility Expert Advisor that closes all open positions when equity falls a set percentage below its peak or when today's loss reaches a limit. It never opens trades.
Utility Expert Advisor that moves the stop loss of open positions to break-even and then trails it by a fixed pip distance or an ATR multiple. It never opens trades.
Trend-following breakout EA using a Gaussian-filtered channel, ATR bands, risk-based lot sizing, and an R-multiple trailing stop.
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.
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.
Donchian channel breakout Expert Advisor with EMA trend filter, ATR stop, ATR trailing stop, break-even and position size from risk % of balance.
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.
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.
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.
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.
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.
A bolt-on module (.mqh) plus a ready integration example: a news filter that keeps your EA out of new entries around economic releases — using only the built-in MT5 calendar, no DLL and no WebRequest — and a slippage log that records, for every fill, the difference between the price you asked for and the price you got.
Scans the trend on M5, M15, H1, H4 and D1, shows market bias, volatility, session and previous-day levels in one clean panel, and opens trades with one click using a risk-based lot, ATR stop loss and R:R take profit.
Free MT5 research EA with three closed-bar entry models, ATR stops, fixed-R targets and a tester cost ledger. Version 2.31 uses the chart symbol and timeframe. Historical research: XAUUSD M5. Educational source; published tests were loss-making.
Starts a trailing stop when the price reaches the take-profit zone of a position you already have open. The take profit is removed, extended or kept. It never opens trades.
A simple account guard: once the day's loss (equity against the balance at the start of the day) reaches your limit, it closes all positions, deletes pending orders and keeps the account flat until the next day. Works on manual trades and on any EA. Never opens trades.
Moves the stop loss of open positions to break-even plus a small locked profit once they reach a profit trigger. Works on manual trades and on trades from any other EA (magic filter). Never opens or closes trades and never moves a stop backwards.
Un EA de scalping Supertrend doté de 14 filtres sélectionnables et d'un panneau d'auto-évaluation qui affiche le taux de réussite réel à côté du taux de réussite nécessaire pour atteindre le seuil de rentabilité après prise en compte du spread réel, ce qui vous permet de déterminer si un paramètre offre un avantage réel ou s'il ne s'agit que d'un pourcentage élevé.
Tick Scalper Helper est un outil de trading manuel destiné aux traders qui opèrent sur des horizons temporels très courts et souhaitent suivre chaque fluctuation de cours.
Moves the stop loss to break-even and then trails it on trades that are already open. It never opens or closes a trade.
Gestionnaire de positions pour MT5 qui clôture la position la plus rentable ainsi que la plus déficitaire lorsque leur résultat combiné atteint le seuil minimum que vous avez défini. Prise de bénéfices et stop loss groupés en montant, filtre magique, interface simple. Compatible avec les stratégies « grid », « martingale » et les transactions manuelles. Code source ouvert.
Daily loss limit and daily profit target for the whole account (prop firm style). When a limit is hit it closes positions, deletes pending orders and keeps the account flat until the next daily reset.
Risk-based lot size panel: risk (% of balance, % of equity or money) and stop loss in points give the lot. Shows money at risk, reward and margin and opens BUY / SELL with SL and TP in one click.
Drag a stop-loss line and read the lot size for your risk. The loss per lot comes from OrderCalcProfit, so the size is right on metals, indices and cross pairs. Shows the real risk after rounding, the margin and an R-multiple take profit. Places no orders.
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.
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.
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.
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.
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.
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.
Spread Monitor est un Expert Advisor MQL5 qui affiche un panneau avec un code couleur sur le graphique. Ce panneau indique le spread actuel du symbole associé en points, ainsi que les valeurs moyennes, minimales et maximales sur un historique glissant. Il comptabilise également le nombre d'échantillons enregistrés ayant dépassé un seuil d'alerte et affiche la ligne d'état en rouge lorsque le spread actuel est supérieur à ce seuil. Cet utilitaire ne passe pas d'ordres. Les paramètres permettent de définir le seuil d'alerte, la taille de l'historique, l'intervalle de rafraîchissement et la position du panneau. Les objets du panneau sont supprimés lorsque l'Expert Advisor est déconnecté.
A lightweight MetaTrader 5 Expert Advisor that records new-bar events and terminal connection-state changes to a local CSV file. Designed for developers and traders who need reliable event logging, diagnostics and monitoring without executing trades.
Free Expert Advisor that watches a basket of open positions (all, by Magic number or by symbols) and closes the whole basket when floating loss or profit reaches a set percent of balance. Works next to any EA or manual trading.
Part 4 of the regression-testing series. An Expert Advisor that builds a fixed matrix of 20 valid and invalid trade requests (stops at and inside the stops level, wrong-side stops, volume outside the symbol rules, oversized and unknown closes, unchanged and wrong-side modifications), checks each one with OrderCheck() without sending anything, and reports PASS, FAIL or INCONCLUSIVE per row with a digest you can compare between runs.
Un panneau graphique pour MT5 permettant de passer des ordres en attente « Buy Limit », « Sell Limit », « Buy Stop » et « Sell Stop » en un seul clic. Le volume, la distance et les niveaux SL/TP (facultatifs) sont définis sur le panneau ; la fonction OCO annule automatiquement l'ordre opposé. Comprend la suppression groupée, une liste d’ordres en temps réel et la gestion automatique du paramètre STOPS_LEVEL du courtier ainsi que du mode d’exécution. Outil d’exécution uniquement – pas de signaux, pas de résultats garantis.