Watch how to download trading robots for free
Find us on Telegram!
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 - 155

icon

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

The trend indicator. The indicator line of level 50 can serve as the point to determine the trend

The indicator to trail the stop levels

The indicator for drawing possible Support/Resistance lines on fractals

The trading system based on the indicator by Vladimir Korykin

The trading system based on change of the trend direction and force of the trend displayed by the ColorXADX indicator.

The Expert Advisor based on the Breakout Bars Trend v2 indicator. In dependence of settings the entry is performed as in the trend reversal, so after missing the set number of false signals.

The class is designed for calculation the technical indicator Momentum (Momentum) using the algorithm of the ring buffer.

The typical semaphore trend indicator.

The indicator of fractals price levels

The oscillator using T3 averaging.

This is the classical trading system which consists in buying when MACD crosses above the waterline line and selling when crosses below it. This EA works along with a monetary management system which has a positive mathematical expectation.

The class is designed for calculation of a technical indicator Money Flow Index (Money Flow Index, MFI) using the algorithm of the ring buffer.

The class is designed for calculation of the technical indicator Adaptive Moving Average (Adaptive Moving Average, AMA) using the algorithm of the ring buffer.

The oscillator using T3 averaging from the Technical Analysis of Stocks and Commodities (Dec. 2004).

The Woodies CCI Paterns indicator

The class is designed for calculation the technical indicator Efficiency Ratio (Efficiency Ratio, ER)using the algorithm of the ring buffer.

The indicator of the famous trader Korykin

Variation on the non-trivial linear combination of stochastic oscillators

The trading system based on change of the trend direction displayed by the EF_distance indicator and force of the trend determined by the Flat-Trend indicator.

The class is designed for calculation of a technical indicator Relative Strength Index (Relative Strength Index, RSI) using the algorithm of the ring buffer.

The Moving Average that represents itself a linear combination of the EMA smoothing series by the Exponential Moving Average (EMA).

The X-bars Fractals indicator allows setting the number of bars on the left and the right from fractal. It is good as for local, so for global extremums

The CSV file was written to write economic news but there was a problem that the Terminal does not distinguish lines, exactly their number when working with the CSV file. That is why I decided to share my solution of this problem.

The class is the simplified version of the CArrayRing class: it has a predetermined fixed size of 256 elements, it is faster, and allows to organize the mini time series, indicator minibuffers, short sized buffers to store intermediate stream data inside the Expert Advisor or indicator.

The second (edited and added) version of the alternative indicator for trend definition based on the breakthrough bars and distance from extremums. The breakthrough levels and size of the previous trends are added.

The Exp_VininI_Trend_LRMA trading system is based on changes of the trend direction displayed by the VininI_Trend_LRMA indicator.

The indicator of the candlesticks combinations (Japanese candlesticks)

The class is designed for calculation the technical indicator Stochastic Oscillator (Stochastic Oscillator) using the algorithm of the ring buffer.

The class is designed for calculation of the technical indicator Moving Average of Oscillator (Moving Average of Oscillator, OsMA) using the algorithm of the ring buffer.

The Exp_VininI_Trend trading system is based on change of the trend direction displayed by the VininI_Trend indicator.

The indicator that fixes three states of the market.

This indicator is the conversion of famous Igorad's indicator namely PriceChannel_Signal_v1 with re-enter feature.

The class is designed for calculation of the technical indicator Moving Average Convergence/Divergence (Moving Average Convergence/Divergence, MACD) using the algorithm of the ring buffer.

Another variation on Moving Averages...

The breakthrough system with the CorrectedAverage Moving Average.

A trend indicator which determines its values based on the signals taken from the LRMA Moving Average and a group of its signal lines whose periods change in the arithmetic progression.

A trend indicator which determines its values based on the signals with the group of Moving Averages whose periods change in the arithmetic progression.

The script calculates Pivot Point on all the symbols from the market watch and displays the results in html-file.

A trend indicator which determines its values based on the signals taken from the Williams' Percent Range indicator and group of its signal lines whose periods change in the arithmetic progression.

The Dynamic Support/Resistance indicator for MetaTrader

1...148149150151152153154155156157158159160161162...183