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

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

The indicator generates buy and sell signals and issues alerts in case of the Stochastic Oscillator indicator overbought or oversold levels crossing.

Using JMA adaptive moving average is the best way to smooth price ranges with a minimum time lag.

The simplest trend indicator.

Extrapolator is a result of a long-term research in the field of Timeseries Forecasting. This indicator forecasts future price behavior.

Slow adaptive trend line with ultralinear and JMA smoothings.

2pbIdeal1MA.mq5 and 2pbIdeal3MA.mq5 indicators are the moving averages with the smoothing algorithm developed by Neutron.

The indicator generates market entry signals and draws the line of Stop Loss orders positioning.

Reference Slow Trend Line (RSTL).

While creating Kairi (KRI) oscillator, deviation of a price from its simple moving average is calculated. The result is shown in percentage of the average.

Moving average indicator with the linear regression smoothing algorithm.

RSI oscillator with ultralinear and JMA smoothing algorithms.

Reference Fast Trend Line (RFTL).

The fan based on the five T3 moving averages for trend indication.

Moving average indicator based on parabolic approximation of price.

In this MACD histogram the JMA smoothing is used instead of the standard smoothing.

RSI indicator applied to MACD clearly shows the current price divergence.

PCCI (Perfect Commodity Channel Index) is a high frequency part of the price fluctuations normalized using the standard deviation.

This oscillator generates market entry and exit signals based on RSI and CCI indicators.

This indicator solves an issue of the use of digital filters in the client terminal.

The indicator shows the channel based on fractals.

Fast Adaptive Trend Line (FATL) is based on the low frequency digital filter.

The indicator shows the current trend, support and resistance levels.

Colored MACD histogram with the signal line that changes its color according to the trend direction.

Center of gravity is the oscillator developed by John Ehlers and presented in the "Stocks & Commodities" magazine (May, 2002).

The indicator generates market entry signals based on the ADX indicator.

Trend strength indicator based on the Laguerre adaptive filter.

A non-invasive candle time that can be positioned next to price or near a corner.

This trend indicator shows the current trend direction and moments for closing of the opened position.

The indicator plots the Fibonacci retracement levels for a user-defined number of bars.

The downward crossover of T3 moving average is a signal to open a long position, the upward crossover of T3 moving average is a signal to open short position.

T3 Moving Average is based on multiple exponential smoothing of price.

Mesa Adaptive Moving Average (MAMA) indicator.

Stochastic Oscillator equivalent with a minimum lag.

Arrows&Curves shows signals to open and close positions.

Fast Trend Line Momentum (FTLM) and Slow Trend Line Momentum SLTM) indicators show the rate of price change.

Crossover of overbought/oversold levels of Chande Momentum Oscillator is used as a signal to open positions.

Chande Momentum Oscillator (CMO) is a technical indicator that attempts to capture the Momentum.

CoeffofLine indicator shows the most likely future price direction (2-3 bars).

Keltner Channel is volatility-based envelopes set above and below an exponential moving average.

Donchian Channels is a volatility indicator based on the calculation of the current price range with using the recent highest and lowest prices.