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

Soumettre votre code

Close all positions panel for MT5: seven buttons to close all, buys, sells, winners, losers, the chart symbol or delete pending orders, on Gold (XAUUSD), forex or any symbol, for manual trades and any EA. Open source code.

A stop distance in points is not money until the tick size and tick value make it one. This library turns four risk bases into a lot size, floors it to the volume step, caps it against free margin and tracks a daily loss limit. Two MQL5 headers, no DLL.

Draws the high and low of a chosen time window and alerts on the first break on each side. The levels are also available through iCustom.

Draws the daily opening range and its breakout levels, with a dashboard showing how the range resolved over your lookback: broken up, down, both ways or not at all, and how often a breakout hit its target before the opposite side.

Auto Fibonacci retracement for Gold (XAUUSD), forex and any symbol: draws the levels on the last completed swing leg by itself, with the 61.8 in its own colour, prices on each level and an optional alert. Open source code.

Typical range of each time of day (median of the previous N days) versus the actual range of the bar. Shows when the market really moves. No look-ahead, no repainting. M1 to H1.

Local MT5-to-MT5 trade copier through the Common files folder. One EA in Master or Slave mode: lot multiplier or fixed lot, symbol prefix/suffix, reverse, SL/TP and partial close sync.

Live rolling-correlation heatmap across your watchlist — spot hidden overlapping exposure before you stack three “different” trades that are secretly one trade.

An animated one-click trading panel for the chart symbol: buy and sell with live prices, lot stepper, close all, close profit, close loss and breakeven, with confirmations, a practice mode and a collapsible, draggable panel.

Auto-scaled round-number grid for any symbol — big figures and half levels drawn to the right spacing whether you're on EURUSD, USDJPY, XAUUSD or an index, plus a live "distance to nearest magnet" readout.

Marks previous day, Asian and London session highs and lows from chart bars and flags closed-bar, ATR-filtered liquidity sweeps. Non-repainting, with EA-readable buy/sell buffers and an on-chart display panel.

Chart panel that calculates position size from risk % and stop-loss in points, with tick value, margin and money at risk. Does not place orders.

Draw Asian, London and New York session ranges as chart boxes with high/low lines, labels and an optional London–New York overlap. Configure GMT or broker-server hours and review the latest session statistics in a panel.

Session windows are quoted in GMT; the chart runs on the broker's clock. This indicator takes each window in GMT, applies your broker's offset, and draws the box over that window's bars. It adds the high and low lines to every enabled window unless you switch them off, prints the session name and range only on that session's newest box when there is room, and never trades.

An account-wide MetaTrader 5 utility that tracks daily loss from the chosen start-of-day equity and intraday equity peak. Shows warning and critical levels with optional money and percent limits plus terminal, sound or push alerts. It never places, modifies or closes trades.

A small script that turns "risk in % of the account" and "stop loss in pips" into a lot size. It only calculates and prints; it never opens, modifies or closes trades.

Script that exports the closed trades of your account to a CSV file and prints a short summary: trades, win rate, net result and profit factor.

Supertrend trend-following indicator based on ATR. The line changes color and side of the price when the trend changes, with optional signal arrows and alerts.

Draws the daily open price as a horizontal line and shows, in points, how far the current price is from today's open. The label changes color depending on whether the price is above or below the open.

Draws support and resistance levels from confirmed swing highs and lows, and the fair value gaps (3-candle gaps) that price has not filled yet. Rule-based, merges nearby levels by ATR, removes a gap as soon as price trades back through it.

Classic 50/200-day Golden Cross trend filter: long while the fast SMA of daily closes is above the slow SMA, flat (or optionally short) otherwise. One decision per completed D1 bar, sizing by % of balance or fixed lot.

A panel that ranks the eight major currencies (USD, EUR, GBP, JPY, AUD, NZD, CAD, CHF) by their average rate of change against each other.

Draws the Tokyo, London and New York trading sessions as coloured boxes that span the high and low of each session.

A compact dashboard that classifies EMA trends across multiple timeframes and displays slope, ATR distance, duration and an alignment summary.

Marks built-in economic calendar events on the chart with time lines, optional windows, labels, a panel and alerts.

Fair Value Gap (FVG) Detector with Auto-Removal When Filled

Marks bullish and bearish order blocks (the last opposite candle before a strong impulse) and tracks their state: fresh, mitigated when price returns, and removed when broken.

Detects bullish and bearish Fair Value Gaps (three-candle price imbalances), draws them as boxes extending to the right and automatically removes each box once the price fills the gap.

Detects swing highs and lows and labels every break of market structure: BOS (Break of Structure) when the trend continues and CHoCH (Change of Character) when the trend reverses.

Splits the current swing range (last swing high to last swing low) into a Premium zone above 50% and a Discount zone below 50%, with an equilibrium line and a live label that shows where the price is inside the range.

Trade manager for manual trades and other EAs: moves the stop to break-even at a chosen R multiple, closes part of the position at a second target, then trails the stop in steps. Survives terminal restarts.

Draws the previous day's high and low over each day and marks the first touch of each level, with an optional alert.

Draws the high and low of the previous day and the previous week plus round-number levels around the current price as horizontal lines.

Plots a Donchian channel built from closed bars, arrows after a close outside the channel and a two-colour ATR trailing stop line that follows the breakout direction.

Marks swing highs and lows that are confirmed by a fixed number of bars on both sides and plots a simple moving average for trend context.

Shows Bollinger bands and a Keltner channel on the chart, marks bars where the bands are inside the channel and draws an arrow when that squeeze ends.

Plots a long-period SMA and marks bars where the RSI has pulled back to a set level while the price is still above the rising SMA.

Plots a Donchian channel and a long-period SMA and marks only those closed-bar channel breakouts that are on the same side of the SMA.

Shows balance, equity, margin, margin level, floating P/L, today's closed P/L and the drawdown from the equity peak in a small panel on the chart.

Static safety scan of EA/indicator source: DLL imports, programs started, account data sent online, hidden text, martingale, SL = 0.

1...209210211212213214215216217