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

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

The Price and Volume Trend indicator (Price and Volume Trend, PVT) with its signal line.

Digital filtration of the variation indicator.

Simple trend indictor performed in the NRTR form

The Parabolic SAR indicator with the ability to choose timeframe where it can be calculated.

The Expert Advisor based on the candlestick analysis where only four last bars are analyzed

The Expert Advisor with a basic trading system on the basis of the CCI indicator and several linear perceptrons regulating the work of the basic trading system.

The indicator that allows modifying color of the candles.

Classic exponential Moving Average with the ability to use real numbers as the averaging period.

The Alligator of Bill Williams drawn in the zigzag form. The indicator can be calculated and set in a fixed timeframe.

Larry Williams' the Percent Range indicator drawn in the zigzag form. The indicator can be calculated and set in a fixed timeframe.

It defines the boundaries of a flat channel based on bars closings.

Defines the boundaries of flat channel based on bars extremums

The trading system based on the signals taken from the BuySell semaphore, signal, trend indicator

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

The trading system based on the signals taken from the BullsBears semaphore signal trend indicator.

The indicator displays a series of internal, external and single directed closing and prompts exit points on short-term trend trading

The indicator "warning" about the appearance of the bars with an extended range and/or strong directed movements

USDX is an index which measures the dollar's value against a basket of six basic currencies

The trading system based on the signals taken from the BrakeParb semaphore, signal, trend indicator

The trading system based on the signals taken from the BrakeExp semaphore, signal, trend indicator

The trading system based on the signals taken from the BrakeMA semaphore, signal, trend indicator

The trading system based on the signals taken from the Arrows_Curves indicator

The Expert Advisor Exp_XMACD based on the signals received from the XMACD universal histogram.

The Trading system based on signal entry taken from the BinaryWave integral oscillator.

Intitial position is opened according to signals of the indicator.(there are six variants). If position becomes unprofitable, its volume is increased

The Pivot levels indicator, the Pivot sublevels and the Camarilla levels drawing the indicator buffers and the horizontal lines

The MultiJFatlSignal indicator shows the information about active trends using the JFatl four indicators value from different Time Frame

1...767778798081828384858687888990...106