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

Trading system based on the signals of the Super_Trend indicator.

The Exp_ColorXCCXCandle Expert Advisor is based on the change of color of the ColorXCCXCandle indicator candles.

Trading system based on the signals of the MomentumCandleSign indicator.

A scalper that trades depending on the last deal on the open interest side.

Trading system based on the signals of the XMA_Range_Channel indicator.

Trading system based on the signals of the JMACandleSign indicator.

The Exp_DigitalF-T01 Expert Advisor enters the market when the DigitalF-T01 indicator cloud changes its color.

The Exp_CHOWithFlat Expert Advisor is based on the change of color of the CHOWithFlat indicator.

The Exp_TriXCandle Expert Advisor is based on the change of color of the TriXCandle indicator candles.

The Exp_FrAMACandle Expert Advisor is based on the FrAMACandle indicator candlestick color change.

The Exp_MA_Rounding_Candle Expert Advisor is based on the MA_Rounding_Candle indicator candlestick color change.

The Exp_ColorZerolagDeMarker Expert Advisor enters the market when the ColorZerolagDeMarker indicator cloud changes its color.

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

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.

1...202122232425262728293031323334...36