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

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 MinusDi indicator processed through the Laguerre filter.

The PlusDi indicator processed through the Laguerre filter.

The Exp_ColorTSI-Oscillator EA is based on the signals generated by the ColorTSI-Oscillator oscillator.

A semaphore signal indicator determining the moments of a directional price change on several bars, the number of bars is specified in the indicator input parameters.

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

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

A non-normalized oscillator implemented in the form of a seven-color histogram.

The indicator shows fractals of different time periods on one chart.

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

The indicator shows the minimum price for the period specified in the input parameters of the indicator, taking into account the timeframe, in which the price was searched for.

The indicator shows the maximum price for the period specified in the input parameters of the indicator, taking into account the timeframe, in which the price was searched for.

The indicator shows the minimum price for the period fixed in the input parameters of the indicator.

The indicator shows the maximum price for the period specified in the input parameters of the indicator.

Three MFI (Money Flow Index) oscillators with three different timeframes on one chart.

The Exp_AFIRMA Expert Advisor is based on the signals of the AFIRMA (Autoregressive Finite Impulse Response Moving Average) indicator.

The iMirror indicator shows a prices mirrored upside down. When the mouse is on the indicator, its color changes to the chart color, while the chart is dimmed. When you click on the indicator, it remains in the foreground till another click.

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

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

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

The indicator draws the slow and fast ССI and colors bars for determining patterns and trends.

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

A trading system that uses the VolatilityPivot NRTR indicator.

The trend indicator made as NRTR (Nick Rypock Trailing Reverse).

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the values of the XD-RangeSwitch indicator.

A trading system that uses the XD-RangeSwitch semaphore, signal indicator.

Like period Separator each new day will gets its vertical line at starting. With several options how to display

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.

1...596061626364656667686970717273...109