Retrouvez-nous sur Facebook !
Rejoignez notre page de fans

Utiliser les nouvelles fonctionnalités de MetaTrader 5

Historique du développement de MQL5.community

Les robots de trading et les indicateurs techniques les plus populaires, les signaux d'actualité, les programmes MQL5 prêts à l'emploi qui arrivent régulièrement dans la CodeBase et les thèmes les plus discutés dans le forum.

Articles les plus lus ce mois-ci

Comment acheter un robot de trading sur MetaTrader Market et l'installer ?

Comment acheter un robot de trading sur MetaTrader Market et l'installer ?

Un produit de MetaTrader Market peut être acheté sur le site Web MQL5.com ou directement depuis les plateformes de trading MetaTrader 4 et MetaTrader 5. Choisissez un produit qui convient à votre style de trading, payez-le en utilisant votre méthode de paiement préférée et activez le produit.

Comment publier un produit sur le Marché

Comment publier un produit sur le Marché

Commencez à proposer vos applications de trading à des millions d'utilisateurs MetaTrader du monde entier via le Marché. Le service offre une infrastructure prête à l'emploi : accès à un large public, solutions de licences, versions d'essai, publication de mises à jour et acceptation de paiements. Il vous suffit d'effectuer une procédure d'inscription rapide du vendeur et de publier votre produit. Commencez à générer des bénéfices supplémentaires à partir de vos programmes en utilisant la base technique prête à l'emploi assuré par le service.

Comment tester un robot de trading avant d’acheter

Comment tester un robot de trading avant d’acheter

L’achat d’un robot de trading sur MQL5 Market présente un avantage distinct par rapport à toutes les autres options similaires - un système automatisé proposé peut être testé en profondeur directement dans le terminal MetaTrader 5. Avant d’acheter, un Expert Advisor peut et doit être exécuté avec soin dans tous les modes défavorables du Strategy Tester intégré pour avoir une compréhension complète du système.

11 nouveaux produits sont désormais disponibles sur le marché :

et 6 plus...

Les meilleures ventes du marché :

8 nouveaux signaux maintenant disponible par abonnement :

ForexTrading30
181% 981 trades
Croissance:180.74%
Actions:1,139.77USD
Solde:1,247.16USD
INDRALOGIC
18% 10 trades
Croissance:17.59%
Actions:4,543,699.69IDR
Solde:4,543,699.69IDR
Gold Roboforex
11% 197 trades
Croissance:10.82%
Actions:101.80USD
Solde:103.27USD
et 5 plus...
Il y a plus de 60,450 produits disponibles sur le Marché

Les produits gratuits les plus téléchargés :

Plus de 900 nouveaux graphiques publié :

Chart USA100, H1, 2026.09.08 02:36 UTC, HF Markets (SV) Ltd., MetaTrader 5, Real
USA100, H1
Chart US30, H4, 2026.09.08 12:55 UTC, Pepperstone Markets Kenya Limited, MetaTrader 4, Real
US30, H4
Chart EURUSD, M1, 2026.09.08 15:53 UTC, Combat Capital Markets Ltd., MetaTrader 5, Demo
EURUSD, M1

20 nouveaux produits sont désormais disponibles sur le marché :

et 15 plus...

Nouvelles publications dans CodeBase

Les meilleures ventes du marché :

Il y a plus de 60,390 produits disponibles sur le Marché

10 nouveaux signaux maintenant disponible par abonnement :

BiliionMax
119% 6504 trades
Croissance:118.83%
Actions:65,576.14USD
Solde:65,650.33USD
Crossbow Manual 114513
23% 69 trades
Croissance:22.55%
Actions:612.74USD
Solde:612.74USD
et 8 plus...

15 nouveaux produits sont désormais disponibles sur le marché :

et 10 plus...

Nouvelles publications dans CodeBase

  • Universal Pip Value and Dynamic Lot Calculator Class for MQL5 A lightweight, OOP-compliant MQL5 header class (.mqh) for accurate pip value calculation and dynamic lot sizing across all instruments, featuring automated cross-currency rate conversion and broker volume normalization.
  • GDS Renko Replay Trainer GDS Renko Replay Trainer is a free educational tool for practising manual decisions on historical Renko charts in MetaTrader 5. Load a historical interval, replay it forward and place virtual BUY or SELL trades. You can pause, advance one tick or move to the next completed Renko brick. Each virtual position has a stop loss and take profit, and the trainer records the results of your session. The tool builds fixed-size Renko bricks from historical Bid/Ask ticks, with a classic two-brick reversal. Future ticks are not used to draw the visible chart or execute virtual trades. Buy trades use Ask for entry and Bid for exit; sell trades use the opposite sides. Orders entered on the panel wait for the next replayed valid tick. Stops and targets are checked on every tick, including price gaps.
  • VSA Glossary Built on Wyckoff Volume Spread Analysis (VSA) principles, it decodes smart money accumulation, distribution, absorption, and trend direction with zero repainting and a strict 2,000-bar performance limit.

10 nouveaux produits sont désormais disponibles sur le marché :

et 5 plus...

Les meilleures ventes du marché :

Il y a plus de 60,330 produits disponibles sur le Marché

8 nouveaux signaux maintenant disponible par abonnement :

Zhafron Arifin
9% 36 trades
Croissance:9.46%
Actions:10,946.25USD
Solde:10,946.25USD
Jaine
4% 34 trades
Croissance:4.34%
Actions:2,653.20USD
Solde:2,653.20USD
et 6 plus...

Les produits gratuits les plus téléchargés :

Les thèmes les plus populaires du forum :

10 nouveaux produits sont désormais disponibles sur le marché :

et 5 plus...

Plus de 800 nouveaux graphiques publié :

Chart EURUSD, H1, 2026.09.07 16:34 UTC, ProopCo FX Ltd., MetaTrader 5, Real
EURUSD, H1
Chart XAUUSD~, H1, 2026.09.07 11:50 UTC, Blackwell Global Investments Limited, MetaTrader 5, Real
XAUUSD~, H1
Gráfico XAUUSDm, H1, 2026.09.07 21:02 UTC, Exness Technologies Ltd, MetaTrader 5, Real
XAUUSDm, H1

Nouvelles publications dans CodeBase

14 nouveaux produits sont désormais disponibles sur le marché :

et 9 plus...

Les meilleures ventes du marché :

Il y a plus de 60,280 produits disponibles sur le Marché

8 nouveaux signaux maintenant disponible par abonnement :

MSRLab Darwinex Zero DGCM
61% 6198 trades
Croissance:60.58%
Actions:158,812.26USD
Solde:160,588.12USD
et 7 plus...

11 nouveaux produits sont désormais disponibles sur le marché :

et 6 plus...

Nouvelles publications dans CodeBase

  • RiskPilot Pro — Drag-to-Trade Risk Panel with Break-Even, Trailing and a Daily Loss Guard Drag your stop loss where you actually want it, hit Buy or Sell, and the lot size is already correct — no calculator, no spreadsheet. Handles break-even, trailing, and shuts trading down for the day if you hit your loss limit.
  • Extract information from the MT5 broker This MT5 EA is a diagnostic tool that does not execute trades, but collects and displays technical specifications relating to the broker and the trading environment. The code is structured into four main blocks: Data Collection (CollectAll): Retrieves information on the account (leverage, currency), the symbol (digits, spread, swap, volumes, stop levels), latency (ping) and time zone (Server-UTC difference). Calculates the swap in real currency. Sampling (OnTick): Updates spread statistics (minimum, average, maximum) in real time. Output: Prints the data to the ‘Experts’ log, saves it to a CSV file and displays it on a graphical panel on the chart (UpdatePanel). Helper: Functions such as CalcSwapInCurrency and various *ToStr functions convert the broker’s raw numerical data into readable strings.
Il y a plus de 12,400 codes publiés dans Codebase

Les meilleures ventes du marché :

9 nouveaux signaux maintenant disponible par abonnement :

Kingfisher
402% 347 trades
Croissance:401.73%
Actions:991.12USD
Solde:991.12USD
Odyssey247
31% 45 trades
Croissance:30.60%
Actions:768.03USD
Solde:763.48USD
Joker v5
0% 17 trades
Croissance:0.01%
Actions:100,008.67USD
Solde:100,009.56USD
et 6 plus...

Nouvelles publications dans CodeBase

  • Contract Sizer: ladder, floor and a breaker that survives a deposit Three position-sizing protections that do different things; confusing them is why so many accounts get wiped out: - ladder: one contract per X of balance, always applied as a CAP, even with manual lot sizing; - floor: below the minimum capital it does not trade; a new deposit is needed; - breaker: stops at X% below the peak, at any account size, and does not rearm by itself. What this library solves and almost none does: a deposit is not profit, and a withdrawal is not a loss. The breaker measures the drop against the balance peak. Untreated, a deposit made DURING a drawdown lifts balance and peak together, and the protection stops seeing the drop exactly when it would help. Here deposits and withdrawals shift the peak by the same amount. The peak is persisted to a file: a breaker that forgets the peak on a terminal restart is not a breaker. The demo simulates a deposit at the bottom of a drawdown. Run it with the deposit on and off and compare the "drop" column.
  • Safe Logger: why your log lines vanish while FileOpen keeps returning success Four EAs writing to the same file, all with FILE_SHARE_READ|FILE_SHARE_WRITE, FileSeek(SEEK_END), FileWrite, FileClose. Looks correct. Every FileOpen returns success. No error in the log. And the lines vanish. Reason: FILE_SHARE_WRITE lets all four open at the same time. All four call FileSeek(SEEK_END) and get THE SAME offset, because none has written yet. All four write at the same position. Whoever closes last wins. Three lines vanish silently. In my case: 12 events expected, 8 in the file. The fix is to open EXCLUSIVELY (no FILE_SHARE_WRITE) and retry while another EA holds the file. And to shout in the log when the retries run out: a log that fails silently is worse than no log at all, because you trust it. The demo script reproduces both modes. To see the loss, drag it onto four charts at the same time with safe mode off and count the lines in the CSV. On a single chart the defect does not show up - which is why it passes in testing and breaks in production.
  • Clock Diagnostic: TimeCurrent() freezes and steps backwards TimeCurrent() is not a clock. It is the stamp of the LAST TICK. Two consequences break robots in production: 1. It freezes. With no tick it does not move: illiquid instrument, end of session, unstable connection - and any rule based on it stops with it. 2. It steps backwards: on a symbol switch, a reconnection or a tick from another instrument, the value can go back. The case that cost me a whole protection: I compared the date of a daily decision with TimeCurrent() to reject an expired one. The server clock stepped back to the previous day, the comparison matched, and four EAs accepted YESTERDAY's decision as valid. The gate that should have failed closed failed open - without a single error in the log. Rule: TimeLocal() for timestamps, dates, day changes, expiry - all that must always move forward; TimeCurrent() for session hours and market data. The script measures the divergence in your environment and reports both symptoms live. Run it with the market closed.

Nouvelles publications dans CodeBase

Les produits gratuits les plus téléchargés :

16 nouveaux produits sont désormais disponibles sur le marché :

et 11 plus...
Il y a plus de 60,220 produits disponibles sur le Marché

1 nouveau thème sur le forum :

Plus de 700 nouveaux graphiques publié :

Chart FUS30., M1, 2026.09.06 12:39 UTC, Dom Maklerski Banku Ochrony Srodowiska S.A., MetaTrader 4, Real
FUS30., M1
Chart XAUUSD, M15, 2026.09.07 02:03 UTC, Exness Technologies Ltd, MetaTrader 5, Real
XAUUSD, M15
Chart XAUUSD, H1, 2026.09.06 20:52 UTC, Vantage Trading Ltd, MetaTrader 5, Real
XAUUSD, H1

Nouvelles publications dans CodeBase

  • OHLC Reality Check - at what stop distance does your backtest start lying? Opens a virtual bracketed trade on every M1 bar, walks it forward on the real tick history, and reports for a sweep of stop distances how often 1-minute OHLC modelling would score the trade the wrong way round.
  • SessionReopenEA Gold has a daily maintenance break on the CME. The first hour after it rises more than chance explains, in every calendar year of an 11-year sample - while every other hour of the day measures flat. One trade per session, a volatility-scaled server-side stop, no averaging or grid. Then my cost model turned out to be wrong. A real-tick backtest showed the true round-trip cost at the reopen is about 60 points, not the 19 my research had charged - the M1 bar spread field is a per-bar summary and understates it roughly threefold. Re-running 11 years at the corrected cost: +3.34 bps, t 7.40, 59.3% wins -> +1.60 bps, t 3.42, 50.8% wins The edge survives, at less than half its original strength. That second number is the real one. What it is not: about +3.3% a year with 4.6% drawdown, roughly one year in nine negative. At 0.01 lots that is ~130 a year - a figure that measures the position size, not the strategy.

9 nouveaux signaux maintenant disponible par abonnement :

BotCAD302
400% 2158 trades
Croissance:400.03%
Actions:1,041.57USD
Solde:1,048.91USD
MakeIt
127% 148 trades
Croissance:127.08%
Actions:1,260.69USD
Solde:1,260.69USD
Blind execution
27% 214 trades
Croissance:26.72%
Actions:302.69USD
Solde:306.45USD
et 6 plus...

Les meilleures ventes du marché :

11 nouveaux produits sont désormais disponibles sur le marché :

et 6 plus...

7 nouveaux signaux maintenant disponible par abonnement :

APEX KONG
17% 87 trades
Croissance:16.59%
Actions:984.76UST
Solde:984.76UST
Gold World
16% 53 trades
Croissance:16.14%
Actions:575.96USD
Solde:580.70USD
Vectrum Trend EA
7% 246 trades
Croissance:7.18%
Actions:106,912.12USD
Solde:107,253.72USD
et 4 plus...

16 nouveaux produits sont désormais disponibles sur le marché :

et 11 plus...
Il y a plus de 60,170 produits disponibles sur le Marché

Codes sources les plus téléchargés cette semaine

  • Functions to simplify work with orders All we want is to think about algorithms and methods, not about syntax and values how to place orders. Here you have simple functions to manage positions in MQL5.
  • iS7N_TREND.mq5 Now it's two-color (or two-mode) trend indicator, the number of calculated bars can be specified.
  • LotSize Calculation This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.

Articles les plus lus cette semaine

Comment acheter un robot de trading sur MetaTrader Market et l'installer ?

Comment acheter un robot de trading sur MetaTrader Market et l'installer ?

Un produit de MetaTrader Market peut être acheté sur le site Web MQL5.com ou directement depuis les plateformes de trading MetaTrader 4 et MetaTrader 5. Choisissez un produit qui convient à votre style de trading, payez-le en utilisant votre méthode de paiement préférée et activez le produit.

Comment publier un produit sur le Marché

Comment publier un produit sur le Marché

Commencez à proposer vos applications de trading à des millions d'utilisateurs MetaTrader du monde entier via le Marché. Le service offre une infrastructure prête à l'emploi : accès à un large public, solutions de licences, versions d'essai, publication de mises à jour et acceptation de paiements. Il vous suffit d'effectuer une procédure d'inscription rapide du vendeur et de publier votre produit. Commencez à générer des bénéfices supplémentaires à partir de vos programmes en utilisant la base technique prête à l'emploi assuré par le service.

MetaTrader 5 et le Calendrier Économique MQL5 : comment transformer les actualités en un système de trading reproductible

MetaTrader 5 et le Calendrier Économique MQL5 : comment transformer les actualités en un système de trading reproductible

Cet article présente une approche systématique du trading d'actualités dans MetaTrader 5 utilisant le Calendrier Économique intégré : structure des données, fonctions API, règles de synchronisation temporelle et filtrage des événements. Des méthodes de mise en cache et de mise à jour incrémentale sans surcharge du serveur sont décrites. L'article propose également un mécanisme pour exporter l'historique vers une ressource .EX5 en vue de tests déterministes utilisant le même algorithme.

Nouvelles publications dans CodeBase

  • Trade Excursion Report: MFE and MAE of every closed trade, to CSV Exports one CSV line per closed trade with the numbers a statement does not carry: the best unrealised profit the trade showed (MFE), the worst unrealised loss it survived (MAE), how much of the MFE was actually kept, how many bars it spanned, and how long it was held. Same measurement as the Trade Excursion indicator, written to a file instead of drawn, because the questions worth asking of this data are ones a chart cannot answer: does the capture ratio depend on the hour of entry? Are the trades I close early the ones I hold longest? Do losers on Mondays reach a different MAE than on Fridays? Those are one pivot table away once the CSV exists. Output is semicolon separated with a header row, in MQL5\Files; opens in any spreadsheet. Measurement limit: excursions come from bar highs and lows on the chosen timeframe; the path inside a bar is unknown. The bars column reports the resolution each trade got, and the summary counts single-bar trades separately instead of averaging them in.
  • Trade Excursion: how much of each winner you actually kept (MFE/MAE from your own history) Your statement tells you what you KEPT. It does not tell you what you HAD. This indicator reads your own closed trades from the account history and draws, for each one, the full range it travelled: the best unrealised profit it ever showed (MFE) and the worst unrealised loss it survived (MAE). The gap between what a trade showed and what it paid is where two common problems hide, and neither is visible in a balance curve: winners closing far below their best point (the exit leaves money behind), and losers whose worst excursion barely passed the stop (the stop sits inside the noise). The number to look at is the CAPTURE RATIO: of the profit a winner showed at its best, how much did you take home? 90% says the exits are well placed; 30% says the market kept offering and the exit kept refusing. Limit, stated up front: excursions come from the bars each trade spanned, on the chart timeframe; the path inside a bar is unknown. Predicts nothing; measures trades that already happened.
  • Decision Watchdog: refuse yesterday's decision, fail closed, log once A daily process writes "today's decision" (which strategy runs, or FLAT) to a file the EAs read at the open. One day the writer did not run. The EAs read yesterday's file, compared its date with TimeCurrent() - the server clock, which had stepped back to the previous day overnight - saw a match, and traded all morning on a 24-hour-old decision. No error anywhere. Two rules, both in this class: 1) staleness is judged against TimeLocal(), which always moves forward; TimeCurrent() is the last tick's stamp - it freezes without ticks and can step back on reconnect. 2) When in doubt the answer is FLAT: missing file, bad date, wrong day, empty line - every failure path returns "do nothing", and each is logged ONCE per state change, not on every tick and not never. File format: line 1 = ISO date, line 2 = decision string. The demo writes a fresh, a stale, a malformed, an empty and a missing file, and shows that only the first is allowed to trade.
  • Exposure Cap: one position limit per symbol across all your EAs Four EAs on the same symbol, each one honest on its own: each checks "do I have a position?" with its own magic number, sees none, and enters. On a demo account this reached 22 contracts on a symbol meant to carry 1, and a watchdog had to close 16 positions in one morning. The cap belongs at the door, not after the fact. ExposureCap::Allowed(symbol, lots, cap) sums the volume of every open position on the symbol - all magic numbers, manual trades included - and refuses the order BEFORE it is sent when it would breach the cap. One log line with the three numbers (held, requested, cap) says why. Deliberately simple: gross exposure, no netting of longs against shorts, no per-EA quota. It is a check, not a lock: two EAs deciding on the same tick can both pass; in practice EAs on different charts decide on different ticks. The demo script prints held / cap / room for the current symbol and shows the refusal line. Nothing is traded.
  • Server Time Offset: the three clocks in MQL5 and how timestamps shift on export A datetime in MQL5 is seconds since 1970 - but server time (TimeCurrent, bar times, deal times) is the broker's wall clock stored AS IF it were UTC. Export it to CSV, read it in Python or a spreadsheet with a "seconds since 1970 UTC" parser, and every timestamp shifts by the server's UTC offset. On a UTC-3 broker that is three hours: the daily bar dated 00:00 reads as 21:00 of the previous day, and "yesterday's session" silently becomes "today's, half formed". That happened to a morning report of mine before this script existed. The script prints TimeTradeServer, TimeCurrent, TimeGMT and TimeLocal, the three offsets between them, the tick lag, and this chart's last bar time in server time and in real UTC - then states the rule: export server timestamps as wall-clock text, or export the epoch together with the offset, and never let the consumer apply its own timezone.

Les meilleures ventes du marché :

123456789...447