Libreria di Codici Sorgente MQL5 per MetaTrader 5 - 6

icon

Questa è la più grande libreria di codici sorgente gratuiti per i programmi della piattaforma MetaTrader 5. Qui puoi trovare Expert Advisors, indicatori tecnici, script e librerie pronti all'uso. Sfrutta la libreria di codici per imparare il linguaggio MQL5 e sviluppa le tue applicazioni di trading automatico partendo dai codici disponibili.

I codici possono essere liberamente scaricati, testati e lanciati in MetaTrader 5. La libreria è anche disponibile direttamente dalla piattaforma MetaTrader 5 e dall'ambiente di sviluppo MetaEditor.

Invia il tuo codice

Average and maximum spread for each server hour from bar history, live spread vs the usual spread of this hour, and the spread cost of 1 lot.

Heikin Ashi candles drawn as an overlay directly on the price chart, with optional hiding of the original candles (restored when the indicator is removed) and an on-chart label showing the trend, its strength and the run length.

GDS Renko Liquidity Sweep Lab è un indicatore didattico gratuito che permette di analizzare cosa succede dopo che il prezzo ha superato un livello di oscillazione Renko confermato.

On-chart panel that estimates tonight's swap for each open position in account currency, marks the triple-swap day, and compares it with the cost of closing before rollover and re-opening after (spread + commission).

One on-chart table for M15, H1, H4, D1, W1 and MN1: EMA slope, price vs EMA, Donchian position, ATR percentile and a combined UP / DOWN / RANGE regime. Completed bars only. Any symbol.

RSI Top and Bottom Scalper is an MT5 indicator designed to identify potential reversal entries using RSI top and bottom retests together with price confirmation

A faithful MetaTrader 5 port of the open-source TradingView indicator "Machine Learning Adaptive SuperTrend" by AlgoAlpha: K-means clusters recent ATR into high, medium and low volatility, and the SuperTrend band uses the centroid of the current cluster. No repainting, alerts, gradient fill and statistics table.

A free, read-only MetaTrader 5 utility: it reads a Strategy Tester report (MT5 or MT4 .htm) and matches every backtest trade with your account history or with a second report. It shows the match rate, missed and extra trades, slippage, delay, real costs and how much of the backtest edge survives live.

A faithful MetaTrader 5 port of the TradingView "Range Filter Buy and Sell 5min" (DonovanWall / guikroth / tvenn): range filter line, target bands, Buy/Sell arrows and bar colors, no repainting, alerts (popup, sound, push, e-mail) and a signal statistics panel.

Traccia i gap di fair value (squilibri a tre candele) che il prezzo non ha ancora colmato, tiene traccia di quanto di ciascun gap viene colmato e chiude il riquadro quando ciò avviene. Solo candele chiuse, nessun repaint. Avvisi e buffer per gli EA.

Struttura di mercato secondo i concetti dello “Smart Money”: massimi e minimi di oscillazione contrassegnati con le etichette HH / HL / LH / LL, linee BOS (break of structure) e CHoCH (change of character). Le oscillazioni vengono conteggiate solo dopo la chiusura delle candele corrispondenti, quindi non vi è alcun repaint. Avvisi e un buffer di tendenza per gli EA.

One on-chart table for M15, H1, H4, D1, W1 and MN1: EMA slope, price vs EMA, Donchian position, ATR percentile and a combined UP / DOWN / RANGE regime. Completed bars only. Any symbol.

Utility EA that moves the stop to break-even plus a small lock once a trade reaches +X R, then trails it N R behind price. Manual trades or any EA by magic number. Never opens trades and never widens a stop.

ATR Trailing Stop Line (Chandelier Exit): a volatility-based trailing stop that hangs below the highest high in an up-trend and rises above the lowest low in a down-trend, with trend-flip arrows, an on-chart status label and optional alerts.

A ribbon of Kaufman Adaptive Moving Averages with growing Efficiency Ratio periods, drawn in a monochrome gradient, with an on-chart label showing whether the ribbon is bullish, bearish or mixed.

Hull Moving Average that changes color with its slope: one color while the line rises, another while it falls, a neutral one when it is flat, with optional arrows at the turns.

Open-source gold EA built on XAUUSD's multi-day trend persistence: H1 Donchian breakout in the direction of the D1 EMA slope, 3×ATR hard stop, break-even at +1R. Fixed lot, one position, no grid, no martingale.

On-chart position-size calculator. Drag the stop line (and optional target line) and the panel shows lots for your risk %, money at risk and reward:risk. Uses OrderCalcProfit, so it is correct for gold, indices, crypto, FX and any account currency.

Shows when volatility is compressed (Bollinger Bands inside the Keltner Channel) and which way it releases. Red dots = squeeze on, green = released, four-colour momentum histogram. Wilder ATR, closed bars, no repaint.

Donchian channel of the N bars before each bar, midline and confirmed breakout arrows that never repaint. Optional D1 EMA-slope filter shows only breakouts in the higher-timeframe trend. Alerts and push. Any symbol.

Read-only forensic script that audits historical broker Bid/Ask ticks in 15-day RAM-safe chunks: computes session spread percentiles (P50/P95), 23:00-00:15 rollover widening ratios, weekday feed blackout gaps, and exports clean millisecond CSV files.

Relative Volume (RVOL) in a subwindow: the volume of every bar divided by its normal volume, drawn as a color-coded histogram with reference levels and a live text label.

Builds a volume profile for every day and draws its Point of Control (POC) and the Value Area boundaries (VAH and VAL) as horizontal lines on the chart. The levels of the current day are updated as the day develops.

Detects horizontal symmetrical triangles with objective, non-repainting rules (pivot zigzag, 3+2 touches, symmetry, no wicks or bodies breaking the lines) and draws them to the apex with breakout arrows and an optional Gann box.

Un indicatore compatto per MetaTrader 5 che classifica cinque intervalli di tempo selezionati come rialzisti, ribassisti, neutri o N/A utilizzando l'allineamento tra prezzo ed EMA, per poi riassumere se gli intervalli di tempo sono allineati o misti. Si tratta di un indicatore di contesto di mercato, non di un segnale di trading autonomo

Prima della chiusura del venerdì: calcola l’entità della perdita che le tue posizioni aperte potrebbero subire se il mercato riaprisse con un gap e la confronta con il margine residuo rispetto al limite di perdita giornaliero del giorno di negoziazione successivo. Per società di trading proprietario e conti finanziati. Si limita a leggere i dati del conto.

Part 2 of the indicator regression-testing series. Measures how many bars of history a recursive indicator (EMA, Wilder smoothing, or a cascade of up to three stages) needs before the error left by its starting value falls below a tolerance and recommends a safe warm-up length.

Script that calculates the lot size for a given risk percent and stop loss. Places no orders.

Draws Asia, London and New York session boxes with high/low range and an optional Asia breakout alert.

Shows on the chart how much of today's prop-firm daily loss limit is used. Counts closed P/L (with commission and swap) and floating P/L since the daily reset, and shows the loss so far, the money left and the equity floor. The base can be balance, equity, or the higher of the two at the reset. Colour warnings at 50% and 80%, with alerts. Display only: never trades.

Converts broker server time to UTC and New York time with US and EU daylight saving rules. Works the same live and in the Strategy Tester, where TimeGMT() returns server time.

Blocks new trades on US CPI and FOMC days (New York date). Built-in calendar 2015-2027, works in the Strategy Tester. Never opens trades.

Closes the newer side when a buy and a sell are open on the same symbol (manual trades or any EA). For prop firm accounts that forbid hedging. Never opens trades.

Breakout status and measured targets for 13 chart patterns: channels, wedges and triangles found on zigzag swings, each shaded by what price did after its last swing (forming, broke up, broke down, target hit, failed) and rated with a quality score. Larger patterns stay around the smaller ones inside them, and same-size patterns never pile up.

Night session range breakout for XAUUSD: one decision per day, a hash-chained journal written before every order, and safe recovery after restarts.

Lightweight real-time HUD for MetaTrader 5 that monitors live spread (points and pips), session Min/Avg/Max spread, and tick arrival velocity (ticks/sec and ticks/min) with automatic market regime classification.

Execution-safe utility script to close open positions in one click with configurable slippage deviation, spread guard protection, symbol/P&L/Magic filters, and automatic retry handling.

Estimates buy/sell pressure by splitting the tick volume of every bar into a buy part and a sell part. The difference (delta) is shown as a four-color histogram with an optional EMA line.

Session-anchored VWAP with volume-weighted standard deviation bands. It restarts at every daily, weekly or monthly session open and shows how far price has stretched from the average price paid during the session.

Anchored VWAP with a draggable anchor line: drag the vertical line to any bar and the volume-weighted average price and its deviation bands are rebuilt from that bar onward.

12345678910111213...221