Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Access the CodeBase from your MetaTrader 5 terminal
Couldn't find the right code? Order it in the Freelance section
How to Write an Expert Advisor or an Indicator

MQL5 Source Codes of Expert Advisors for MetaTrader 5 - 36

icon

Expert Advisors analyze price charts and trade automatically following underlying rules. Here you can find MQL5 source codes solving a variety of problems. You are able to select both simple Expert Advisors based on moving average crossing and complex ones involving complicated signal generation algorithms and protection against trading mistakes.

You can download and launch offered Expert Advisors in MetaTrader 5. It is recommended that you test and optimize trading robots in the Strategy Tester before using them. The library of Expert Advisors is also available directly from MetaTrader 5 platform and MetaEditor development environment.

Submit your code

Trade signals based on price crossover with moving average indicator (CSignalMA from MQL5 Standard Library) is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.

The Panel Designed for "Best Graphic Panel in MQL5" Contest. This graphic panel allows to automate manual trading. It has many functions, including the visual construction of trading strategies.

The MCM Control Panel provides the solution for multicurrency trading in MetaTrader 5.

The eInTradePanel is a panel for manual trading, it has some useful functions. It needs the minimum space on the chart.

The panel simplifies manual trading and trailing of the opened position.

Control panel for the MQL5 Best Graphic Panel Contest.

This Expert Advisor will simplify the manual trading. It supports the One-Click trading.

Graphic Panel Contest submission.

Chart reinitialization with recalculation of all chart indicators.

It has simple code and trading rules. It's doesn't use any martingale MM strategies.

The OnTick event handler is designed to proceed the ticks for a certain symbol. This is the version of Multicurrency tick event handler.

This Expert Advisor uses two Moving Averages and RSI indicator.

This code is a template of an Expert Advisor, written by Valery Mazurenko (notused) for ATC-2010.

It uses the values of ADX indicator for trading.

This simple Expert Advisor uses Simple Moving Average and ADX indicators.

Using Perceptron, Automatic Learning

The Improved version of MаrtGreg Expert Advisor.

This Expert Advisor is based on Bollinger Bands. It uses trend-following strategy and Bollinger Bands indicator.

It uses martingale, the number of doublings is limited.

This Expert Advisor allows you to save infomation about the ticks, actual or simulated in Strategy Tester.

This robot uses a random number generator to simulate simply tossing a coin to decide on the direction of each trade. It provides an example of a minimal expert advisor programmed in an object-oriented style. It also provides a basis for quantifying the value added by alternative methods of entry.

One-click trading.

The Multicurrency Expert Advisor.

An Expert Advisor, based on two MACD, it uses the martingale money management system.

This Expert Advisor uses the Index Moving Average indicator.

An Expert Advisor for trading during the night.

An Expert Advisor, based on the "Puria method" Forex Strategy.

This is a simple Expert Advisor, that uses a specified custom RKD indicator.

The Expert Advisor is based on Heiken Ashi indicator.

Something for those who wants to try out new Strategy Tester and don't have any EA.

A very simple sample of clock

This is a simple example of user interface of information system with possibility to trade by pressing a button.

1...2930313233343536