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

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

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

The indicator displays expected time of position opening and closing.

The indicator draws bull and bear lines of a trend on the basis of iFractals indicator's data from the nearest extremum to the last fractal broken down.

Flight smiles.

The indicator displays the current Bid price magnified on the chart.

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

Volume indicator.

RegressionPolynomial is a trend indicator calculating values of polynomial regression on each bar.

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

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

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

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

1...585960616263646566676869707172...115