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

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

Stochastic of average (on chart)

Stochastic on chart

Rsi of average (rsioma) on chart version

On-chart RSI

This indicator enhance the functionality of the standard crosshair of MetaTrader adding the difference in Percentage and the time span in a human readable form (not in bars, but in Hours, minutes, days, etc)

Adaptive efficiency ratio EMA

Adaptive ATR Keltner channel

Adaptive ATR channel

Adaptive ATR

This is a utility for beginning indicator programmers, or others, that want to have a look at values provided by OnCalculate and a few other functions. The indicator shows: 1) The most recent value provided with the most recent OnCalculate call. 2) The previous value from the previous OnCalculate call. 3) The first value from the first time onCalculate executed.

EMA to SMA MACD - on chart

EMA to SMA MACD - extended


AMA smoothed RSI - floating levels

RSI of AMA - floating levels

Adaptive Moving Average (AMA) smoothed RSI

RSI of Adaptive Moving Average - AMA

Adaptive Moving Average - generalized version with floating levels

Adaptive Movinga Average - generalized version

Recursive Median Oscillator - with floating levels

Recursive Median Oscillator

AMA to KAMA crossover

Adaptive Moving Average - AMA - with filter, histogram version

Adaptive Moving Average - AMA - with filter

Adaptive Moving Average - AMA - as described by Vitali Apirine

Vervoort's crossover - extended

Vervoort's crossover - tape

Vervort's crossover - histogram version

Vervoort's crossover

Classic Donchian Channel indicator

Skyscraper_Fix indicator in candle form

WPR_Histogram_Vol indicator with additional averaging of the resulting histogram

XWPR_Histogram_Vol indicator with the timeframe selection option available in input parameters

The trading system based on the signals of the TimeZonePivotsOpenSystem indicator

Heiken Ashi Zone Trade indicator

Internal Strength indicator

Smoothed CCI indicator

Track Cyclical indicator

Trend Signal indicator