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

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

The Expert Advisor drawn on the basis of the TrendEnvelopes semaphore, signal indicator

The indicator draws support/resistance lines and the trend lines in the chart

The Expert Advisor drawn on the basis of the signals of the StepSto_v1 stochastic oscillator

The Expert Advisor moves Stop Loss of the open position along the border of the channel built using CandleStop indicator

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

The indicator realizes the trading strategy using the CCI

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

A semaphore, signal indicator with three variants of signals

A simple trend indicator of the NRTR type

The Exp_RD-TrendTrigger trading system is based on change of the trend direction displayed by the RD-TrendTrigger oscillator.

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

The Prev Day And Floating Pivot indicator.

The trend indicator which draws the boundaries of the channel

A very convenient indicator to confirm any signals of entry to the market

The class is designed for calculation the technical indicator On Balance Volume (On Balance Volume, OBV) using the algorithm of the ring buffer.

The 4-color АО indicator.

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.

1...112113114115116117118119120121122123124125126...147