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

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

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.

Adaptive Market Level shows the current reference level of the market price. The level is shifted only in case of the price trend movement.

ALGLIB math function library (v. 3.5.0) ported to MQL5.

Ask Bid Ticks is a high-precision, real-time tick data solution for microstructure analysis (a tick data collector). It works with local computer time.

This indicator calculates and shows daily highest and lowest prices, display them as two set of lines.

XprofuterOverlay shows the line of the price future movement.

XprofuterDD presents an attempt to predict the future price behavior.

MACD shifted for the trading range is used to determine a trend and overbought/oversold areas.

Standard Stochastic oscillator displayed as a cloud that can be located by setting the indicator timeframe value different from the chart one.

The simple indicator for displaying some relevant information about a position right in the chart window.

The Expert Advisor moves Stop Loss of the open position along the border of the channel built using ATR_Trailing.

The indicator of two unspecified time intervals.

1...818283848586878889909192939495...109