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

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

Added the filled array for overbought and oversold zones.

The T3 version of Velocity

Ron Black's swing line indicator for MetaTrader 5 version.

Jurik velocity ("smoother moment") with added choice of prices.

Averages indicator, which contains 18 types of averages available.

This is a volume weighted Wilder's DMI (the real ADX).

MACD with possibility to choose between tick volume and real volume.

You can choose if you wish to use a real volume or the ticks volume.

A variation of Hull moving average that allows speed adjusting of the HMA.

The widely known Keltner Chsnnel Oscillator in the new visual version .

Parabolic SAR that avoids some of the problems of existing PSAR-indicators and calculates the values correctly.

This is an auto-correlation version of Spearman rank indicator.

Keltner channel with some additional options

This is the Leader of the MACD as described by Giorgos E. Siligardos.

There are some additions in this indicator compared with MetaTrader 4-version.

The original STC with addition of the levels coloring, MTF and alerts.

A version that adds some averages not supported by built in standard types to the collection of averages in one single file.

It is a DT oscillator as described by Robert Miner with some additional features.

The upgraded version of Stochastic without repainting.

Indicator is already multi time frame version with alerts included.

Three T3s calculated: of high (upper line), close (middle line) and low (lower line).

MACD variation that uses Nonlag MA.

A simple indicator that shows the high and the low of desired time frame on a current chart.

A stochastic indicator with a twist: it is calculating a stochastic, and then a stochastic of that stochastic.

It is made more up-to-date and multi time frame option added.

A variation on the T3 theme that was made as a sort of envelopes using T3 for basic value.

Pivot Point indicator with an addition of 4 ways of calculating pivot points.

This version has 6 sub-types it is actually calculating.

The version of well known Woodies CCI with correct implementation of trend changing rules

BB MACD is a MACD indicator variation with an addition of Bollinger bands

T3 floating levels made as an oscillator

T3 with floating levels

Super pass-band filter as described by John Ehlers

Composite RSI

"Classical" MA with a twist: colors change depending on the angle of the slope.

MetaTrader 5 version of NonLag MA.

This is an improved Jurik Filter with the option to be applied to any indicator not only to prices.

The idea of this one is simple: it should "imitate" as much other moving averages as it can.

This version is showing the channel that needs to be broken if the trend is going to be changed.

The indicator displays in chart window the important data on current symbol.

1...262728293031323334353637383940...115