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

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

Original Turtle Rule Trader Expert Advisor implements a trading system described in the book "The Original Turtle Trading Rules". The EA code implements the visual display of the three Donchian channels, money management, opening and adding trades and moving stop levels.

CandelsHighOpen Expert Advisor is based on the Candels High Open indicator trading signals module. The EA features trading market and pending orders, as well as trailing stop based on Parabolic SAR.

The simplest Expert Advisor based on MFI.

The simplest Expert Advisor based on RSI.

The Expert Advisor uses Fibo levels and iSAR indicator - Parabolic Stop and Reverse system. Trading is performed using BuyLimit and SellLimit orders.

Crossing of the two iMAs.

The Expert Advisor increases the volume of an open position if profit in points from the last trade increases a threshold fixed in the EA inputs.

The Expert Advisor moves a stop loss to a predefined fixed distance from the current price.

Scalpel EA for MetaTrader 5

The Expert Advisor opens trades when the price approaches an integer cent, for example, 1.39, 1.40 or 1.41.

The Expert Advisor moves a position to a breakeven when a predefined profit is reached.

The Expert Advisor opens and closes positions at the predefined moments in time.

Non-indicator system based on the analysis of the four previous bars. Implemented partial closing.

The Exp_CenterOfGravityCandles Expert Advisor is based on signals of the CenterOfGravityCandles indicator.

This Expert Advisor closes all positions if the total loss/profit exceeds a predefined limit.

The Expert Advisor is based on a standard trend strategy and the two-layer neural network that is trained to enter the market against a trend.

This Expert Advisor closes all positions if the total profit exceeds a predefined limit.

This Expert Advisor closes all positions if the total loss exceeds a predefined limit.

Analyzing iBullsPower and iBearsPower indicators on the first bar.

The trading system based on the three RVI oscillator signals from three different timeframes.

The trading system based on the three Stochastics signals from three different timeframes.

Open and close at a certain time. A trade having a specified volume is opened at a specified symbol. Select position type: Buy or Sell.

The Expert Advisor using artificial intelligence - a single-layer neural network. The "Perceptron" is used for identification of the quotes movement direction. Both iAC indicator and CopyTime calls are used.

Receive data from two indicators: iStochastic and iWPR.

e-Regr — MetaTrader 5 Expert Advisor. Trading by i-Regr (Regression Channel). Extensive use of the standard library classes.

Extensive use of the standard library classes.

The extensive use of standard library classes and the uniform code for data acquisition from iMACD, iStochastic, iSAR and iMomentum indicators.

CyberiaTrader is a MetaTrader 5 Expert Advisor.

Exp_X2MA_Digit_DM_361 trend-following trading system is based on ColorX2MA_Digit and ColorDM_361 indicator signals.

Exp_X2MA_JJRSX trend-following trading system is based on ColorX2MA and ColorJJRSX indicator signals.

Multi Lot Scalper Expert Advisor, MetaTrader 5 version.

Exp_X2MA_JFatl trend-following trading system is based on ColorX2MA and ColorJFatl indicator signals.

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

The Exp_Trigger_Line Expert Advisor based on signals of the Trigger_Line indicator.

Trading system based on the signals of the MFI_Slowdown indicator.

Trading system based on the signals of the WPR_Slowdown indicator.

Trading system based on the signals of the RSI_Slowdown indicator.

The Exp_Delta_WPR Expert Advisor is based on the Delta_WPR indicator color change.

The Exp_Delta_MFI Expert Advisor is based on the Delta_MFI indicator color change.

The Exp_Delta_RSI Expert Advisor is based on the Delta_RSI indicator color change.

1...151617181920212223242526272829...36