Guarda come scaricare robot di trading gratuitamente
Ci trovi su Facebook!
Unisciti alla nostra fan page
Accedi al CodeBase dal tuo terminale MetaTrader 5
Non hai trovato il codice che fa per te? Ordinane uno dalla sezione Freelance
Come scrivere un Expert Advisor o un indicatore

Libreria di Codici Sorgente MQL4 e MQL5

icon

Vuoi imparare il linguaggio di programmazione MQL5 o MQL4, ma non sai da dove cominciare? Qui sono disponibili vari programmi per il tuo terminale MetaTrader. Scarica e studia questi esempi di codici pubblicati e sviluppa per conto tuo degli indicatori e degli Expert Advisor. Le tue applicazioni pubblicate nella più grande libreria di codici MQL5 e MQL4 saranno disponibili in ogni terminale MetaTrader e nel MetaEditor.

I tuoi esempi di codice in MQL4 e MQL5 saranno distribuiti in tutto il mondo, permettendoti di entrare in contatto con migliaia di trader!

Invia il tuo codice

Asian Session Breakout identifies the price range formed during the Asian trading session and monitors how price behaves after that session ends. The Asian High and Asian Low remain extended until the end of the broker trading day. This makes the range useful as an intraday support-and-resistance zone during the European and US sessions. A compact dashboard displays the current range values, configured session time, breakout status, breakout confirmation method, and confirmation timeframe. The indicator does not open or manage trades. It provides market structure and breakout information for discretionary trading or EA development.

Un piccolo indicatore didattico per MetaTrader 5 che evidenzia sul grafico semplici gap di fair value rialzisti e ribassisti composti da tre candele.

Un semplice indicatore basato sul criterio del trend

An institutional-grade order flow and footprint chart indicator ported from Pine Script to MQL5. It dynamically deconstructs major timeframe bars using lower timeframe (LTF) historical tick/real volume to compute buy/sell volume delta at each price level. The indicator features automatic timeframe selection, Point of Control (POC) highlighting, Stacked Imbalances, extreme Absorption detection, Unfinished Business (UB) tracking with live mitigation, and real-time alert triggers.

Value Area Levels is a session-based Value Area indicator for MetaTrader 5. It calculates and displays Value Area High, Point of Control, and Value Area Low levels for the developing, previous, and historical profiles.

Swap Meter mostra i tassi di swap in tempo reale per le operazioni di VENDITA e ACQUISTO relative al simbolo del grafico corrente in un pannello chiaro e codificato a colori, avvisandoti immediatamente nel momento in cui il tuo broker modifica uno dei due tassi.

Monitoraggio dell'intervallo giornaliero — Confronto in tempo reale tra l'intervallo odierno e l'intervallo giornaliero medio. Il Monitoraggio dell'intervallo giornaliero ti mostra, a colpo d'occhio, quale parte del movimento giornaliero tipico del titolo si è già verificata oggi, aiutandoti a valutare se la giornata ha ancora margine di crescita o se è già giunta al termine.

This release introduces a lightweight automated trading prototype built on top of the Interactive Supply and Demand Zone Manager framework. The framework allows traders to draw and manage their own supply and demand zones, while each zone maintains its own lifecycle, interaction history, and evolving state as market conditions change. The hybrid approach combines user-defined zones with automated monitoring, validation, and trade management. The strategy evaluates qualified zones through a structured decision process before generating trade actions. Detailed logging provides visibility into zone behaviour, allowing traders to study interactions and build their own approaches using the collected information.

Computes the historical Pearson correlation between any set of instruments and the combined margin your account would need to hold all of them at once, as a percentage of your equity. Runs natively in MetaTrader 5 with no external libraries, no Python, and no AI — set your symbol list and lot sizes as inputs and it reports the full matrix in the Experts tab and on the chart, refreshing on a timer.

Volume Strength Compass is a volume-analysis indicator for MetaTrader 5 that evaluates market activity using Relative Volume, candle body strength, close position, and volume intensity. The indicator classifies each candle into different volume conditions such as normal volume, low volume, high volume,climax volume, bullish effort, bearish effort, and absorption. The results are displayed using colored volume columns, background highlights, signal labels, an average-volume line, and a real-time dashboard. The indicator can use tick volume, real volume, or automatically select real volume when available. It also supports alerts on either the current live candle or after candle closure.

SMMA Levels MTF is a multi-timeframe Smoothed Moving Average indicator for MetaTrader 5. The indicator calculates SMMA values from several selectable timeframes and displays them together on the current chart.

Pivot SuperTrend BhanuCodeLab is a trend-following indicator that combines confirmed pivot points with an ATR-based trailing trend line to identify market direction, trend reversals, and potential BUY or SELL signals.

Expert Advisor open source per testare gli effetti di inversione e continuazione legati al giorno della settimana. Realizzato per la ricerca sistematica, la validazione delle strategie e l'ulteriore sviluppo da parte della comunità MQL5.

Session Boxes è un indicatore personalizzato per MetaTrader 5 che traccia sul grafico dei riquadri rettangolari contrassegnati da colori diversi, che rappresentano l'intervallo massimo-minimo delle sessioni di negoziazione di Asia, Londra e New York. L'indicatore utilizza internamente i dati su timeframe H1 e supporta l'impostazione personalizzata degli orari delle sessioni in GMT, oltre a un parametro di offset del server del broker.

An institutional-grade trading journal and behavioral analytics suite designed to run entirely inside MetaTrader 5. The application is built as a single-file, zero-dependency dashboard that replaces standard terminal objects with a high-performance, double-buffered vector graphics pipeline (CCanvas). It provides real-time quantitative analysis, behavioral risk auditing, a vertical scrollable monthly calendar, and interactive log cards with inline note editing directly on the chart.

This indicator is essentially a GPS based on envelope as channel gauging and weather radar for the market wrapped into one. Instead of just giving you a bunch of lines to guess at, it calculates the mathematical "stretch" of the market and combines it with a multi-timeframe trend analysis to tell you exactly where you are. if price is outside band it is some fundamental shift in momentum happening if you are on wrong side then quit and stay away or go with trend on pull backs

Questo indicatore mostra il valore smussato del trend lineare

Dynamic approach vastly outperforms relying on a single MA.

Educational MT5 Expert Advisor using completed-candle EMA 9/21 alignment and RSI 14 filtering, with fixed-lot execution and a compact black-and-gold dashboard.

1. The Core Tracking Engine (Alpha-Beta Filter)At its core, the indicator utilizes an Alpha-Beta filter—a lightweight, steady-state version of a Kalman filter designed to track position and velocity.Predictive Calculation: Instead of simply averaging past prices like an SMA or EMA, the engine calculates a predicted price based on current velocity ($v$).Error Correction:

Questo Expert Advisor combina un filtro di forza del trend basato sull'ADX con una tecnica di ingresso sui pullback basata sull'EMA, utilizzando l'ATR per il calcolo dinamico delle dimensioni dello stop loss e del take profit. È progettato per il trading su un singolo simbolo con una sola posizione aperta alla volta.

Variable Configurations to TestScalper Setup: Try an $\alpha$ of 0.45 and a $\beta$ of 0.12. The dashboard cells will flash changes rapidly, reacting instantly to short-term pullbacks.Swing Configuration: Lower the values to an $\alpha$ of 0.15 and a $\beta$ of 0.02. The matrix cells will stabilize, ignoring intraday market noise and preserving a clear view of macroscopic trends.

A multi currency multi symbols super trend dashboard

A read-only MT5 dashboard for risk-based lot sizing, account health, broker volume limits and current symbol exposure.

Super trend with basket TP and SL management

Expert Advisor per verificare l'ipotesi di continuazione basata sull'Inside Bar. L'EA inserisce ordini in sospeso nella direzione della Main Bar dopo aver rilevato un pattern Inside Bar valido, con filtri opzionali basati sull'ATR e sulla qualità del pattern.

A babysitting trade management tool and system :D

Invece di dover analizzare ogni coppia singolarmente, puoi vedere a colpo d'occhio quali sono le coppie più promettenti in base ai tuoi criteri.

Un motore di sistema per la convalida geometrica dei segnali indicatori

The Apex of Algorithmic Grid & Kinetic Momentum. Welcome to the KCI Native Matrix Engine—a merciless, mathematically driven algorithmic behemoth built natively for MetaTrader 5. Engineered for High-Frequency Trading (HFT) environments, this EA strips away bloated standard libraries and operates directly at the server routing level.

The KCI-Directional Matrix (KCI-DX) is an advanced, physics-inspired analytical tool that extracts market kinematics by measuring price path length and volatility energy. Unlike conventional momentum tools, KCI-DX employs a dynamic Z-Score normalization combined with a Sigmoid activation function. This ensures the output is flawlessly bounded between 0 and 100, providing hyper-responsive trend strength identification and directional bias without distortion from historical extremes.

The KCI Volatility Distance is an advanced, adaptive algorithm meticulously engineered to map market momentum and trend direction with pure precision. Utilizing a proprietary matrix-based calculation, this tool dynamically filters out market noise and provides a strictly quantitative perspective on directional strength. Built with a highly optimized Object-Oriented Programming (OOP) core, it is designed for both visual trading clarity and seamless integration into Expert Advisors or Machine Learning modules, ensuring ultra-light CPU performance across multiple assets.

A multi strategy EA gold mine :)

Breakouts based on envelope channel or band, multi EA logic in One EA

A local client to client trade copier with custom dashboard in C# and transport pipe in golang , complete src is provided in archive ( socket based ver ) ultra low latency

This indicator is a trend-momentum oscillator that tracks where price sits relative to its structural volatility channel using a normalized relationship between the Parabolic SAR and Envelopes.

P/L Calendar — Monthly Profit & Loss at a Glance. P/L Calendar shows you, day by day, exactly how your account performed this month — so you can spot your best and worst days, track your win rate, and see your trading rhythm without digging through the terminal's history tab.

Universal Breakout Study è un Expert Advisor per MetaTrader 5 incentrato sulla ricerca, progettato per analizzare e ottimizzare le strategie di breakout da range. Offre test flessibili dei parametri, ottimizzazione rapida e un quadro strutturato per la convalida delle idee di trading utilizzando dati storici e test prospettici.

Chart Navigator MT5 Light — una mini-mappa che consente di spostarsi rapidamente sul grafico dei prezzi e di passare in un attimo ai propri punti di riferimento su di esso

Un indicatore econometrico dello spazio dei prezzi che utilizza il processo stocastico di Ornstein-Uhlenbeck per stimare matematicamente il vero equilibrio senza deriva dell'asset e la sua velocità di ritorno alla media.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201