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

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 AMA_SLOPE indicator with the timeframe selection option available in the input parameters.

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

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

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

The QQE_HTF_Signal indicator shows the trend direction or the signal based on the QQESign indicator.

The ForexOFFTrend_HTF_Signal indicator shows the trend direction or the signal based on the ForexOFFTrendSign indicator.

Semaphore arrow signal indicator based on the ForexOFFTrend oscillator.

Trading signals module based on Ozymandias.

Ozymandias with price band width settings and an additional feature for displaying on other timeframes.

The indicator draws candlesticks of a larger timeframe as color filled rectangles based on the QQECloudX indicator values.

Semaphore arrow signal indicator based on the QQE oscillator.

The QQE indicator implemented as a sequence of candlesticks.

Simplified version of Ozymandias with price band lines removed.

The ColorHMA indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

Semaphore signal indicator triggering when the JFATL average changes direction.

Semaphore signal indicator based on the i-Sadukey_v1 digital filter.

The Laguerre indicator implemented as a sequence of candlesticks.

The HullTrend_HTF_Signal indicator shows the trend direction or the signal based on the HullTrendSign indicator.

Trading system using the ADXCrossing indicator.

Semaphore signal indicator based on the XXRSX_StDev indicator values.

Semaphore signal indicator based on the XCCX_StDev indicator values.

The ColorJFatl indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

The XXRSX indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

The Triple Exponential Moving Average indicator implemented as a sequence of candlesticks.

The JJRSX indicator implemented as a sequence of candlesticks.

The JCCX indicator implemented as a sequence of candlesticks.

The OsMA indicator implemented as a sequence of candlesticks.

The Momentum indicator implemented as a sequence of candlesticks.

The CCI indicator implemented as a sequence of candlesticks.

The Expert Advisor allows you to determine which chart is active at the moment.

OHLC colour candles drawn in a separate window.

Modified Donchian Channels indicator with Fibonacci levels.

The indicator plots two lines that represent the difference between two currencies derived from three pairs/currencies.

This example shows the use of the mechanism of custom data frame transmission from agents during a brute force search aimed at finding MD5 hashes. The speed characteristics of the computing network and the progress are shown in real time. The program also demonstrates the principle of virtualization of nonlinear and non-numeric input parameters into a numeric counter.

The Shifted Moving Average allows you to shift moving average both vertically and horizontally.

A semaphore signal indicator based on crossovers of the main and the signal lines of the AdaptiveRVI oscillator.

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

The NRatio_HTF_Signal indicator shows the trend direction or the signal based on the NRatioSign indicator.

The AFL_Winner indicator with the timeframe selection option.

A fractal indicator with extended functionality.

1...555657585960616263646566676869...115