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

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

It is the MQL5 version of ZeroLag MACD.

A channel based on standard deviation of close price.

This is a binary options simulated trading indicator on MetaTrader 5 client, novice traders can use to practice trading strategies, program interface have simplified Chinese and English.

This time-series library brings lightning-fast timeseries access to MQL5 for time-sensitive applications while implementing the familiar methods of MQL4, e.g. iBarShift.

Hedge The Hedge Trader EA.

The indicator displays the Renko bars on the MetaTrader 5 chart.

We look for N identical candles in a row. If the found candles bull - we buy, if bear - we sell.

The average spread for the "averaging period". You can set the background transparency and transparency of the text. CCanvas.

Advisor on the signals of the indicators Bollinger Bands and Moving Average.

High and Low. For levels, you can specify an offset. You can specify the interval (PERIOD_D1) on which to search for levels.

Volatility quality Stridsman.

Volatility Quality Stridsman (histo).

Smoother - standard deviations adaptive.

Plotting up to 256 averages on chart.

Heatmap of Averages.

Forex indicator for MetaTrader 5 with show double line of linear regression with position degrees and trend alerts.

Price Direction movement Step Up and Down Forex Indicator for MetaTrader 5 with arrow and alert.

This script is used to modify Stop Loss and Take Profit of position.

Laguerre RSI with Laguerre filter

Strategy: N bars up and one bar down. Trailing. Lot calculation based on the risk value as a percentage of free margin.

Intraday volatility breakthrough system. The Parabolic SAR indicator is used.

A trade strategy based on the RSI indicator. Checks if there is enough money before opening a position.

The ColorParabolic semaphore signal indicator featuring alerts, sending emails and push notifications.

A trend indicator SSL, marking trend change moments using colored icons, with the possibility to generate alerts, send emails and push-notifications.

A trading system using the SSL indicator.

The SSL indicator with the timeframe selection option available in input parameters

This indicator colors candlesticks in different colors depending on the strength and direction of the trend, using Keltner channels

The EA uses two Moving Averages, one MACD and one CCI. OnTradeTransaction is used to receive position opening time.

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

A trend indicator VTS using the Keltner channel.

A trend indicator VTS using Bollinger Bands.

Averaging of values (RSI) using MovingAverages.mqh. Two MA indicators.

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

An Expert Advisor based on the "RPoint" indicator. The chart layout in X-points reversal. A high-quality ZigZag based on HiLo.

A module of trading signals based on the Moving Average indicator signal module.

The "Nevalyashka" Expert Advisor.

The implementation of the MACD pattern "Trend continuation".

A multi-currency Expert Advisor that opens a market position at the user defined time.

The Expert Advisor trades based on the ADX Wilder and Ichimoku Kinko Hyo indicators. Lot is calculated based on risk percentage of margin.

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

12345678...99