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

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 indicator to determine the trend and its directions.

The indicator gives Stop Loss value for open position on the basis of the XATR indicator.

Digital adaptive XXMA Moving Average represents subtype of Moving Averages with a digital flat-trend filter and is made to separate the angular direction of price movement (trend) from the horizontal (flat) for effective trend trading.

The Heikin Ashi indicator drawn in a separate subwindow with the ability to choose a period

The indicator calculates the Moving Average using a modified algorithm of the linearly weighed Moving Average.

The breakthrough system using the XMA_Ishimoku_Channel indicator.

The Keltner Channel indicator with the added flat area

The Price Channel indicator. It draws the line of high and low price values for the last N bars from high timeframe

The OsHMA oscillator is the indicator of the difference between two HMA (between two Hull Moving Averages).

Class implements neural network of radial basis functions (Radial Basis Function Network - RBFN)

The indicator displays the possible boundaries and direction of the bar looking forward to one bar

The system using the internal channel from High to Low

Average True Range indicator replacing the averaging algorithm.

The indicator to determine Stop Loss

Multiple indicator system using the RSI oscillators and stochastic with Bollinger Bands.

Trading system using the DSSBressert indicator

Export of all necessary instruments and time frames in one click with load and checking history

The Expert Advisor using the UltraFatl oscillator.

Slightly modified history load function from MetaQuotes.

Trading system using the AnchoredMomentum indicator

This stochastic considerably reduces the number of false signals by adjusting sensitivity

The Expert Advisor using the GG-RSI-CCI signal indicator.

Library of functions for working with strings: StringToArray, StringToPeriod and PeriodToString

The MACD histogram drawn using two signal lines in the price chart of the financial asset.

The indicator transfers the price data to the new coordinates system shifting price axis (axis of the ordinates).

The indicator of the arbitrage situation for spread consisting from two instruments

The improved Momentum indicator. The indicator is described by Rudy Stefenel in February'1998 issue in Stock&Commodities

The offered indicator informs you about the current trend. It is useful for entering the trading.

The averaging amount of the RSI different period oscillators

The averaging amount of the different period Moving Averages.

The indicator of (three) linear reversal on the main chart

The Expert Advisor using the UltraWPR indicator.

The variant of the UltraFatl indicator which can be placed by fixing timeframe of the indicator on a value different from the chart timeframe.

This indicator colors candlesticks in accordance with the color of the UltraFatl indicator histogram.

Trading system using the Extremum indicator

The Expert Advisor with the VortexIndicator indicator

Trading system using the ColorLinearRegSlope_V2 indicator.

The oscillator drawn on the basis of the simplified algorithm of the perceptron

One more variation on the channels theme.

This script attempts to demonstrate the power of using support vector machines in solving classification style problems. This version of the code has been written specifically to be used in conjunction with the demo version of the Support Vector Machine Learning Tool available for free from the MQL5 Market.

1...9899100101102103104105106107108109110111112...130