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

Top Expert Advisors for MetaTrader 5 based on user ratings - 17

Submit your code

A trading strategy "three bars down, Stochastic up".

The Expert Advisor uses the signals of "crossover of two iMAs (Moving Average, MA)". The EA uses Trailing Stop and Take Profit.

A trading system based on indicators MACD and SAR. The signal receiving formula is completely optimizable.

Positions are opened pseudorandomly. In case of loss (closing by Stop Loss and negative profit), Martingale is applied.

The EA based on single iMA (Moving Average, MA) indicator signals.

An Expert Advisor based on iRSI (Relative Strength Index, RSI).

An Expert Advisor based on iMA (Moving Average, MA) and iMomentum (Momentum).

Working with pending Stop orders

Classical Sudoku puzzle right in MetaTrader chart.

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

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.

It uses the values of ADX indicator for trading.

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

Trade signals based on "Dark Cloud Cover/Piercing Line" candlestick pattern, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Trade signals based on "Morning Star/Evening Star" candlestick patterns, confirmed by Market Facilitation Index (MFI) indicator is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

Multi-currency trend following expert system using the Triple Exponential Moving Average technical indicator.

The Expert Advisor tries "to catch" rollbacks after a strong movement. Candlestick analyses is used

The Exp_CoeffofLine_true Expert Advisor based on the CoeffofLine_true indicator. A signal to perform a deal is formed at bar closing, if the histogram breakthroughs its zero level

The trading system based on change of the trend direction and force of the trend displayed by the ColorXADX indicator.

The Exp_ColorZerolagTriXOSMA Expert Advisor is based on the ColorZerolagTriXOSMA histogram change of direction.

The Exp_iAnchMom Expert Advisor is based on the reversal of the iAnchMom histogram direction.

The Exp_XDerivative Expert Advisor is based on the XDerivative oscillator change of direction.

Trading system based on ColorHMA_StDev indicator signals.

Exp_TSICloud Expert Advisor is based on the change of color of TSICloud indicator.

Trading system based on the signals of the i-CAi_StDev indicator.

The Exp_XMACandles Expert Advisor is based on signals of the XMACandles indicator.

An example of receiving the High and Low prices of bars over the past 24 hours.

The EveningStar Expert Advisor trades the "Evening Star" pattern. Lot is calculated based on the risk value as a percentage of free margin.

Martingale and anti-martingale.

Trading on several candlestick patterns. The levels of Take Profit, Stop Loss, and Trailing are separate for BUY and SELL.

Two identical trading systems based on the signals of BrainTrend2_V2, for long and short trades, which can be configured in different ways within one Expert Advisor.

The EA performs initial opening in both directions. Then it tries to pull the remaining side into profit.

An Expert Advisor based on the iWPR (Williams' Percent Range, %R) indicator with the operation time control.

Two identical trading systems (for long and short positions) based on the signals of the VortexIndicator indicator, which can be configured in different ways within one Expert Advisor

The Expert Advisor uses iMA (Moving Average, MA), iAO (Awesome Oscillator, AO) and custom Laguerre indicators.

This is a simple mean reversion EA

An automated Expert Advisor that implements a popular MACD-based strategy as seen in a viral YouTube video with over 3.5 million views. Combines MACD crossovers, trend filtering with the 200 MA, and support/resistance detection.

The Expert Advisor with a basic trading system on the basis of the CCI indicator and several linear perceptrons regulating the work of the basic trading system.

The Exp_ColorZerolagMomentumOSMA Expert Advisor is based on the ColorZerolagMomentumOSMA histogram's change of direction.

1...101112131415161718192021222324...38