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

Soumettre votre code

Shows the day's result against the daily and max loss limits of a prop firm account, with a warning alert, in a panel on the chart.

Resamples your closed trades 10,000 times to show whether your average trade is an edge or could still be luck: the 95% range of the average and the chance it is below zero.

Modèle d'EA « Opening Range Breakout » avec protection du compte intégrée. Identifie les plus hauts et les plus bas des N premières minutes suivant l'ouverture de la séance et place des ordres stop OCO au-dessus et en dessous de la fourchette. Comprend le dimensionnement des positions en fonction du risque, une limite de perte journalière, une limite de drawdown maximal, un filtre de fourchette ATR, un filtre de direction de trade et une protection contre les positions portées au lendemain. Toutes les durées de séance sont des paramètres configurables. Modèle à but pédagogique, ce n'est pas un système garantissant des profits. Testez-le sur un compte démo avant toute utilisation en production.

A specified moment in time can be analyzed through multiple synced timeframes from 1 host chart for a symbol.

Vérifie l'historique des ticks que reproduisent les backtests « Chaque tick basé sur des ticks réels ». Cinq vérifications par symbole sur les N derniers jours : cotations impossibles et croisées, horodatages inversés ou répétitifs, inversions de cours d’un tick dont l’amplitude est un multiple du spread médian du symbole, silences au sein des sessions de cotation déclarées par le courtier, et minutes où les ticks et les barres M1 ne concordent pas. Chaque anomalie est enregistrée dans un fichier CSV avec son horodatage à la milliseconde près, et l’outil affiche ses propres calculs afin que le rapport puisse être revérifié. En lecture seule : aucune fonction de trading, aucune DLL, aucune connexion réseau.

Un EA gratuit et entièrement ouvert pour le JPN225 (Nikkei 225) sur la timeframe M15. Il achète lorsque le cours affiche une tendance haussière, que la dynamique n'est pas excessive et que le volume est faible. Backtest de 2022 à 2026 : facteur de profit de 1,68, +18,5 % par an, a passé avec succès 15 tests de résistance. Position neutre à 17 h.

Measures market activity from the waits between quotes. An ACD model with the daily rhythm removed gives one ratio per tick: 1 is normal, 2 twice as busy.

Un tableau récapitulatif des règles d'un défi entre sociétés de trading : perte journalière, perte maximale (statique ou glissante), objectif de profit, nombre minimum de jours de trading et règle du « meilleur jour » (régularité). Pour chaque critère, il indique le montant déjà utilisé et la marge restante, en euros. La fonction « One more trade » (Une transaction supplémentaire) vous indique la taille de lot maximale permettant de maintenir un stop-out dans la marge disponible aujourd’hui et dans la marge de perte maximale. En lecture seule : il n’ouvre, ne modifie ni ne clôture jamais une transaction. Les préréglages contiennent des valeurs types ; les sociétés modifient leurs règles, veuillez donc vérifier les vôtres et utiliser le préréglage « Custom ». Basé sur la bibliothèque ATS Risk Library (ATS_RiskLib.mqh, incluse).

Session Levels draws the reference levels intraday traders watch most: Asian range, London and New York sessions, previous day and week high/low, daily VWAP, swing points and round numbers. Hover any level to read what it is and why it matters. Optional alerts when price breaks the Asian range or the previous day high/low.

Draws ICT structure on the chart (liquidity pools, sweeps, market structure shift, fair value gaps) from closed bars only, adds a trade plan for every confirmed setup and keeps an honest statistics panel of what those setups did on your symbol. Analysis only – it does not trade.

Checks the broker's session table against the M1 history. For every minute of the week it counts on how many of the last N days the symbol really has a bar, and sets that next to SymbolInfoSessionQuote and SymbolInfoSessionTrade: declared minutes that are usually empty (rollover holes), bars in minutes the table calls closed, trade and quote tables that disagree, and one-off outages such as an early holiday close. Prints the real sessions per weekday, writes every finding to CSV and prints its own arithmetic. Read only: no trade function, no DLL, no network.

Look after open positions in an Expert Advisor: break-even, trailing stop, two partial closes, and a stop and target for positions that have none. It never opens a trade.

DailyLossGuard — Hard Daily Loss Protection (Prop-Firm Challenge Essential)

Measures how far your PC clock is from the trade server's clock, from the server time stamped on live ticks, and tells you how to fix it.

Shows how much of the daily loss limit of a prop firm account is already used, and how much is left. Read-only indicator.

Reads the server clock from the symbol's own H1 history. The forex and CME week closes at 17:00 New York, so the server time of every weekly close gives the server's UTC offset for that week. Over 60 weeks it flags irregular closes, dates every clock change and tests it against the US and European daylight saving calendars, cross-checks TimeTradeServer minus TimeGMT, and lists the server time of the London, New York, Tokyo and Sydney opens for the coming weeks. Writes every close to CSV. Read only: no trade function, no DLL, no network.

A lightweight manual trading panel for MetaTrader 5 with market order execution, risk-based position sizing, Break-Even, partial close and position management. Works in both live trading and the Strategy Tester.

Shows the prices of the current symbol at which the account reaches margin call and stop out, with a what-if mode for extra volume, the maximum volume you can add and pending orders that trigger on the way.

Broker Basket Preflight est un script MetaTrader 5 autonome en lecture seule pour vérifier la configuration d'un courtier avant de développer ou tester un EA multi-symboles. Il lit les noms exacts déjà sélectionnés dans Market Watch et écrit dans le journal Experts. Le source MQ5 contient la licence MIT ; aucune bibliothèque externe, DLL ou requête réseau n'est nécessaire.

Closes all trades and keeps the account flat when the daily loss limit, the maximum drawdown or a daily profit target is reached. Prop-firm style rules, an on-chart panel, and a state that survives terminal restarts.

A small include file that tells your Expert Advisor when it is inside a news window, using the economic calendar built into MetaTrader 5. No web requests and no DLL.

Sends every opened and closed position, pending orders and a daily account summary to your Telegram chat. It never trades on your account.

Running several EAs on one account? This script groups the closed trades by magic number and shows the score of each EA: win rate, profit factor, net profit and drawdown. Read-only, writes a CSV file.

Several buys and sells open on one symbol? The indicator draws where all buys, all sells and the whole basket break even, and the price for a profit target. Planned entries can be added to see the break-even before you trade.

Shows what every buffer of an indicator holds - arrows, a line or a colour index - and labels the arrows on the chart with their buffer numbers. Works with compiled indicators without source code.

Support and resistance channels built from price pivots and ranked by strength: each pivot inside a channel and each bar that touched it adds to its score. The strongest channels run across the whole chart, colored by where price is, with break arrows, pivot marks, two averages and alerts.

QCL Heikin Flow applies two-stage smoothing to Heikin Ashi candles, helping traders filter price noise and visualize trend direction. Features adjustable smoothing periods, four moving average methods, and customizable candle colors.

Closes all trades and blocks new ones when the daily loss limit, maximum loss or profit target is reached. Built for prop firm challenges. Works with manual trading and any other EA.

Smart Money Concepts market structure on pullback swings: trend, BoS, CHoCH, IDM and liquidity sweeps. A level counts as taken only on a close — a wick through it is marked as a sweep (x) and relocates the swing. Self-contained, closed bars only.

A momentum oscillator that relaxes back toward zero at a speed set by the current ATR relative to its own moving average, so decay speed adapts automatically to whether the market is calm or volatile.

A chart panel for MT5 that places Buy Limit, Sell Limit, Buy Stop and Sell Stop pending orders with one click. Volume, distance and optional SL/TP are set on the panel; OCO cancels the opposite order automatically. Includes bulk delete, a live order list and automatic handling of broker STOPS_LEVEL and filling mode. Execution tool only - no signals, no guaranteed results.

A script for accounts that run several Expert Advisors or configurations. It aggregates the net result of each configuration (magic number, or magic number and symbol) per calendar day and measures how much each one contributes to the portfolio drawdown: drawdown added by leave-one-out, share of the worst drawdown, and Euler variance share. It prints verdicts, recommendations, and a heuristic A+ to F score. It runs out of the box on a built-in demonstration portfolio and is written in pure MQL5.

GER40 Evening Coil is a free, fully open EA for the German 40 index on H1. It buys in the evening session after a recent narrow-range bar, when volatility is calm and volume is normal, and closes everything by 23:00 server time. Four conditions, long only, one trade at a time, a stop loss on every trade.

USDX Trader v1.33 — Synthetic Dollar Index chart and basket trading for MetaTrader 5 Version 1.33 · MetaTrader 5 · Any broker that offers the major USD pairs

This Expert Advisor trades fair value gaps in the direction of market structure, the way Smart Money Concepts describes it. It is the third step of a series that has been built one piece at a time: In previous shared codes, the SMC Pullback Indicator decided which highs and lows matter, the SMC Market Structure indicator turned those swings into a trend with BoS, CHoCH, IDM and liquidity sweeps, and this EA trades the result.

Free script exporting clean, deterministic OHLC + tick volume + 4 indicators (MA, RSI, MACD, ATR) for M1/M15/H1 to CSV. Closed bars only, zero lookahead — ideal for analysis and ML datasets.

Before the Friday close: estimates how much your open positions could lose if the market reopens with a gap, and compares it with the room left under the daily loss limit of the next trading day. For prop firm and funded accounts. It only reads the account.

Draws the fair value gaps (three-candle imbalances) that price has not filled yet, follows how much of each gap is filled and ends the box when it is. Closed candles only, no repaint. Alerts and buffers for EAs.

Market structure in the way of Smart Money Concepts: swing highs and lows with HH / HL / LH / LL labels, BOS (break of structure) and CHoCH (change of character) lines. Swings count only after their right candles close, so nothing repaints. Alerts and a trend buffer for EAs.

Non-repainting three-bar Fair Value Gap detector for MetaTrader 5. Closed-bar detection, the 50% Consequent Encroachment level, mitigation as an explicit state machine, incremental scanning, and a built-in self-audit that re-checks the stored gap levels against the closed-bar series on attach. Pure native MQL5, no DLLs, no external dependencies.