Guarda come scaricare robot di trading gratuitamente
Ci trovi su Telegram!
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

Codici sorgente MQL5 di Expert Advisors per MetaTrader 5

icon

Gli Expert Advisors analizzano i grafici dei prezzi e fanno trading automatizzato, seguendo le regole di riferimento. Qui troverai i codici sorgente MQL5 i quali porranno aiutarti a risolvere un gran numero di problemi. Potrai selezionare sia dei semplici Expert Advisor basati sull'incrocio di medie mobili, sia Expert Advisor più complessi che comprendono algoritmi di generazione di segnali e protezione contro gli errori di trading.

È possibile scaricare e lanciare gli Expert Advisors disponibili in MetaTrader 5. Ti raccomandiamo di testare e ottimizzare i robot di trading nello Strategy Tester prima di usarli. La libreria di Expert Advisor è anche disponibile direttamente dalla piattaforma MetaTrader 5 e dall'ambiente di sviluppo MetaEditor.

Invia il tuo codice
più recenti | migliori

Select the last closed deal (trade) to further work.

This EA help you for Auto set the TP & SL by default parameter, Auto trailing stop & step for any order that you place from any device, Easy way to close all orders with 3 Button "Close All" "Close Profit" "Close Lose", Auto close all orders by profit or lose treshold value

QuickTradeKeys 123 is a user-friendly Expert Advisor (EA) for MetaTrader 5, enabling traders to execute buy and sell operations quickly by simply pressing the numbers '1' and '2' on their keyboard. Pressing '3' closes all open positions. This EA is ideal for swift trading and testing purposes where manual intervention is required without using the mouse.

A simple yet effective donchian channel breakout strategy. This strategy is timeless!

Here are some examples of codes for set counters based on "Count"

If you only want to execute your code blocks "only once per bar" it's important to check if there is new bar arrived or not.

This code block loops through all opened position and do trailing based on Ask and Bid prices.

This code block detects a New Bar or a New Candle when it has received.

Il libro "Reti neurali nel trading algoritmico con MQL5" è una guida completa, che copre sia le basi teoriche dell'intelligenza artificiale e delle reti neurali sia gli aspetti pratici della loro applicazione nel trading finanziario utilizzando il linguaggio di programmazione MQL5.

Now we will get the code with function and purpose as below: 1. How to call and using the bollinger band 2. How to call and using the volume tick 3. How to call and using the Moving average volume. 4. How to code using the Trailling & Check volume lot size

Short description.

KA-Gold Bot is an advanced trading advisor specifically designed for gold, utilizing the powerful combination of the Keltner channel strategy and two exponential moving averages (EMAs) - the 10-period EMA and the 200-period EMA. Principle of Operation: The 10-period EMA represents the average price cutting above/below the Keltner band, confirming an uptrend/downtrend. The price being above the 200-period EMA supports the uptrend/downtrend. This indicates that the uptrend/downtrend has been stronger than the previous 10 periods, considering the volatility over the last 50 periods. - Time frame: M15

The EA only trades buy positions and does not use SL and TP.

Syncs all chart symbols to symbol of the chart the EA is attached to

This utility is simple example to add sound alert on connect / disconnect

La settima parte finale del libro discute le funzionalità avanzate dell'API MQL5, che saranno utili durante lo sviluppo di programmi per MetaTrader 5. Questi includono simboli finanziari personalizzati, eventi del calendario economico integrato e tecnologie generiche come reti, database e crittografia.

Nella sesta parte di "MQL5 Programming for Traders ", studieremo un componente chiave del linguaggio MQL5 – l'automazione del trading. Inizieremo con una descrizione delle entità fondamentali, come le specifiche degli strumenti finanziari e le impostazioni del conto di trading. Questi sono i prerequisiti per creare Expert Advisor che funzionino correttamente.

Nella quinta parte del libro, approfondiremo le API associate al trading algoritmico, tra cui l'analisi e l'elaborazione dei dati finanziari, la visualizzazione dei grafici, l'automazione e le interazioni con gli utenti.

Nella quarta parte del libro, ci concentreremo sulla padronanza delle funzioni integrate (API MQL5) e ci addentreremo gradualmente nei sottosistemi specializzati. Qualsiasi programma MQL5 può utilizzare una pletora di tecnologie e funzionalità. Pertanto, ha senso iniziare con le funzioni più semplici e utili che possono essere utilizzate nella maggior parte dei programmi.

La terza parte "Programmazione orientata agli oggetti in MQL5" offre un'immersione nel mondo della programmazione orientata agli oggetti (OOP) nel linguaggio MQL5. Lo sviluppo di software comporta spesso la complessità legata alla gestione di più entità, richiedendo tecnologie avanzate per migliorare la convenienza, la produttività e la qualità della programmazione.

La seconda parte "Fondamenti di programmazione MQL5" è un'introduzione ai concetti chiave di questo linguaggio di programmazione. Questa parte del libro è dedicata ai tipi di dati, agli identificatori, alle variabili, alle espressioni e agli operatori. Imparerete come combinare diverse istruzioni per formare la logica del programma.

Il primo capitolo del libro introduce il linguaggio MQL5 e l'ambiente di sviluppo. Una delle nuove funzionalità introdotte nel linguaggio MQL5 rispetto a MQL4 (linguaggio MetaTrader 4) è il supporto per la programmazione orientata agli oggetti (OOP), che lo rende simile a C++.

a Simple Visual Strategy Tester / Manual Trade Training using Martingale.

Questo Expert Advisor non trada. Un semplice pannello, implementato utilizzando la libreria standard Canvas, permette di disegnare cifre con il mouse. Il modello addestrato mnist.onnx viene utilizzato per riconoscere le cifre.

This is an mql5 Expert Advisor trading the breakouts and using Martin Gale risk management.

This function allows you to retrieve and return the filling policy of a symbol in MetaTrader 5. This is useful for making trading decisions based on the filling policy of a specific financial instrument.

"This advisor uses the RSI indicator to determine optimal entry and exit points in the market. A unique feature of the advisor is its martingale strategy, which allows for position reversal with an increased lot size during market reversals. The advisor offers flexible trading time settings: you can set a working time range and disable trading during specific hours to filter out news events."

The EA trades using the Rectangle, EMA and SMA indicators.

On contrast with Trailing Stop which a stop loss trails price until the price hits the stop loss and the position gets closed in profit, introducing Trailing Take Profit which take profit trails price when a position is in loss and ultimately the position gets closed with loss.

The AK-47 Scalper EA is fully automated. It employs a strategy of continuously entering Sell Stop orders and will modify them when the price moves against the pending orders.

Explore the implementation of equity-based position closure in your trading bot, where positions are closed automatically when the equity reaches a certain percentage threshold.

To use martingale money management when a position is in loss and price hits any of specific distances.

This code snippet implements a dynamic risk management strategy for existing trades. It focuses on closing trades based on profit or loss thresholds and employs a trailing stop loss to lock in profits as the trade moves favorably. The strategy helps manage risk and enhance profitability in a streamlined manner.

This MT5 Expert Advisor opens multiple buy and sell orders based on user input, featuring a simple interface with Buy and Sell buttons. The EA calculates lot size, checks the spread against slippage, and places orders accordingly. It is essential to test this EA in a demo account before using it in live trading.

This code initializes the necessary objects and input parameters, and defines a CheckTrades() function that calculates the risk and profit amounts based on the account balance and user input. It then iterates through open orders and checks if the current profit or loss meets the user-defined thresholds, and closes the position if necessary

This class allows you to create buttons on the chart as if they were chart objects(have time and price coordinates) these objects can be dragged on the chart and when scrolling they stay at the same place. If you wan't to learn some Object Oriented Programming or if you wan't to understand how chartevents work or you wan't to create graphical interfaces, you can learn a lot from this.

Close trades when the percentage profit or risk of the account is reached

to display trade history files(.csv) on charts.

MoveStoploss moves the stoploss as the trade move in your direction at a specific distance. Version 1.1 has automatic trail error fixed.

Returns the price for the most recent fractal high

123456789101112131415161718192021222324252627282930313233343536