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

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

DeMark's oscillator with an option of setting a fixed timeframe for the calculation of the indicator in the input parameters.

An example of how to use the IndicatorSetString() function. A simple indicator that shows how to create a label, e.g. "Overbought level" for each level.

A panel for opening and closing positions on several financial symbols in one click.

An example of the IndicatorSetInteger() function. A simple indicator that shows how to create a label, e.g. "Overbought level" for each horizontal level.

A simple indicator, a good one for MQL5 beginners

An indicator of pin bars, to be used as a built-in indicator in Expert Advisors. Shows levels specified by the pattern for the open price and stop-loss.

A trend indicator implemented in the form of NRTR. Timeframe is specified in the input parameters of the indicator.

A simple indicator that calculates only the volatility of a financial asset

A trend indicator implemented in the form of NRTR

The Change To Range Ratio indicator is used for closing short-term positions and/or for filtering entry points.

A semaphore signal indicator showing the MACD histogram calculated on the timeframe specified in the input parameters

A simple volatility meter which displays sizes of candlesticks in a separate subwindow

A fan of Stochastic indicators, the period of which is defined by one of four types of progressions

The trend indicator drawn in the form of a colored cloud

A fan of RSI indicators, the period of which is defined by one of the four progressions

A fan of MA indicators, the period of which is defined by one of four types of progressions

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

1...676869707172737475767778798081...109