Watch how to download trading robots for free
Find us on Facebook!
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 - 7

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

Trading system based on XWPR_Histogram_Vol indicator signals

The trading system based on XWPR_Histogram_Vol_Direct indicator signals

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

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

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

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

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

The Expert Advisor is based on OHLC and three indicators: iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator) and iRSI (Relative Strength Index, RSI)

RNN

The Expert Advisor based on iRSI (Relative Strength Index, RSI) indicator and a small neural network

MAMy v.3 indicator-based EA

At the specified hour, the Expert Advisor analyzes OHLC of the previous bar and sets pending orders

The trading system based on XBullsBearsEyes_Vol indicator signals

The trading system based on XBullsBearsEyes_Vol_Direct indicator signals

This utility Expert Advisor works with a virtual stop loss and take profit. Trailing positions on the current symbol.

Expert Advisor based on iAO (Awesome Oscillator, AO)

Position volume calculation based on trading history. The Expert Advisor applies iCCI (Commodity Channel Index) and iMA (Moving Average) indicators. Trailing is present as well.

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

The Expert Advisor combines signals from several indicators. It can also follow a certain indicator.

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

Exp_XFisher_org_v1 Expert Advisor based on XFisher_org_v1 oscillator signals.

Working by iMA (Moving Average, MA) and OHLC of W1 timeframe

Multiple strategies within a single Expert Advisor. When two or more strategies are activated, a position lot is increased exponentially.

The EA applies WPR Custom indicator.

The Expert Advisor counts the number of bullish and bearish bars in a row.

The Expert Advisor applies iMA (Moving Average, MA), iRSI (Relative Strength Index, RSI) and Silence indicators. Martingale.

Pendulum. Constant opening of positions.

The Expert Advisor applies iADX (Average Directional Movement Index, ADX) and iBands (Bollinger Bands, BB) indicators

Moving positions to breakeven

The Expert Advisor follows iSAR (Parabolic SAR) indicator.

Brief description

The Expert Advisor is based on iCCI (Commodity Channel Index, CCI) and iMA (Moving Average, MA) indicators.

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

Trading system based on iAC indicator (Acceleration/Deceleration, Accelerator/Decelerator Oscillator, AC)

Another variation of the strategy based on the current candle being higher or lower than the previous one

Have a look at the daily bar #1. Position trailing.

The trading system defines flat/trend using iChaikin (Chaikin Oscillator, CHO) indicator.

The Expert Advisor based on two oscillators: iCCI (Commodity Channel Index, CCI), iStochastic (Stochastic Oscillator) and one trend iMA (Moving Average, MA) indicator.

Defining the channel width for a previous day.

"Previous Candle Breakdown" Expert Advisor.

Two identical trading systems (for long and short deals) based on the ColorSchaffJCCXTrendCycle indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

1234567891011121314...36