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

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

Strategies based on iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI)

The Expert Advisor based on iStochastic (Stochastic Oscillator) indicator and OHLC analysis

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

The trading system based on the JFatlCandle indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

The trading system based on the X2MACandle indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

The Expert Advisor based on iMA (Moving Average, MA) and OHLC

Two independent trading systems applying Skyscraper_Fix and AbsolutelyNoLagLWMA indicators in a single Expert Advisor

The Expert Advisor sets pending Buy limit and Stop limit orders.

Two independent trading systems using Skyscraper_Fix and ColorAML indicators 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

The Expert Advisor based on iAlligator (Alligator) indicator.

Three independent trading systems using Skyscraper_Fix, ColorAML and X2MACandle indicators 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

Three independent trading systems using BrainTrend_V2, AbsolutelyNoLagLWMA and X2MACandle indicators 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

The Expert Advisor compares Close prices

The trading system based on i-AnyRangeCldTail_System indicator signals with the possibility to set a fixed position holding time

The EA based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator).

The trading system based on Iin_MA_Signal indicator signals

Renko charts on custom symbols

EA based on FlatTrend indicator. You can also include working time.

Defining a signal based on several indicators: iMA (Moving Average, MA), iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator), iOsMA (Moving Average of Oscillator, OsMA) and iAO (Awesome Oscillator, AO). The indicators are surveyed in a certain sequence.

The Expert Advisor sets pending Buy Stop and Sell Stop order at a specified time.

The trading system based on XCCI_Histogram_Vol indicator signals

The trading system based on the signals of the XRSI_Histogram_Vol indicator

The EA is based on iAO (Awesome Oscillator, AO) and RAVI (Range Action Verification Index) indicators.

The EA is based on the intersection of two iMAs (Moving Average, MA) but with an additional filter: price from ENUM_APPLIED_PRICE

The trading system based on the Iin_MA_Signal indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Trading strategy based on iAMA (Adaptive Moving Average, AMA) and iRSI (Relative Strength Index, RSI) indicators. Martingale is applied.

The trading strategy based on two oscillators: iCCI (Commodity Channel Index, CCI) and iRSI (Relative Strength Index, RSI).

The trading system based on XRSI_Histogram_Vol_Direct indicator signals

The trading system based on XCCI_Histogram_Vol_Direct indicator signals

"Previous Candle Breakdown" Expert Advisor.

The trading system based on TrendManager indicator signals with the possibility to set a fixed position holding time

Stop loss and take profit initial setting. Trailing.

Trading system based on iADX (Average Directional Movement Index, ADX) and iAMA (Adaptive Moving Average, AMA) indicators. The system works on a new bar only.

The trading system is based on a simple neural network.

The Expert Advisor based on iBullsPower (Bulls Power) and iBearsPower (Bears Power) indicators.

Analyzing the price channel (iHighest, iLowest) for a certain period of bars.

The Expert Advisor based on ZigZag.

The Expert Advisor based on iCCI (Commodity Channel Index, CCI) indicator.

The Expert Advisor based on BrainTrend1Sig indicator

The trading system based on XDeMarker_Histogram_Vol indicator signals

123456789101112131415...36