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

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

MacdPatternTraderAll - Expert Advisor for MetaTrader 5. Six (iMACD, MACD, Moving Average Convergence/Divergence) indicators and four (iMA, MA, Moving Average) indicators. Opens trades when the indicator's MACD crosses its signal line.

Expert Advisor inspired by Ilan 1.6. It uses the iCCI(CCI, Commodity Channel Index), iRSI(RSI, Relative Strength Index) indicators.

The simplest EA based on the fractal MFI.

Trading based on two indicators: iAlligator (Alligator).

Works based on two indicators: iCCI (Commodity Channel Index, CCI) and iMACD (Moving Average Convergence/Divergence, MACD). OnTradeTransaction().

Trading based on the ZeroLag MACD custom indicator.

The Expert Advisor based on the iAlligator (Alligator), iMA (Moving Average) indicators.

The Expert Advisor works in martingale mode based on the signals of iStochastic (Stochastic Oscillator).

The Expert Advisor uses signals from the indicators: ATR, MACD.

Increasing the lot after a losing trade. Entry signals are based on the DeMarker indicator.

The simplest EA based on the WeightOscillator weighted oscillator.

Ilan1.4 - Expert Advisor for MetaTrader 5.

The Exp_SilverTrend_Signal_ReOpen trading system based on the signals of the SilverTrend_Signal indicator with scaling by the trend.

The Exp_BykovTrend_ReOpen trading system based on the signals of the BykovTrend indicator with scaling by the trend.

The Expert Advisor trades daily breakouts. It places pending BuyStop and SellStop orders.

EMA_WMA - Expert Advisor for MetaTrader 5. Intersection of two iMA (MA).

The Exp_RSIOMA Expert Advisor based on the signals taken from the RSIOMA histogram.

The simplest EA based on the fractal Force_Index.

Pipsing EA. Indicators are not used.

The EA uses 15 IMA indicators and two iAC indicators.

The Expert Advisor is based on the signals of the iADX (Average Directional Movement Index) indicator.

The trading system based on crossing of the DI+ and DI- lines of the Fractal_ADX_Cloud indicator.

The PROphet Expert Advisor consists of two independent linear perceptrons.

The Expert Advisor based on intersection of two iMA.

Grid with a constant step. Grid lot sizes based on Fibonacci.

The Expert Advisor opens a reverse position, additionally placing a grid of orders for reinforcement.

The Expert Advisor trades based on two iMA: iMA(5) and iMA(4) on the M5 timeframe.

The simplest EA based on the fractal WPR.

The Expert Advisor processes signals from four iWPR indicators with different averaging periods.

The Expert Advisor manages positions using labels.

The Expert Advisor uses the iStochastic (Stochastic) Oscillator, iWPR (Larry Williams' Percent Range) indicators.

The Expert Advisor opens trades based on the Bollinger Bands indicator.

The Expert Advisor which uses the AO and AC indicators in its operation, which were proposed by the Bill Williams.

Uses the iStochastic (Stochastic) indicator from three different timeframes.

Trades using the pending Sell Limit and Buy Limit orders. Removes all orders and closes positions at 23:59.

The Exp_ColorZerolagMomentum_X2 trend trading system based on the signals from two ColorZerolagMomentum indicators.

GO

Signals based on four iMA (MA) indicators, by PRICE_OPEN, PRICE_HIGH, PRICE_LOW, PRICE_CLOSE prices. Trades only on hedge accounts.

Works based on the iMACD (MACD) indicators

The Exp_2pbIdealMA EA is based on the crossing of Moving Averages with position scaling according to the trend.

Intersection of two iMA (MA). Uses the iATR indicator.

1...161718192021222324252627282930...38