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

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 Exp_Fisher_org_v1 EA is based on the signals generated by the Fisher_org_v1 oscillator.

Extracting trend and filtering noises using the method of singular spectrum analysis. Adjusting the indicator parameters allows to control the smoothness of the extracted trend and noise filtering threshold.

The Volume_Weighted_MA indicator that fills the chart space with a colored background and displays the most recent value as a price label with the possibility to round the channel levels up to a required number of digits.

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

The Fisher Transform indicator. It displays the current movements, and the set levels often act as turning points.

Oscillator can be used on multiple symbols and multiple timeframes.

Made some changes compared to the originally Momentum Pinball

The classic Aroon Oscillator in the new visual form.

Adaptive Laguerre filter with the usual set of 20 types of prices.

Blau T3 ergodic candlestick oscillator with new display types and styles

ALMA with floating levels and additional filters.

Another version of the RSI using smoothed prices.

Middle-High-Low Average - a correlation of two averages.

The oscillator based on RSI with adjustable period and color scheme.

The indicator plots the candles based on 4 averages: averages of Open, Close, High, Low.

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.

1...293031323334353637383940414243...115