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

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 simplest visual interpretation of a candlestick chart.

The MultiCurrency indicator allows you to concurrently analyze up to eight currency charts.

The CCI indicator smoothed using Tillson's algorithm.

The Expert Advisor based on the change in the 3rdGenXMA moving average direction.

Expert Advisor based on three moving averages and exit using Stop Loss or Take Profit. It sets up an entry with the trend.

The indicator shows the opening price of the senior time frame (e.g., 1-day time frame) and draws line indents to the opening price, thus forming a range.

The file selection graphical interface class.

The panel for the display of statistical parameters calculated based on the trade history.

Class for the calculation of the ENUM_STATISTICS enumeration parameters

The BidAskChannel indicator is designed to account for spread in the shadows of candles.

The Squize_MA indicator displays the intersection of two Moving Averages with different averaging periods. The chart also features conventional flat limits.

3rd Generation XMA is the 3rd generation moving average. This is an advanced version of the standard moving average indicator (МА) that follows a fairly simple procedure to reduce the time lag based on the increase in the moving average period.

The sine and tick indicator

The function that identifies extremums over a given period of history.

The Expert Advisor based on daily Pivot support.

The trading system operating based on the bounce off the support/resistance levels of the Pivot indicator

The GMMA Long indicator converted into a histogram for a better visualization.

Twenty lines of the Spearman's Rank Correlation indicator in one window

Smoothed ATR that uses color to show whether the trend strengthens or weakens.

Graphical control for pixel drawing.

The MultiLineMovingAverage indicator shows levels of six moving averages for different time frames in the active chart window.

The classic version of the RVI indicator (Relative Vigor Index) that can be arranged so that the time frame of the indicator is fixed at a value different from the chart time frame. The indicator is displayed as a cloud.

The New Highs-New Lows index is calculated as the difference between the number of currency pairs that reached new highs over a given period and the number of currency pairs that reached new lows over a given period.

Multicolor modification of Fast ZigZag.

Fast Trading Panel - the panel for fast trading

Expert Advisor that operates based on two МАs and CCI

The Expert Advisor based on the price channel

The indicator of the Micro, Middle and Main Trends

MultiRVISignal displays information on current trends using values of the four RVI indicators obtained from different time frames.

MultiMACDSignal displays information on current trends using values of the six MACD indicators obtained from different time frames.

MultiX2MASignal displays information on current trends using values of the four X2MA indicators obtained from different time frames.

MultiXRSXSignal displays information on current trends using values of the four XRSX indicators obtained from different time frames.

Expert Advisor that trades based on the AML indicator, at the intersection of the bar with the indicator line.

The easiest and fastest zigzag.

The CCIT3_Simple indicator modified.

PercentInfo gives information on the rise and drop in prices expressed as a percentage and in points as obtained from the three largest time frames of the currency chart. Simple and good information assistant.

The simple oscillator indicator displayed as colored cloud.

The CandleTrend indicator displays price movement directions from six different timeframes.

Modified CCIT3 indicator

The indicator shows possible price movement direction.

1...87888990919293949596979899100101...115