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

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

Adds period separators to your window, at a time of your choice.

Accumulator of price movements. Defines the start and the end of a trend.

Regular expressions provide a formal language for quick and flexible processing of texts. Each regular expression is a pattern (mask), for which the regular expression engine tries to find matches in the source text. A pattern consists of one or more character literals, operators, or constructs.

Signal based on the indicator Gann Hilo.

Filter based on the Intraday time filter offered by the standard library.

The RVI Oscillator in the main chart window relative to the Moving Average indicator.

Stochastic Oscillator in the main chart window relative to the Moving Average indicator.

The MFI oscillator in the main chart window relative to the Moving Average indicator.

The DeMarker oscillator in the main chart window relative to the Moving Average indicator.

The WPR oscillator in the main chart window relative to the Moving Average indicator.

The RSI indicator in the main chart window relative to the Moving Average indicator.

The CCI indicator in the main chart window relative to the Moving Average indicator.

A library of classes for creating a user-friendly interface of your programs.

A price label added to the right of the price with adjustable parameters.

The indicator plots a price grid of levels rounded up to several digits.

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

NRTR is a trend indicator calculated using the CLOSE prices.

An example of using the MasterWindows library for creating a game trade panel.

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

A trading system based on the signals of the Stalin indicator.

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

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

A trading system based on the signals of the SilverTrend_Signal indicator.

A trading system based on the signals of the Sidus indicator.

An example of using the MasterWindows library for creating a trade panel.

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

A trading system based on the signals of the PriceChannel_Stop indicator.

A trading system based on the signals of the NonLagDot indicator.

A trading system based on the signals of the LeManSignal indicator.

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

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

A trading system based on the signals of the Karacatica indicator.

A trading system based on the signals of the Heiken_Ashi_Smoothed indicator.

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

The Price Channel indicator with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits, and a price grid with these rounded values.

The Price Channel indicator with the background filling inside the channel.

The Price Channel indicator calculates the highest high and lowest low for the price values of bars.

A trading system based on the signals of the Go indicator.

A trading system based on the signals of the FiboCandles indicator.

A trading system based on the signals of the Candles_Smoothed indicator.

1...808182838485868788899091929394...160