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

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.

To post a new code, please log in or register

Double smoothed stochastic of ratio

Double smoothed stochastic

Dynamic Trader Oscillator

Stochastic extended with the choices of the prices

Stochastic of average(s)

Stochastic of filtered price

Rocket RSI

Range weighted smoothed EMA

Range weighted exponential moving average (EMA)

Range weighted average MACD

Range weighted average - average that uuse the current volatility for weighted average calculation

Filtered WPR (Williams Percent Range)

Filtered averages

Filtered price using self adjusting deviation for price filtering

Triangular moving average

Ehlers Fisher transform (as originally described in the book)

A channel is a trading range between support and resistance levels that a stock price oscillates in for a period of time. This indicator draws the resistance and support lines based on the peaks and valleys that are found within a defined period of time.

Perfect trend line


TRiX candles with Keltner channel

TRIX candles

RSI candles with Keltner channels

Volume weighted awesome oscillator

Corrected volume weighted moving average

Volume weighted moving average

Corrected generalized DEMA

Volume Wave indicator originally idealized by Richard D. Wyckoff.

Linear regression

Volume Profile + Range v6.0 (former TPO). Distribution of deals by price levels at a given time interval. Displayed as a histogram. The width of the histogram at the level means the number of transactions carried out on it. If a broker provides data on a real volume, the indicator is able to display distribution on it as well. Original codes is here but it doesnt work on new builts of MT5 I just compiled for new builts

CCI variation

Super trend - simple

Stochastic RVI - levels

Juice - EMA deviation - advanced

Swami Aroon

Swami stochastic

Trend direction and force - double smoothed EMA smoothed

Spearman rank correlation - with floating levels

Adaptive ATR channel

MinMax indicator