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

A semaphore signal indicator based on crossovers of the main and the signal line of the AdaptiveCyberCycle oscillator.

A simple semaphore arrow signal indicator.

Trade system using the Elder Impulse System indicator.

The indicator draws candlesticks of a larger timeframe as color filled rectangles based on the FiboCandles indicator.

Trading system using the Ozymandias indicator.

A trend oscillator that uses the Hodrick-Prescott filter.

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

The indicator draws lines by ascending series of maximums and descending series of minimums.

This spread indicator shows minimum and maximum spread values for the last hour, 4 hours and day.

A modification of the popular Ozymandias indicator.

Fractals are generated using 3 previous bars (without redrawing because the current bar is not included in the calculation).

A trendless indicator (oscillator).

The Trinity-Impulse indicator with the timeframe selection option available in the input parameters.

Range Expansion Index (REI) is a relative oscillator with the timeframe selection option available in the input parameters.

Negative Volume Index (NVI) with the timeframe selection option available in the input parameters.

One more analog of Bollinger Bands and envelopes with a similar working procedure.

The internal bar indicator showing locations of temporary price consolidation.

The indicator shows trend and side (flat) price movements.

A simple trend indicator.

Ozymandias is a well known indicator which filters false price fluctuations.

The Exp_FisherCyberCycle expert advisor is based on the signals generated by the FisherCyberCycle oscillator.

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

A semaphore indicator of a directional trend.

Fundamental analysis using regulators.

The indicator of price levels with round numbers 00, 20, 50, 80.

This script finds DeMark pivot points, displays them on the chart and indicates their dimensions.

The popular Ilan 1.6 Dynamic belongs to the category of "averagers". Ilan uses advanced money management formulas and allows taking even losing positions to profit. Now Ilan 1.6 Dynamic is available as a source code for MetaTrader 5.

This indicator is MQL5 version of FractalZigZagNoRepaint, it displays swing highs and lows.

Smoothed RSI indicator and RSI of Moving Average.

CTimeControl class for include to your EA for easy setting and checking your own trading time.

Plots up/down buffer arrows in chart window.

Example of implementation of lines hash array with a string key.

Library of fast Fourier transformation functions (FFT).

Library for working with files using WinAPI without location limitations.

Synchronize ОС/EA/MT processes etc. Any self-made DLLs are not needed now.

Library for calculation of a margin required for opening a position in MetaТrader 5.

Checking a date for belonging to winter or summer time. The code was developed for news debugging.

Trading signals module based on Delta ZigZag indicator.

The module for tracking open positions based on Delta ZigZag for MQL5 Wizard.

Library for sending mail messages.

1...848586878889909192939495969798...141