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 - 2

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

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

Official example involve complex wrapper classes, Here is a simple one

This expert advisor is based on the alligator indicator and bollinger bands indicator. Currency pair: GBPAUD Time frame: 15min

Reversal strategy using Moving Average, Standard Deviation and RSI

US: This is a very simple code regarding an information panel. It doesn't use external files or anything like that! simply copy and paste it into your code the way the code was written. The dashboard displays; Active asset price Your position(Bought or sold) Maximum and minimum price of the asset Username open profit Balance PT-Br:Esse é um codigo bem simples a respeito de um painel de informações. Não utiliza arquivos externos ou algo do tipo! simplesmente, copie e cole no seu codigo da forma que o codigo foi escrito. O painel exibe; Ativo Preço do ativos Sua posição(Comprada ou vendida) Preço max e minimo do ativo Nome do usuario Lucro em aberto Saldo

Rsi close/ mtf use

MTF divergence settings

The DD_Relative function calculates the drawdown (relative loss) of the current trading account in percentage. To do this, it uses the Current_LossOrProfit() function to get the current profit or loss for all open positions and divides it by the current account balance. The result is rounded to two decimal places and displayed in the chart comment. The Current_LossOrProfit() function loops through all open positions in the account and adds the commission, swap, and current profit or loss for each position. The result is rounded to two decimal places and returned as the current profit or loss of all open positions.

The function takes two arrays of integers as parameters: "allowedPeriods" and "periodsToCheck". "allowedPeriods" is an array containing all the time periods allowed by the system, while "periodsToCheck" is an array containing the time periods used by the user in the indicator. The function iterates through the elements of the "periodsToCheck" array and checks if each of them is present in the "allowedPeriods" array. If it finds any time period that is not allowed, the function returns "false". If all time periods are allowed, the function returns "true". In short, this function is used to make sure that the time periods used in an indicator are valid and allowed by the system.

a Template for Multicurrency system for Metatrader 5

Strategy that uses the CCI indicator 0-line cross to spot trades and the MACD indicator to confirm them.

Forex Trade Manager MT5 simplifies managing open orders in MetaTrader 5.

Forex Trade Manager Grid MT5 helps you to managing orders and achieve the goal.

RSI Bot, send alert buy when RSI<=20, send alert sell when RSI>=80

Parmis les 5% des traders les plus performant du desk ''Options Dérivées'' de la Société Générale. PnL 22MEUR entre 01/01/2022 au 27/12/2022

- This Bot use stratery Breakout of Daily Bar, I tested for 3 Pair currency : GBPUSD, EURUSD, XAUUSD - Default setting is not sure the best, you can test for your parameter. - This is version for MT5 that convert from MT4 - this EA is best for broker low spread

A simple and easy to understand function that calculates todays profit, written to the Expert Journal.

Automatically export csv file

One code that works for both Mt4 and Mt5 combined. Salient features of the code: -Filter News by High, Low or Medium Volatility -Filter By currencies -Filter by News Keyword -Auto GMT offset check -Dashboard to show upcoming News (Can be enabled or disabled) -Lines on chart for all Upcoming events -Code can be easily modified to place trade at certain time before or after an event or to just stop trading during events.

This EA started off as a job to trail equity. I then added the function of managing individual trades. Thereafter I added the facility of manually putting the price of when it can send a grid of pending order's. This EA does not have condition set in it to open trades. You have to determine that if market moves to an area you believe you would open a grid of orders if you were by your computer watching the market. No what this EA helps is you wake up in the morning you see the area you a grid to open. PUT THE PRICE FOR THE EA TO OPEN A GRID OF PENDING ORDERS. If the market reaches the area price you have set. The EA will send the grid and will manage those trades putting Stop Loss (if you set it) trailing(if you set it). Today 13 Sep 2022 the EA generates has NO ERROR when compiled

Source code of simple order panel

Modify to allow direct specification of the starting point of the Parabolic SAR.

Two pending orders at the beginning of the day

The Expert Advisor is a joke: the position is opened randomly. Now there is a Stop Loss, Take Profit and much more

Expert is a joke! The position is opened at random!

A simple trading system using the custom indicator "WPR Custom Cloud"

Simple EA on 'iVIDyA' indicator

Trading strategy for the custom indicator 'OsMA Four Colors Arrow EA'

Martingale based on custom indicator 'VIDYA N Bars Borders'

Finalization of previous version. Now, when opening a 'SELL' position, we immediately close all 'BUY' positions and vice versa: when opening a 'BUY' position, we immediately close all 'SELL' positions

Trading strategy based on the iAMA (Adaptive Moving Average, AMA) and iRSI (Relative Strength Index, RSI) indicator. Doubling the position at a loss (not Martingale!)

Just a very simple expert that execute orders from a text file.

Strategy based on custom indicator 'RSI Dual Cloud'. Four types of signals

Shows your position size through a comment from any symbol chart based on a risk percent on daily ATR, you can use either balance or equity.

123456789...36