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

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

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.

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

The Money Flow Index Indicator adapted for usage of all price types for calculations.

Indicator of bar sizes in points with due regard to spread and maximum one way movement only.

The indicator displays change of a current price regarding the price countBarsS/countBarsL bars ago.

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

The Exp_ForexOFFTrend Expert Advisor is based on the signals of the ForexOFFTrend trend indicator.

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

Optimal trading time indicator.

The trend indicator drawn in the form of the colored cloud.

Stochastic Oscillator which is able to identify flat conditions of the market.

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

A TSI oscillator based on the values of the DeMarker technical indicator, implemented with its own signal line in the form of a colored cloud.

The indicator of difference between high and low tails of a candle.

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

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

1...525354555657585960616263646566...109