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.
Consenti l'uso dei cookie per accedere al sito MQL5.com.
Abilita le impostazioni necessarie nel browser, altrimenti non sarà possibile accedere.
Hai effettuato l'accesso. L'autenticazione a due fattori è stata disattivata. Configurala di nuovo e scansiona un nuovo codice QR, oppure continua con l'autenticazione a due fattori disattivata.
Attiva l'autenticazione a due fattori ContinuaForex session boxes for Gold (XAUUSD), forex and any symbol: draws the Asian, London and New York sessions with their high and low extended to the right and the range in points, in your broker server time. Open source code.
An all-in-one Smart Money Concepts (SMC) indicator that automatically identifies Swing & Internal Market Structure (BOS/CHoCH), Order Blocks, Premium/Discount zones, and Equal Highs/Lows. It features a real-time multi-timeframe bias dashboard to help traders make informed decisions.
Un pannello di trading manuale con un sistema integrato di protezione dal rischio per società di trading in proprio e uno strumento nascosto per l'individuazione di livelli di supporto e resistenza per MetaTrader 5.
Mini-grafico in tempo reale con più intervalli di tempo nel pannello laterale, dotato di abbinamento intelligente dei colori, scala dei prezzi indipendente e timer per il conto alla rovescia delle candele.
Confronta la tabella delle sessioni del broker con la cronologia M1. Per ogni minuto della settimana, conta in quanti degli ultimi N giorni il simbolo presenta effettivamente una barra e inserisce tale dato accanto a SymbolInfoSessionQuote e SymbolInfoSessionTrade: minuti dichiarati che solitamente risultano vuoti (lacune di rollover), le barre nei minuti che la tabella indica come chiusi, le tabelle di negoziazione e quotazione che non coincidono e interruzioni isolate come una chiusura anticipata per festività. Visualizza le sessioni effettive per ogni giorno feriale, salva ogni risultato in un file CSV e mostra i propri calcoli. Solo lettura: nessuna funzione di negoziazione, nessuna DLL, nessuna connessione di rete.
Gestisci le posizioni aperte in un Expert Advisor: break-even, trailing stop, due chiusure parziali e uno stop e un target per le posizioni che non ne hanno. Non apre mai un’operazione.
A free MT5 script to calculate position size, risk amount, and risk-to-reward ratio visually on the chart.
On a linear MT5 chart, a trend that grows or falls by a steady percentage is a curve, and a straight channel misses it. This indicator draws the real exponential curve, fitted on closed bars to the cleanest of 19 look-back windows, with deviation zones, a projection ahead and a card with the fit, the trend pace and the price position.
Real-time tick spread monitor that plots Maximum and Average spread curves per bar with points/pips display and local CSV persistence.
Lightweight Expert Advisor combining Scalp & Swing logic with an "Always-ON" position-securing layer. Includes a fully interactive on-chart panel with manual trade buttons, risk- based lot sizing, partial close, break-even, trailing stop, swing SL/TP switching, and a one-click "Secure All" tool.
Countdown to the next high-impact news from the MT5 economic calendar, with a red NEWS WINDOW warning for prop-firm news rules. Display and alerts only - it never trades.
Drag the MetaTrader 5 chart freely in any direction and stretch the price and time scales with the mouse, the way TradingView does it. One click on ON/OFF returns the normal chart. A small indicator that draws nothing, never trades and works next to any Expert Advisor.
Un pannello dedicato alle regole di una sfida tra società di trading: perdita giornaliera, perdita massima (statica o trailing), obiettivo di profitto, numero minimo di giorni di trading e regola del “best-day” (costanza). Per ciascuna di esse viene indicato l’importo utilizzato e il margine residuo, espresso in denaro. La funzione "Un'altra operazione" indica la dimensione massima del lotto che consente di mantenere lo stop-out entro il margine residuo di oggi e entro il margine di perdita massima. Solo lettura: non apre, modifica né chiude mai un’operazione. Le impostazioni predefinite contengono valori tipici; le società modificano le proprie regole, quindi verifica le tue e utilizza l’impostazione predefinita “Personalizzata”. Realizzato sulla base della libreria ATS Risk Library (ATS_RiskLib.mqh, inclusa).
Traccia l'intervallo della sessione asiatica e evidenzia le rotture durante la sessione londinese con frecce, livelli di stop e di obiettivo e avvisi
Tick Scalper Helper is a manual trading utility for traders who work on very short time frames and want to see every price change.
Esegue un controllo sulla cronologia dei tick riprodotta dai backtest basati su "Ogni tick basato su tick reali". Cinque controlli per simbolo negli ultimi N giorni: quotazioni impossibili e incrociate, timestamp che scorrono all'indietro o si ripetono, inversioni di prezzo di un tick di entità pari a multipli dello spread mediano del simbolo stesso, silenzi all'interno delle sessioni di quotazione dichiarate dal broker e minuti in cui i tick e le barre M1 non coincidono. Ogni risultato viene salvato in un file CSV con il relativo timestamp in millisecondi, e lo strumento riporta i propri calcoli in modo che il report possa essere ricontrollato. Solo lettura: nessuna funzione di trading, nessuna DLL, nessuna connessione di rete.
Un EA gratuito e completamente aperto per l'indice JPN225 (Nikkei 225) su timeframe M15. Effettua acquisti quando il prezzo tende al rialzo, lo slancio non è eccessivo e il volume è contenuto. Backtest dal 2022 al 2026: profit factor 1,68, +18,5% all’anno, ha superato 15 stress test. In pareggio alle 17:00.
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.
Prop Firm Guard Panel is an on-chart panel for prop firm challenges and funded accounts. It shows in real time the daily loss used and the room left, the max loss room and equity floor, and the progress toward the profit target. The start-of-day balance is rebuilt from today's closed deals, so the values stay correct after a restart. Colors change from green to orange to red as limits get closer, with optional popup and push alerts. Auto, dark or light theme. Display only: it never opens, modifies or closes trades.
Trending up, trending down or ranging: a verdict for every bar, and how long it has held. Each stretch of one regime is boxed on the price chart, ADX columns below show how strong it is, and a one-line panel gives the regime, its age and the ADX. Values for Expert Advisors and an alert on closed bars.
Reads your closed positions and the M1 bars after each exit. Shows how many stopped-out trades later reached their take profit, how far take-profit trades kept running and how much move was left after manual or EA exits. Summary panel, per-position log table and CSV.
Free educational EA — a single-position trend-following EMA crossover system for XAUUSD M30, released as open source for beginners to study trade ownership guards, preflight order validation, risk-based lot sizing, and server-time session filtering. This code demonstrates how a strategy - identifies and manages only its own positions and orders through MagicNumber and comment tags, - wraps CTrade with an OrderCheck preflight that blocks invalid or margin-breaking requests, - sizes each trade from a fixed stop-loss and risk percentage, - and restricts entries to a configurable broker session window with a daily close-all — all evaluated on completed bars only, so signals never repaint.
Traccia i range delle sessioni asiatiche, londinesi e newyorkesi e evidenzia gli "sweep" di liquidità: una barra chiusa la cui ombra si estende oltre il massimo o il minimo di una sessione completata, per poi richiudersi all'interno di tale intervallo. Frecce che non si aggiornano, livelli di sessione estesi, avvisi e buffer compatibili con iCustom.
Modello EA "Opening Range Breakout" con protezione del conto integrata. Individua i massimi e i minimi dei primi N minuti dopo l'apertura della sessione e inserisce ordini stop OCO al di sopra e al di sotto dell'intervallo. Include il dimensionamento delle posizioni basato sul rischio, il limite di perdita giornaliero, il limite massimo di drawdown, il filtro dell'intervallo ATR, il filtro della direzione di trading e la protezione contro le posizioni mantenute durante la notte. Tutti gli orari delle sessioni sono parametri configurabili. Modello didattico, non un sistema che garantisce profitti. Testare su conto demo prima di qualsiasi utilizzo in live.
Colora lo sfondo del grafico in base al regime di volatilità (Compressione, Normale, Espansione) in base al rango percentile dell'ATR corrente. Mostra il regime corrente sul grafico, avvisa in caso di cambiamenti di regime e mette a disposizione buffer per gli Expert Advisor.
Colora lo sfondo del grafico in base al regime di volatilità (Compressione, Normale, Espansione) in base al rango percentile dell'ATR corrente. Mostra il regime corrente sul grafico, avvisa in caso di cambiamenti di regime e mette a disposizione buffer per gli Expert Advisor.
Apre i grafici relativi a tutti i simboli di Market Watch o a un elenco di simboli personalizzato con un solo clic, su qualsiasi intervallo di tempo, applicando un modello opzionale a ciascun grafico. Salta i grafici già aperti e limita il numero di grafici aperti contemporaneamente.
L'esportazione salva le operazioni in un file CSV indicando l'escursione massima sfavorevole (MAE) e l'escursione massima favorevole (MFE) in punti e in denaro, calcolate sulla base della cronologia M1, oltre alla percentuale del movimento disponibile catturata da ciascuna operazione.
Expert Advisor template that shows safe execution practices: closed-bar signals once per bar, no duplicate entries after an MT5 or VPS restart, spread and stop-level checks, normalised volume and a log line for every decision.
Shows the current spread next to its recent average and maximum and compares it with ATR, so you can see at a glance when trading costs are too high relative to the symbol's normal movement.
On-chart panel that calculates the lot size for a given risk (% of balance, % of equity or fixed money) and stop-loss distance, using the broker's tick size and tick value. Works on forex, metals, indices and crypto.
Trailing stop and breakeven manager for Gold (XAUUSD), forex and any symbol: moves the stop to breakeven with an offset, then trails it in points or ATR multiples on manual trades and on any EA, filtered by magic and symbol. Open source code.
Script that reads the deal history of your account and writes a plain note on how an Expert Advisor really trades: entries, stops and trailing, lot changes, martingale, averaging, trades at once, hours and holding time, plus what to watch out for. It never trades and says nothing about profit
Automazione basata sui segnali per l'oscilloscopio WaveMaster. Motore di esecuzione automatizzata per l'oscilloscopio WaveMaster. Legge i buffer dei segnali in tempo reale. Gestione completa del rischio, trailing e break-even integrati.
Verifica la cronologia delle barre effettivamente conservata dal tuo terminale, ovvero la cronologia utilizzata da ogni backtest e da ogni indicatore. Sei controlli per ogni simbolo: valori OHLC impossibili, orari delle barre errati, barre mancanti mentre la tabella delle sessioni del broker indica che era in corso la quotazione, barre vuote e piatte, barre non coerenti con la serie M1 del broker stesso e correttezza dello spread. Il dato principale è la copertura della sessione, non una percentuale tabellare che misura principalmente quanti fine settimana sono stati verificati. Ogni risultato viene esportato in un file CSV con l’ora della barra, e le barre verificate insieme alla tabella delle sessioni possono essere esportate in modo che l’intero report possa essere rielaborato con strumenti diversi da questo.
Draws the high and low of the Asia, London and New York sessions as boxes or lines extended to the end of the day, with configurable session hours and a server time zone adjustment. Optional previous day and previous week high/low. When a CLOSED bar breaks the high or low of a session that has already finished, it can raise a popup alert, a push notification and/or a sound, once per level per day. Alerts are evaluated on closed bars only, so they do not repaint. The 10 levels are exposed in indicator buffers, so an Expert Advisor can read them with iCustom(). It recalculates only new bars, works on any timeframe up to H1, and deletes all its chart objects when removed. Read-only: it never opens, modifies or closes a trade. No DLLs, no web requests.
Marks bullish and bearish engulfing, bullish and bearish pin bar and inside bar patterns with arrows, using closed bars only, so nothing repaints. The definitions (wick and body proportions, minimum bar size in ATR) are inputs, with an optional EMA trend filter. For each pattern a small panel shows a rolling historical statistic: the share of the last N resolved cases where price moved X ATR in the pattern direction before moving Y ATR against it, together with the number of cases. X, Y, N and the waiting time are inputs. The numbers describe what happened on your chart history; they do not predict the next trade. Optional alerts on closed bars (popup, push, sound). 20 buffers (signal, hit rate and sample size per pattern) can be read with iCustom(). Uses prev_calculated, deletes its chart objects when removed. Read-only: it never trades. No DLLs, no web requests.
Utility Expert Advisor that watches the account equity against two limits: a maximum daily loss and a maximum total drawdown. Each limit can be set as a percentage or as a money amount, and the daily loss can be measured from the balance or from the equity at the start of the day, as many prop firms do. When a limit is touched the EA closes all positions, deletes all pending orders and keeps the account locked until the next trading day: anything opened in the meantime, by another EA or by hand, is closed again. Optional early warning at a percentage of the limit (Alert and push), a small on-chart panel, a magic number / symbol filter, a configurable day-reset time and retries when a close fails. The state is stored in terminal global variables, so a restart does not unlock the account. Works on hedging and netting accounts. No DLLs, no web requests. It never opens trades (only the optional Strategy Tester demo mode does).
Exports your closed trade history to a CSV file with one row per position (not per deal), ready for Excel, Python or any journal. Each row has ticket, symbol, magic number, comment, side, volume, entry and exit time and price, duration, initial SL and TP when known, gross profit, commission, swap, net result and R multiple. It also calculates MFE and MAE (best and worst price reached while the trade was open, in points and in money) from the M1 bars between entry and exit, plus the entry session (Asia, London, New York) and weekday. Filter by magic number (lists and ranges) and symbol (wildcards), pick the period, the column separator (; or ,) and the decimal mark, and save to MQL5\Files or the common folder. Tested on hedging accounts and in the Strategy Tester (netting logic included; feedback welcome), where the file is written when the test ends. Read-only: it never opens, modifies or closes a trade. No DLLs, no web requests.