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

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

System of receiving information concerning opened positions' current state, account, etc., as well as automatic notification about operations via ICQ.

The Exp_ExchangePrice EA is based on the signals of the ExchangePrice trend indicator.

The Exp_MaByMa EA is based on the signals of the MaByMa trend indicator.

The Exp_TSI_DeMarker EA is based on the signals of the TSI_DeMarker trend indicator.

The Exp_SlopeDirectionLine EA is based on the signals of the SlopeDirectionLine trend indicator.

The Exp_Karpenko EA is based on the signals generated by Karpenko oscillator.

The Exp_TSI_WPR EA is based on the signals generated by the TSI_WPR oscillator.

One-click closing of all positions, or closing of all positions after getting the stated profit as a percentage of the deposit.

This trading system uses the BlauSMStochastic oscillator.

Fine Clock. Displayed on all charts.

MA

A very simple EA based on the crossover of two Moving Average.

The Exp_SimpleBars Expert Advisor is based on the signals of the trend indicator SimpleBars.

The Exp_KaufWMAcross trading system is based on change of the trend direction displayed by the KaufWMAcross indicator.

The Exp_BvsB Expert Advisor is based on the signals of the trend indicator BvsB.

The Exp_BnB Expert Advisor is based on the signals of the trend indicator BnB.

A multi-currency trading system, based on Bollinger Bands and trend catching technique. Capable of trading up to 6 currencies simultaneously. System has build in optimization parameter sharing.

This CExpert subclass allows to open only long/short orders, showing its usage with an MACD example.

This Expert can run on all Symbols and Time Frames and uses the crossover of two Linear Moving Averages as Signal and an Exponential Moving Average as Trailing Stop.

The Exp_TSI_CCI Expert Advisor is based on the signals generated by the TSI_CCI oscillator.

The Exp_CronexRSI Expert Advisor is based on the signals generated by the TSI_MACD oscillator.

The Exp_HullTrend Expert Advisor is based on the signals of the trend indicator HullTrend.

The Exp_wlxBWWiseMan-2 Expert Advisor is designed using the semaphore signal indicator wlxBWWiseMan-2.

Trading system using the TrendMagic indicator.

The Exp_CronexChaikin EA is based on the signals generated by the CronexChaikin oscillator.

The Exp_CronexDeMarker EA is based on the signals generated by the CronexDeMarker oscillator.

The Exp_CronexAO EA is based on the signals generated by the CronexAO oscillator.

The Exp_CronexAC EA is based on the signals generated by the CronexAC oscillator.

The MACD Sample Expert Advisor trades at the crossover of the main and the signal line of the MACD. This Expert Advisor is an example of object-oriented approach in EA development.

A trading system that uses the DynamicRS_C indicator.

Example of getting world index quotes from Google Finance.

The EA shows information on available trading signals' features, allows to manage their copying settings, as well as subscribe to and unsubscribe from signal copying.

This EA is based on SMA, ADX and SAR indicators.

The EA for trailing along a price channel.

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.

1...222324252627282930313233343536