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

MQL5 Source Codes of Expert Advisors for MetaTrader 5 - 30

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

A trading system using the HighsLowsSignal semaphore arrow indicator.

The Exp_StochasticCGOscillator EA is based on the signals generated by the StochasticCGOscillator oscillator.

The Exp_ColorTSI-Oscillator EA is based on the signals generated by the ColorTSI-Oscillator oscillator.

The Exp_AFIRMA Expert Advisor is based on the signals of the AFIRMA (Autoregressive Finite Impulse Response Moving Average) indicator.

A trading system that uses the VolatilityPivot NRTR indicator.

A trading system that uses the XD-RangeSwitch semaphore, signal indicator.

The Exp_FisherCGOscillator EA is based on the signals generated by the FisherCGOscillator oscillator.

This trading system uses the ColorJJRSX oscillator.

The simplest robot that buys and sells!

A trading system using The_20s_v020 semaphore arrow indicator.

A trading system that uses the smoothed Slow-Stoch stochastic.

A trading system using the BW-wiseMan-1 semaphore signal indicator.

A trading system using the AltrTrend_Signal_v2_2 semaphore signal indicator.

Trading system using the Digital_MACD indicator.

Trading system using the RSIOMA_V2 indicator.

A trading system using the T3_TRIX indicator.

This trading system uses the BlauErgodic oscillator.

This trading system uses the BlauTSStochastic oscillator.

Trading system using the BlauTStochI indicator.

This trading system uses the BlauErgodicMDI oscillator.

Trading system using the BlauCSI indicator.

The Moving Average Expert Advisor trades when the price crosses the MA.

A trading system that uses the Candle Momentum indicator.

A trading system that uses the Candle Momentum Index.

An example of how to create a multicurrency Expert Advisor that trades using the Bollinger Bands indicator.

Trading signals of candlestick patterns with confirmation by Stochastic indicator.

IREA is an automated trade algorithm based on the idea of that an unusual impact in price changes will be adjusted by an inverse movement.

An Expert Advisor based on two indicators - Renko Line Break and RSI. It trades stop orders.

A panel for opening and closing positions on several financial symbols in one click.

Trading strategy based on ASCTrend indicator as main signal, filtered by NRTR indicator and/or by TrendStrength indicator.

Trading system using the XMUV and MUV_NorDIFF_Cloud indicators.

Trading system using the F2a_AO semaphore, signal indicator.

Trading system to trade on the trend market using the Color3rdGenXMA Moving Average.

Trading system using the Exp_QQECloud trend indicator.

This Expert Advisor works with Neural Network method

Trading system using the FigurelliSeries trend indicator

The simplest non-indicator based trading system that defines the moments of entry by presence of single directed candlesticks

Calculator-panel to calculate profit/loss. Data is calculated either when moving lines, or changing the parameters in input fields of the entry price, lot, profit or loss in pips or in deposit currency

The script demonstrates the example of using the FileWriteArray() function

The Expert Advisor on the breakthrough of the range defined by the signals of the Narrowest Range Signal indicator. Handling stop orders

1...2324252627282930313233343536