Guarda come scaricare robot di trading gratuitamente
Ci trovi su Twitter!
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 MQL5 per MetaTrader 5 - 2

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
più recenti | migliori

Costruire una retta mobile con un polinomio di 4 gradi. Estrapola la sinusoide e il suo assiale. Le linee costruite rimuovono un valore a ogni barra e viene costruita una linea mobile di valori estrapolati che non viene ridisegnata.

Sistema di trading con indicatore iMA (Moving Average, MA). Sviluppo della tendenza MA.

Ciclo dell'algoritmo: quando non ci sono posizioni aperte, aprire due posizioni opposte. Attendere la chiusura di entrambe le posizioni.

Libreria di lettura/scrittura dei parametri di EA arbitrari.

This Bot detects the open of a new candle on any set timeframe, thereby making it easier to run a one-time code, place trades and call other functions. The code is written in the OnTick() function.

Rilevare l'inizio di una nuova barra o candela nel gestore dell'evento OnTick() di un Expert Advisor.

Calendario - analisi fondamentale sulla storia e in tempo reale.

Dati del tester a passaggio singolo.

A zigzag based on the trend change of the parabolic sar

This MT5 Expert Advisor combines multi-timeframe candlestick pattern analysis with fundamental event filtering to execute trades with disciplined risk management.

An indicator which attempts to highlight a ranging market area

This is a piece of code to add to an existing Expert advisor to track withdrawals from your account where the EA is running. It helps the user to monitor his or her withdrawals from a particular account.

This is the exact conversion from pine script code by LonesomeTheBlue.

This is an indicator that evaluates FVGs in the inputted "window_size" to detect momentum or trend strength.

A static zigzag which connects the intersections of a moving average crossover

Questo Expert Advisor (EA) implementa una strategia di arbitraggio triangolare tra tre coppie di valute: EURUSD, USDJPY ed EURJPY

A SuperTrend indicator that plots trend direction using ATR volatility to create dynamic support/resistance levels for MetaTrader 5.

This is a simple indicator to display histogram of custom bars' durations in minutes. Applicable for renko boxes, PnF, equivolume bars, etc.

The EA automatically trades based on trend and mean reversion signals with validated parameters.

Serialization and deserialization of the JSON format

Callback interface for timer

The T3 Indicator is an advanced moving average that combines six exponential moving averages to provide smoother price action with reduced lag compared to traditional moving averages.

Draw daily vertical lines plus the day of week labels on the chart.

BreakRevertPro EA merges breakout and mean reversion strategies with adaptive SL/TP and multi-timeframe ATR trailing stops for flexible trading in volatile markets.

Zig Zag indicator that relies only on a minimum % of retracement to each previous wave , and optionally , being bigger than a specific size measured in atr units.

A zigzag indicator that uses a single input to adjust the step size for detecting wave direction changes

The goal is to make the function readily available for any Telegram integration task in MQL5 development. By adding this file to your CodeBase, you can simply include it in your Expert Advisors and call the function directly from the included module. This eliminates the need to redevelop the code from scratch repeatedly, ensuring reusability across multiple projects.

Time to candle Close. Dynamic text colours. Optimised for back-testing.

Whether you’re running multiple trading robots simultaneously or just one sophisticated strategy, keeping track of each Expert Advisor’s performance can be surprisingly time-consuming. MetaTrader 5 (MT5) conveniently displays orders and positions in its “Toolbox,” but when numerous robots share the same account, it becomes harder to know which EA is generating your profits—or losses. A single account might have dozens or hundreds of trades, each opened by different EAs, making it difficult to separate the results of one robot from another.

Download all the ticks from your broker for all the symbols in the market watch. Download all history or until a specific date in the past if available.

These are some #define statements that are useful to perform operations in your EA. You only need to assign the name of your variables at the beginning of the file, and then let the other #define statements do the work. In order to use this file, add #include <DEFINE_statements.mqh> to the first line in your EA file.

The indicator plots two lines. The lower line is calculated based on the latest SMA period that caused a bounce up. The upper line is calculated based on the latest SMA period that caused a bounce down.

A simple starting-point script to collect data and send to a CSV in oldest-newest ordering. In this example only the close price data is collected.

PrintXYZ() library to print massive information from the terminal.

A script which when dragged onto the chart will print out in the experts window the number of bars that are on that chart - like magic.

An indicator which visualizes how volume changes over time within each bar. It shows tick volume in a rolling histogram format.

This Script & EA enables coders to backtest their news based strategies which use the MQL5 Calendar.

This EA is designed to automatically follow market trends using signals from the Moving Average and Stochastic Oscillator indicators. The EA detects buy and sell signals by utilizing MA crossovers and confirms the trend with Stochastic. Additionally, the EA includes automatic position management, such as setting Take Profit, Stop Loss, and lot size doubling to enhance trading effectiveness in trending markets.

Trade Assistant MetaTrader indicator — a multi-timeframe indicator that is based on three standard indicators: Stochastic oscillator, RSI (Relative Strength Index), and CCI (Commodity Channel Index). It displays current trend directions for M1, M5, M15, M30, H1, H4, D1, W1, and MN1 timeframes. When you follow such an indicator you have a clear picture of the trends across all important timeframes. It doesn't matter which timeframe you attach this indicator to. The indicator can be downloaded for MT4 and MT5.

Calculate a moving average in one function call. Code that can easily be transported between different projects.

123456789...188