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


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.

Submit your code

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

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

Stripped T3 levels (T3 levels that can display the 3 phases of T3 calculation)

Volatility quality - zero line and ATR based

Volatility quality with ATR filter

Nonlinear Kalman filter deviation

The indicator paints candles whose body sizes exceed the indicator input parameter in points

JSatlCandle_HTF indicator with the timeframe selection option available in input parameters

XHullTrend_Digit indicator with the timeframe selection option available in input parameters

Volume Price Momentum Oscillator

The trading system defines flat/trend using iChaikin (Chaikin Oscillator, CHO) indicator.