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

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

The channel applying the algorithm similar to the simplest zigzag.

Elliott_Wave_Oscillator_HTF_Signal shows a trend direction or a signal for performing a deal generated by Elliott_Wave_Oscillator_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

AML_StDev indicator with the timeframe selection option available in input parameters.

The indicator displays a price momentum for a symbol accompanied by Fibo retracement markup.

The indicator displays a symbol price momentum.

Semaphore signal indicator based on the Elliott_Wave_Oscillator indicator algorithm.

Trading system based on Elliott_Wave_Oscillator indicator signals.

Elliott_Wave_Oscillator indicator with the timeframe selection option available in input parameters.

Elliott Waves oscillator.

NRTR_extr_HTF_Signal shows a trend direction or a signal for performing a deal generated by NRTR_extr_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

NRTR_HTF_Signal shows a trend direction or a signal for performing a deal generated by NRTR_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

Semaphore signal indicator using NRTR algorithm and performing calculations by HIGH and LOW.

Semaphore signal indicator using NRTR algorithm and performing calculations by CLOSE.

NRTR_extr indicator with the timeframe selection option available in input parameters.

NRTR indicator with the timeframe selection option available in input parameters.

Trading system based on NRTR_extr indicator signals.

Trading system based on NRTR indicator signals.

NRTR indicator based on HIGH and LOW.

Trading system based on WPRSIsignal indicator signals.

Trading system based on SuperTrend indicator signals.

Trading system based on StepMA_NRTR indicator signals.

PChannel3Cloud indicator with the timeframe selection option available in input parameters.

PChannel3 indicator with the timeframe selection option available in input parameters.

PChannel indicator with the timeframe selection option available in the input parameters.

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.

1...505152535455565758596061626364...130