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

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.

Submit your code
latest | best

An interpretation of Stieve Nisson's 'Three Line Break' strategy

The volatility meter with the indication in the form of a colored cloud

Version 1.2 - MQL5\Include\mql4compat.mqh

The indicator displays the time in different time zones on a chart


The indicator without averaging of the data array, that is a Buy/Sell decision is made in one move.

An indicator for short term trading, it can be used as a signal for closing a position or as the filter to enter one.

A complex trend indicator that uses ADX for calculations

A stochastic oscillator with an option for selecting a timeframe for calculations, which may differ from the timeframe on which the indicator is applied

A semaphore signal indicator that uses Moving Averages

The oscillator shows the rate of change of the AMA indicator

The RSI oscillator located directly on the chart

A stochastic oscillator located directly on the chart

The RSI oscillator with the boundaries of the overbought/oversold areas expressed by Bollinger Bands

The RSI indicator implemented as a sequence of candlesticks

A simple interpretation of the Bollinger Bands indicator in a separate window.

A modification of the MACD histogram.

A trailing stop module based on the WPR indicator with short and long Stop Loss

A typical MA using the linear regression algorithm

Quite an interesting alternative to Bollinger Bands

Shows the time left before a candlestick closes

A standard linear regression channel with support and resistance levels

The simplest moving-like indicator

A simple trend indicator in the form of a colored cloud

The indicator predicts the possible reversal points

The original indicator that shows buy and sell signals of three indicators on nine timeframes

The indicator paints the part of the bar depending on the direction of the candlestick

One of the variants of a simple moving average of close prices, which automatically adapts to the chart period and shows the average value of the price for each of the 21 ranges provided in MT5. Comparing the current price with the average price value for a particular trader selected period.

The MACD histogram drawn on the basis of the RSI smoothed oscillator

Extended version of the normalized volume indicator. Added tools that simplify the visual analysis of the indicator values

The NRTR trend indicator that sends alerts and Push messages

The trend indicator drawn in the form of the cloud

The indicator draws candlesticks when finding the CCI indicator in the overbought and oversold levels

The entropy indicator performed in the form of the MACD colored histogram.

Daily Fibo support and resistance levels in the leverage from -300% to +300%. There are 36 levels plus pivot in total

The indicator draws the boundaries of the calendar day for trading by Larry Williams

This indicator is based on the idea of that an unusual impact in price changes will be adjusted by an inverse reaction.

The MA will automatically recalculate the period if there are any changes in time frame.

Didi Index mql5 source code.

Trading strategy based on ASCTrend indicator as main signal, filtered by NRTR indicator and/or by TrendStrength indicator.

A variant of the SSL indicator performed in the form of the channel and represented as the colored cloud with the filling of alerts when the direction of the trend changes