Download MetaTrader 5

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 Code Library for MetaTrader 5 - 60

This is the largest free source code library for MetaTrader 5 platform programs. Here you can find ready-made Expert Advisors, technical indicators, scripts and libraries. Use the code library when learning MQL5 language and develop your own automated trading applications based on the provided codes.

You can freely download and test published codes, as well as launch them in MetaTrader 5. The library is also available directly from MetaTrader 5 platform and MetaEditor development environment.

latest|best

The trend indicator drawn in the form of the colored cloud.

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

Well-known indicator of Constantine Kopyrkin which generated a great number of NRTR indicator implementation. NRMA moving average (line) and trailing stops NRTR (circular-shaped dots) are implemented in this variant.

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

This is a moving where effect of retardation is lessened by means of damped cosinusoid defining coefficients' ratios in equation of the linearly weighted average (LWMA).

Special aspects: "holidays problem" is solved (problems arising due to absence of ticks).

The Mass Index is intended for detection of trend turns based on changes in the bandwidth between the highest and the lowest prices.

Chaikin's volatility indicator.

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

A colored cloud formed by two MFI oscillators with different timeframes.

A colored cloud formed by two Stochastics with different timeframes.

The Accumulative Swing Index indicator is applied for accumulative swing index construction.

The indicator exemplifies smoothing of price time series by means of filtration of harmonics of a greater order.

The indicator exemplifies smoothing of price time series of the RSI indicator by means of filtration of harmonics of a greater order.

The indicator exemplifies smoothing of price time series of the MFI indicator by means of filtration of harmonics of a greater order.

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

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

The SilverTrend_CrazyChart is a signal system similar to ASCTrend indicators.

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

The indicator exemplifies smoothing of price time series of the CCI indicator by means of filtration of harmonics of a greater order.

The MACD Indicator, where the price series is replaced by the series of values of the CCI technical indicator. It is drawn in the form of a colored cloud.

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

The MultiAMkASignal indicator shows information on active trends using the values of seven iAMkA indicators from different timeframes.

A semaphore signal indicator on the basis of Williams' Percent Range Oscillator. The indicator identifies fast trends.

A semaphore signal indicator on the basis of Williams' Percent Range Oscillator. The indicator identifies slow trends.

Correlation ratio.

The indicator calculates % of growth or drop towards CLOSE. It is written via use of object-oriented programming and can be easily integrated into any Expert Advisor or other indicator.

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

The MACD Indicator, in which the price series is replaced by the series of values of the iRSI technical indicator. It is drawn in the form of a colored cloud.

The MFI oscillator with the timeframe selection option available in input parameters.

The classic CCI with the colored signal levels. For the moments of time, when the CCI indicator is in oversold and overbought zones, there are change of the indicator color corresponding to the trend direction. The growing trend colors the indicator in lettuce green, the falling into the red one.

Unlike ParabolicSAR this indicator is continuous and more precise. Indicator's calculation is also very easy.

A colored cloud formed by two RSI oscillators with different timeframes.

A colored cloud formed by two moving averages with different timeframes.

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

Indicator Directional Trend Index from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram.

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

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

Larry Williams' Accumulation/Distribution indicator is an accumulated sum of "accumulative" and "distributive" price movements.

The i-AMMA indicator with the timeframe selection option available in input parameters.

1...535455565758596061626364656667...109