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

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

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.

The Expert Advisor based on two oscillators: iCCI (Commodity Channel Index, CCI), iStochastic (Stochastic Oscillator) and one trend iMA (Moving Average, MA) indicator.

Defining the channel width for a previous day.

"Previous Candle Breakdown" Expert Advisor.

The library and iCanvas class simplify writing programs using Canvas.

Access to OnTradeTransaction data anywhere within an application

A trend indicator of NRTR type with an additional middle line

XRSI_Candle_Vol_Zer indicator provides alerts, sends email and push notifications at the incoming trading signals

XCCI_Candle_Vol_Zer indicator provides alerts, sends email and push notifications at the incoming trading signals

JFatlCandle_HTF indicator with the timeframe selection option available in input parameters

Aroon Horn indicator

Aroon Filter indicator

Auto Envelope indicator

OBOS indicator

CCI OBOS Crossover indicator

DNC indicator

DNC Band Width indicator

DNC Percentage indicator

Effort Result indicator

Hurst Bands indicator

The indicator implements a breakout system using the XHullTrend_Digit indicator cloud

Hurst oscillator indicator

LBR Paint Bars indicator

Rahul Mohindar oscillator

Standard Deviations/Moving Average Ratio indicator

StdDev Cross indicator

Ehlers SuperSmoother indicator

Toby Crabel NR Pattern indicator

Two identical trading systems (for long and short deals) based on the ColorSchaffJCCXTrendCycle indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Two identical trading systems (for long and short deals) based on the ColorSchaffJJRSXTrendCycle indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

JFatlCandle indicator with two colored channels based on standard deviations from High and Low of the indicator candles

123456789...148