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

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 XD-RangeSwitch indicator with the timeframe selection option available in input parameters.

A set of support and resistance levels built on the last tops of GannZIGZAG_HTF with an option of fixing the timeframe, on which the zigzag is calculated.

Uses the idea of ​​the classical Donchian channel.

The FisherCGOscillator_Signal indicator shows information on the current trend using the values of the FisherCGOscillator indicator with a fixed timeframe.

The RSI oscillator with two signal lines.

Another interpretation of the ZigZag indicator.

A set of support and resistance levels built on the last tops of ZigZagOnParabolic_HTF with an option of fixing the timeframe, on which the zigzag is calculated.

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

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

An indicator of volatility/trend.

A set of support and resistance levels built on the last tops of GannZIGZAG.

A set of support and resistance levels built on the last tops of ZigZag_NK_MTF with an option of fixing the timeframe, on which the zigzag is calculated.

A set of support and resistance levels built on the last tops of ZigZag_NK.

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

Four semaphore signal indicators based on Larry Williams' Percent Range oscillators with different periods on one price chart.

Four semaphore signal indicators based on stochastic oscillators with different periods on one price chart.

Four semaphore signal indicators based RVI oscillators with different periods on one price chart.

Four semaphore signal indicators based RSI oscillators with different periods on one price chart.

The Exp_FisherCGOscillator EA is based on the signals generated by the FisherCGOscillator oscillator.

Trader's simple assistant. The MQL5 Spread indicator shows the current spread of the currency pair on a chart.

The indicator draws candlesticks of a larger timeframe as color filled rectangles using DRAW_FILLING buffers. Rectangles are color filled in accordance with the values of the FisherCGOscillator indicator.

The BlauCMI_Signal indicator shows information on the current trend using the values of the Candle Momentum Index indicator with a fixed timeframe.

ZigZag inscribed in Gann angles.

A channel drawn by intraday extrema.

This trading system uses the ColorJJRSX oscillator.

A semaphore signal indicator that analyzes the last five bars.

The indicator predicts daily price ranges and draws them as filled rectangles.

The indicator draws candlesticks of a larger timeframe as color filled rectangles. Rectangles are color filled in accordance with the values of the ColorStepXCCX indicator.

The indicator uses colored rectangles to paint the price range of the weekday selected in the indicator settings.

The indicator finds Doji candlesticks and highlights them on a chart using colored arrows.

The indicator displays the pivot level, support and resistance levels.

A semaphore signal indicator with a prediction.

The indicator draws support and resistance lines, which are defined by the maximum and minimum for the last N bars.

Uses the idea of ​​the classical moving average smoothing. The class can be used when you want to smooth out any array of type double without using the standard indicator.

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

The BlauSMStochastic_Signal indicator shows information on the current trend using the values of the BlauSMStochastic indicator with a fixed timeframe.

A trend indicator of three lines.

A channel of the middle range of price change.

Three indicators of the simplest linear combinations of differences between the fast and slow moving averages on the same chart.

A trend indicator of two lines, the color of which is determined by the price position relative to SMA and LSMA.

1...848586878889909192939495969798...133