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

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 ColorXMFI_Histogram indicator with the timeframe selection option available in the input parameters.

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

Lot calculation based on the risk value as a percentage of free margin.

Trading system based on the signals of the ThreeCandles indicator

The indicator calculates OHLC crossovers

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

The indicator receives trade signals from the MACD histogram.

The Exp_IBS_RSI_CCI_v4_X2 trend-following trading system is based on the signals of two IBS_RSI_CCI_v4 indicators.

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

An indicator of financial asset volatility using the OSMA oscillator.

The Exp_XOSignal_ReOpen trading system based on the signals of the XOSignal indicator with trend following scaling

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

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

The ThreeCandles indicator, which features alerts, sends emails and push notifications.

The tool allows drawing shapes in the chart.

The Exp_CGOscillator_X2 trend trading system based on the signals from two CGOscillator indicators.

The smoothed Simple Trend Detector with the color indication of overbought/oversold level breakouts and of the histogram direction.

The Exp_ttm-trend_ReOpen trading system based on the signals of the ttm-trend indicator with trend following scaling.

The smoothed DeMark oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

The TTM-Trend indicator with the timeframe selection option available in the input parameters.

A rounded MACD histogram presented in the price chart points.

The smoothed Commodity Channel Index oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction

Smoothed Ichimoku oscillator

Crossing of the two iMAs. Lot calculation based on the risk value as a percentage of margin.

The Exp_ChandelExitSign_ReOpen trading system based on the signals of the ChandelExitSign indicator with trend following scaling.

The smoothed Money Flow Index oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

A semaphore signal indicator. Its code does not contain averaging algorithms.

The smoothed Larry Williams' Percent Range oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

The smoothed Relative Strength Index oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction

The XССXCandleKeltner indicator with the breakout indication option

The XRSXCandleKeltner indicator with the breakout indication option

The CDir class allows getting information about files and folders outside the MQL5 sandbox similar to the MS-DOS Dir command. Call of system DLL is used, therefore you should allow their use.

Returns position profit in points based on the trading history.

An example of determining the moment when a pending order has triggered.

Keltner Channel built relative to the average value of the XCCX oscillator as a sequence of candlesticks

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

The price chart speed expressed in points, with the author markup of significant price change levels.

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

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

Keltner Channel built relative to the average value of the XRSX oscillator as a sequence of candlesticks

1234567891011121314...104