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

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 Moving Average of a linear regression with two levels of bands like John Bollinger bands

The indicator of price movement relative to one selected time point

According to the author it is the best forecast indicator. The oracle which can be trusted more than analysts

The MA indicator with the ability of fine configuration

The Cynthia Case stochastic.

The simplest script to send instant PUSH-notifications to smartphone

Adaptive filter with the ability to calculate the Laguerre polynomial of any order

The indicator of the star sky on the black chart

The Exp_2pbIdealXOSMA Expert Advisor is drawn on the basis of the 2pbIdealXOSMA indicator.

Weighted Moving Average with a regulated lag using a curve of the normal (or Gauss) distribution as the function of weight coefficients

The VFractals indicator marks the level of the fractal formed on the bar with a volume larger than the average volume of the last 3 bars to fractal

Weighted Moving Average with a minimal lag using a damping cosine wave as the line of weight coefficients

The Exp_2MoHLC based on the signals taken from the 2MoHLC_ indicator

ZigZag with the ability to specify the "significant movement" in points

The 2pbIdealXOSMA indicator represents the MACD histogram based on the 2pbIdeal1MA and 2pbIdeal3MA indicators.

The Exp_2pbIdealMA indicator is based on the crossing of two Moving Averages. A signal to perform a deal is formed at bar closing if there is crossing of a fast 2pbIdeal1MA Moving Average with a slow 2pbIdeal3MA Moving Average

An alternative replacement for the standard RVI indicator which considers trades volume

When market activity decreases, then the Expert Advisor places two pending stop orders

Rise or fall in prices is often preceded by increased activity of trading. The True MFI indicator tries to use this factor.

The Expert Advisor analyses many Moving Averages from three timeframes

Two lines are channel averages created by High and Low price values for different periods displayed as clouds

The Expert Advisor used on such indicators as the Moving Average, the CCI, stochastic

The smoothed and slower version of the True MFI indicator.

The Expert Advisor with a very simple price analysis in two bars and with the increasing lot after a loss

The Exp_ColorBBCandles Expert Advisor based on the ColorBBCandles indicator.

The Balance of Power (BOP) indicator was described by Igor Livshin and measures the strength of the bulls vs bears by assessing the ability of each to push price to an extreme level.

The Exp_CoeffofLine_true Expert Advisor based on the CoeffofLine_true indicator. A signal to perform a deal is formed at bar closing, if the histogram breakthroughs its zero level

The Exp_CenterOfGravity Expert Advisor is based on the CenterOfGravity indicator. The signal is formed when a bar is closing if there is crossing of indicator and its signal line.

The Expert Advisor operates on the principle of the Moving Average. Simultaneously in both directions. Volume for BUY and SELL is calculated separately. Divide the volume received in accordance with the given "save percentage". It responds to the setting: "change the price"

The alternative indicator for trend definition based on the breakthrough bars and distance from extremums.

The MultiMaRsiSignal indicator displays the information about the active trends using the five MaRsi-Trigger indicators' value from different timeframes.

The trading system based on the signals taken from the MaRsi-Trigger trend indicator

The trading system based on the signals taken from the CMO oscillator

The Expert Advisor on the T3MA-ALARM indicator

A Moving Average with double smoothing

Bill William's Gator Oscillator which is drawn on the high and displayed on the lower timeframe.

Bill William's accelerator (Accelerator Oscillator) which is drawn on the high and displayed on the low timeframe.

Bill William's magic oscillator (Awesome oscillator) which is drawn on the high and displayed on the low timeframe.

A standard version of the OSMA indicator which can be placed in a fixed timeframe on a value different from the chart timeframe where the averaging algorithms can be changed.

The Trigger indicator has three states: rising, falling and flat

1...737475767778798081828384858687...104