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

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

The Exp_ColorZerolagJCCX Expert Advisor enters the market when the ColorZerolagJCCX indicator cloud changes its color.

This advisor demonstrates an example of global variables usage. The task of the advisor: store the calculation result in a global variable and get the global variable value on new initialization.

The Exp_ColorZerolagJJRSX Expert Advisor enters the market when the ColorZerolagJJRSX indicator cloud changes its color.

The Exp_ColorSchaffJJRSXTrendCycle Expert Advisor is based on the ColorSchaffJJRSXTrendCycle oscillator change of position relative to the overbought and oversold levels.

Simple TP/SL panel for MetaTrader 5.

The Exp_Instantaneous_TrendFilter Expert Advisor enters the market when the Instantaneous_TrendFilter indicator cloud changes its color.

The Exp_i-AMMA Expert Advisor is based on the reversal of the i-AMMA moving average direction.

The Exp_ColorZerolagHLR Expert Advisor enters the market when the ColorZerolagHLR indicator cloud changes its color.

The Exp_HullTrendOSMA Expert Advisor is based on the reversal of the HullTrendOSMA histogram direction.

The Exp_iAnchMom Expert Advisor is based on the reversal of the iAnchMom histogram direction.

The Exp_Ichimoku_Osc Expert Advisor is based on the reversal of the Ichimoku_Osc signal line.

The Exp_i_Trend Expert Advisor is based on the signals generated by the i_Trend oscillator.

The Exp_i-KlPrice Expert Advisor is based on the i-KlPrice histogram breaking through the overbought and oversold levels.

The Exp_i-BandsPrice Expert Advisor is based on the i-BandsPrice histogram breaking through the overbought and oversold levels.

The Exp_DecEMA Expert Advisor is based on the reversal of the DecEMA moving average direction.

The HVR indicator with the timeframe selection option available in the input parameters.

The Exp_ColorHMA Expert Advisor is based on the reversal of the ColorHMA moving average direction.

The Expert Advisor looks for a negative spread and trades using it.

The Exp_FractalAMA_MBK Expert Advisor is based on signals generated by two moving averages of the FractalAMA_MBK indicator.

The Exp_ForecastOscilator Expert Advisor is based on signals generated by the ForecastOscilator semaphore signal indicator.

The Exp_Force_DiverSign Expert Advisor is based on signals generated by the Force_DiverSign semaphore signal indicator.

The Exp_FineTuningMA Expert Advisor is based on the reversal of the FineTuningMA moving average direction.

The Exp_FatlMacd Expert Advisor is based on the reversal of the FatlMacd indicator direction.

The Exp_Fast2 Expert Advisor is based on signals generated by the Fast2 indicator.

The Exp_Ergodic_Ticks_Volume_OSMA Expert Advisor is based on the reversal of the Ergodic_Ticks_Volume_OSMA histogram direction.

The Exp_Ergodic_Ticks_Volume_Indicator Expert Advisor is based on signals generated by the Ergodic_Ticks_Volume_Indicator oscillator.

The Exp_EMA_Prediction Expert Advisor is based on signals generated by the EMA_Prediction semaphore signal indicator.

The Exp_EMA-Crossover_Signal Expert Advisor is based on signals generated by the EMA-Crossover_Signal semaphore signal indicator.

The Exp_DigVariation Expert Advisor is based on the reversal of the DigVariation non-normalized oscillator direction.

The Exp_DiNapoliStochastic Expert Advisor is based on signals generated by the DiNapoliStochastic oscillator.

The Exp_CyclePeriod Expert Advisor is based on the reversal of the CyclePeriod non-normalized oscillator direction.

The Exp_CronexCCI EA is based on signals generated by the CronexCCI oscillator.

The Exp_CoppockHist Expert Advisor is based on the reversal of the CoppockHist oscillator direction.

The Exp_ColorXdinMA Expert Advisor is based on the ColorXdinMA moving average change of direction.

The Exp_ColorXXDPO Expert Advisor is based on the ColorXXDPO oscillator change of direction.

The Exp_ColorSchaffWPRTrendCycle Expert Advisor is based on the ColorSchaffWPRTrendCycle oscillator change of position relative to the overbought and oversold levels.

The Exp_ColorSchaffTriXTrendCycle Expert Advisor is based on the ColorSchaffTriXTrendCycle oscillator change of position relative to the overbought and oversold levels.

The Exp_ColorSchaffRVITrendCycle Expert Advisor is based on the ColorSchaffRVITrendCycle oscillator change of position relative to the overbought and oversold levels.

The Exp_ColorSchaffRSITrendCycle Expert Advisor is based on the ColorSchaffRSITrendCycle oscillator change of position relative to the overbought and oversold levels.

The Exp_ColorSchaffMomentumTrendCycle Expert Advisor is based on the ColorSchaffMomentumTrendCycle oscillator change of position relative to the overbought and oversold levels.

1...202122232425262728293031323334...36