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

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.

To post a new code, please log in or register
latest|best

The indicator shows the areas, where fast MA and slow MA cross.

Indicator sends the alert when new bar is formed.

This indicator is constructing "bands" using 3 quantile values.

This version of Bollinger Bands has a choice of calculating the standard deviation as a sample or as an uncorrected deviation.

The indicator is finding out the minimum and maximum for the desired period and draws fibo zones in those bounds.

This is one more possible way of making MACD — as a candles, without the price and signal line.

This is an indicator that generates simulated data for any period - but in seconds

Class for working with AES-256 encryption.

Simple average spread per hour statistics output.

PricePosition indicator provides the position of price in the point of angle when the price rises above (BUY) or falls below the angle section line (SELL).

The script displays the monthly and weekly levels on the chart.

Byte-wise operation with structures and standard data types.

Script for drawing a price markup.

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

Trading system based on STLMCandle indicator signals.

Indicator based on two moving averages from the "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading" book by John Ehlers.

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

The Exp_RVIDiff Expert Advisor is based on change of direction of the RVIDiff indicator.

Trend indicator.

The Exp_i-SpectrAnalysis_Chaikin Expert Advisor is based on change of direction of the i-SpectrAnalysis_Chaikin indicator.

The Exp_BalanceOfPower_Histogram Expert Advisor is based on change of direction of the BalanceOfPower_Histogram indicator.

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

The RSI indicator implemented as candlesticks with indication of breaking the overbought and oversold areas.

The FloatPivot indicator with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits.

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

The vaMA moving average with the to change the averaging algorithm.

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

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

The CronexDeMarker_Signal indicator shows information on the current trend using the values of the CronexDeMarker indicator with a fixed timeframe.

The CronexChaikin_Signal indicator shows information on the current trend using the values of the CronexChaikin indicator with a fixed timeframe.

The BS Living Now indicator points at the market extremums and somewhat resembles the standard Fractals indicator.

A simple trend indicator with calculation of rise and fall in High and Low prices.

Semaphore signal indicator based on the algorithm of the Elliott_Wave_Oscillator indicator, which features alerts, sending emails and push-notifications to mobile devices.

Elegant and nimble comparison of 'double' values of the "price".

Indicator based on smoothed FATL and SATL digital filters and signal trend cloud between them.

The MACD histogram, based on the FATL and SATL digital filters with color indication of trends.

A grid of round price levels.

Three channels using the ATR indicator, based on one moving average, drawn as a colored cloud, with the display of the last values as price labels and the possibility to round the channel levels up to the required number of digits.

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

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

1...626364656667686970717273747576...148