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

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.

To post a new code, please log in or register
latest|best

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.

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

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

The indicator draws candlesticks of a larger timeframe based on the 3LineBreak indicator values.

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

A semaphore signal indicator that uses divergence between two RSI oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two CCI oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two Momentum oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two Force Index oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two WPR oscillators based on extreme points of the last five bars.

The AFL_Winner_Signal indicator displays information on the current trend and on signals based on the AFL_Winner indicator.

A semaphore signal indicator based on the AFL_Winner indicator.

The Exp_NRatioSign Expert Advisor is based on signals generated by the NRatioSign semaphore arrow signal indicator.

The Exp_TrendlessAG_Hist Expert Advisor is based on signals generated by TrendlessAG_Hist trend indicator.

This trading system uses the FatlSatlOsma non-normalized oscillator.

The HLR_HTF_Signal indicator shows the trend direction and signals based on the HLRSign indicator.

The Exp_HLRSign Expert Advisor is based on signals generated by the HLRSign semaphore arrow signal indicator.

1...919293949596979899100101102103104105...151