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

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

Smoothed Standard Deviation

Key Reversal indicator

SVSI indicator

TMACD Divergence indicator

Trend Score indicator

HLCrossSigForMFI is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading

HLCrossSigForMFI indicator with the timeframe selection option available in input parameters

Three SpearmanRankCorrelation indicators from different timeframes in a single window

Two SpearmanRankCorrelation indicators from different timeframes in a single window as a cloud colored according to a trend direction

Center of Gravity - extended version

Center of Gravity (as originally described by John Ehlers)

Trend trigger factor (averages pre-filtered)

Double smoothed stochastic Blau

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