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

Soumettre votre code

Professional open-source Drawdown Monitor for MetaTrader 5. Tracks current, daily and peak-equity drawdown, floating P/L, margin levels and configurable account risk conditions in real time.

Professional open-source Market Volatility Monitor for MetaTrader 5. Analyzes current ATR, average ATR, ATR ratio, daily range and spread to classify market volatility in real time.

Professional open-source Multi-Timeframe Trend Dashboard for MetaTrader 5. Analyzes M1 to D1 using EMA 20, EMA 50 and price position to identify Bullish, Bearish and Neutral market conditions.

Professional open-source Multi-Timeframe RSI Dashboard for MetaTrader 5. Analyzes RSI across M1, M5, M15, M30, H1, H4 and D1 to monitor momentum, overbought and oversold conditions in real time.

Quantitative MT5 indicator measuring execution friction relative to ATR using spread, commission and slippage assumptions.

Read-only MT5 script that estimates stop-distance cash loss in account currency, reserves explicit cash costs and floors volume to the broker grid. It never sends or modifies an order.

Channel Breakout Dashboard is an informational panel (not an automated trading robot) that runs on the MetaTrader 5 chart and centralizes, in one place, several market conditions that would otherwise require 4-5 separate indicators open at the same time.

Trend filter based on a constant-velocity Kalman estimator, with process noise dynamically adapting to volatility (ATR), and trend coloring according to the estimated velocity.

A small educational Expert Advisor showing how a classic Donchian breakout can be applied directly to completed Renko bricks.

A Shannon-entropy oscillator that measures how ordered or disordered recent price action is, using ATR-adaptive discretization. Low values signal trending conditions, high values signal choppy/random markets — useful as a trend-filter companion for directional indicators.

A lightweight memory meter dashboard that reveals current MT5 memory usage and key resource statistics directly on the chart.

Measures, hour by hour, how far a symbol travels and how much of that the spread takes away. Built for gold, works on any symbol, compares several side by side.

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.

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.

Faites glisser votre stop loss à l'endroit souhaité, cliquez sur « Acheter » ou « Vendre », et la taille du lot est déjà calculée automatiquement — pas besoin de calculatrice ni de tableur. Le système gère le seuil de rentabilité, le stop suiveur et clôture les opérations pour la journée si vous atteignez votre limite de perte.

Portage MQL5 d'un indicateur de stop suiveur ATR en Pine Script : nLoss = multiple de l'ATR ; le stop suit le cours vers le bas en tendance haussière et vers le haut en tendance baissière, et s'inverse (avec une flèche d'achat/de vente) lorsque le cours le franchit à la clôture. Comprend un portage de référence en Python et un test de parité qui vérifie que les deux versions concordent avec une transcription littérale, barre par barre, de la sémantique Pine (na/nz/historique de la série).

Exports bars to a CSV file that pandas.read_csv() loads without encoding, separator or date-format arguments: ISO 8601 timestamps, prices at the symbol's own digits, single-byte encoding. Two modes (last N bars or a date range) and a switchable separator for Excel.

Writes a CSV journal of every trade with the exit reason, and a report that shows how far each trade ran, in R. It never trades.

Colore l'arrière-plan du graphique en fonction du régime de volatilité (Compression, Normal, Expansion) sur la base du rang centile de l'ATR actuel. Affiche le régime actuel sur le graphique, signale les changements de régime et met à disposition des zones tampons pour les Expert Advisors.

Colore l'arrière-plan du graphique en fonction du régime de volatilité (Compression, Normal, Expansion) sur la base du rang centile de l'ATR actuel. Affiche le régime actuel sur le graphique, signale les changements de régime et met à disposition des zones tampons pour les Expert Advisors.

Ouvre en un clic les graphiques de tous les symboles de Market Watch ou d'une liste de symboles personnalisée, sur n'importe quelle période, avec un modèle facultatif appliqué à chaque graphique. Ignore les graphiques déjà ouverts et limite le nombre de graphiques ouverts simultanément.

Cette fonctionnalité exporte les transactions clôturées au format CSV, en indiquant l'écart maximal défavorable (MAE) et l'écart maximal favorable (MFE) en points et en montant, calculés à partir de l'historique M1, ainsi que le pourcentage de la variation disponible capturé par chaque transaction.

A lightweight, non-trading Expert Advisor that writes a JSON health heartbeat (connection, AutoTrading state, equity, daily P/L) and an equity log, so a VPS watchdog can detect frozen or disconnected terminals and alert you.

Position size calculator for MT5. Drag the SL and TP lines on the chart and the panel shows the lot size for your risk %, the real risk after rounding, the reward and R:R. Never trades.

Clean and efficient Anchored VWAP (AVWAP) indicator for MetaTrader 5. Calculates volume-weighted average price from a user-defined anchor date with optional volatility standard deviation bands.

Panneau affichant le compte à rebours sous forme de bougie, le spread, l'ATR quotidien et la part de la fourchette quotidienne déjà utilisée.

Expert advisor basique qui négocie dans le sens de la bougie de 5 minutes de 9h30 à New York sur les CFD sur indices (US100 / NAS100). Une transaction par jour, stop loss et take profit fixes, clôture forcée, pas de martingale ni de stratégie « grid ».

Indique les écarts d'ouverture quotidiens des indices boursiers et précise si chacun d'entre eux a été comblé.

Gold EA : cassure de la première bougie H4 avec confirmation par retest, stop et objectif à pourcentage fixe, taille de lot basée sur le risque et protection contre le drawdown.

An educational MetaTrader 5 Expert Advisor with four RSI and MACD signal modes calculated on completed Renko bricks. Fixed-size Renko is built internally from Bid ticks. No external indicators, DLLs, custom symbols or offline charts are required.

Marks breakouts of the recent trading range and the breakouts that fail (price closes back inside within a few bars). Closed bars only, alerts, buffers for iCustom.

Indique la part de la fourchette quotidienne moyenne (ADR) déjà utilisée aujourd'hui et trace les deux cours que le plus haut et le plus bas du jour pourraient encore atteindre si la journée se terminait avec une fourchette moyenne. Indique la part de la fourchette quotidienne moyenne (ADR) qui a déjà été utilisée aujourd'hui, et trace les deux cours que le plus haut et le plus bas du jour pourraient encore atteindre si la journée se terminait avec une fourchette moyenne.

AttachExpert.mqh attaches an Expert Advisor to a chart from MQL5 code, with the inputs you choose and with "Allow Algo Trading" on or off.

Script that reports what an EA has to cope with here: hedging or netting, trade permissions, filling modes, stop and freeze levels, volume rules, swaps and the positions already open on the symbol. Saves a report file you can attach to a Freelance order.

Kalman filter and smoother with an exact diffuse start, missing values and maximum likelihood: local level, local linear trend and a regression whose hedge ratio drifts.

Position manager for MT5 that closes the best winner together with the worst loser when their combined result reaches your minimum. Basket take profit and stop loss in money, magic filter, simple panel. Works with grid, martingale and manual trades. Open source code.

Partial close expert advisor for MetaTrader 5: closes a percent of the position at TP1, TP2, TP3, TP4 and TP5, moves the stop loss to breakeven and trails it. Works on manual trades and on positions of any EA, on any symbol, Gold (XAUUSD) included. Open source code.

Draws Asia, London and New York session boxes on the chart with each session's high and low.

Fits five bivariate copulas on ranks, with Kendall's tau, tail dependence, the probability of joint extreme days, AIC and the conditional probabilities of pairs trading.

A one-file library that handles how an EA trades: pre-trade checks, normalisation to broker limits, safe retries, one order per signal, isolation by magic number and state recovery after a restart. Lot by risk, daily loss limit and equity floor included. Verified in the Strategy Tester.

1...208209210211212213214215216217