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

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

This script displays several subcharts in a single chart window according to the number of currency pairs in Market Watch menu.

Envelopes drawn in ZigZag form. They can be drawn fixing Time Frame and then calculate input parameters

The Expert Advisor Exp_X2MA is drawn on the basis of X2MA universal Moving Average change.

The Three-Bar High/Low System indicator by Larry Williams

The oscillator with two lines based on Bollinger Bands, BearsPower and BullsPower

Simple scalper

The Expert Advisor analyses four Moving Averages: open, high, low, close. On its basis it calculates GO value and opens position according to its value

The Expert Advisor Exp_AdaptiveCyberCycle is built on the basis of the Adaptive Cyber Cycle indicator. The signal is formed when a bar is closing if there is crossing of indicator and its signal line.

The Expert Advisor based on signal entry taken from the AroonSignal signal indicator

The trading system based on the three Parabolics with three different Time Frames

The Expert Advisor based on the AMkA indicator

The Expert Advisor tries "to catch" rollbacks after a strong movement. Candlestick analyses is used

Good old Moving Average drawn using DRAW_SECTION style is a usual mean to draw ZigZag. Time Frame on which it is calculated can be set in input parameters. That is why such an unusual style of drawing is used.

1...798081828384858687888990919293...109