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_LSMA_Angle Expert Advisor is based on the LSMA_Angle histogram breakthrough of the overbought and oversold levels

The Exp_LinearRegSlope_V1 Expert Advisor enters the market when the LinearRegSlope_V1 indicator cloud changes its color.

The Exp_Laguerre_ADX Expert Advisor is based on the Laguerre_ADX indicator color change.

The Exp_LaguerreFilter Expert Advisor with the entry at the intersection of the fast and the slow lines of the LaguerreFilter indcator.

The Exp_XKRI_Histogram Expert Advisor is based on the XKRI_Histogram oscillator change of direction.

The Exp_XDerivative Expert Advisor is based on the XDerivative oscillator change of direction.

The Exp_TEMA_CUSTOM Expert Advisor is based on the TEMA_CUSTOM indicator change of direction.

The Exp_KPrmSt Expert Advisor with the entry at the intersection of the signal and the oscillator lines of the KPrmSt indicator.

The Exp_derivative Expert Advisor is based on the breakthrough of the zero level by the Derivative indicator.

The Exp_KalmanFilter Expert Advisor is based on the KalmanFilter indicator color change.

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

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.

1...202122232425262728293031323334...36