Watch how to download trading robots for free
Find us on Twitter!
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 - 66

icon

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

A signal indicator based on the Moving Average

Signals are generated by the iBands, Bollinger Bands indicator. When a signal is received, opposite positions are closed.

ChannelEA1 - an Expert Advisor working in a channel, using pending limit orders

An indicator of levels

The oscillator indicator based on Lyapunov stability theory, with the Hodrick-Prescott filter

Sine-Weighted Moving Average

An indicator of bands with a signal line

A trend indicator 'Magic Trend'

Larry Large Trade Index

Larry Commerical Proxy Index

Elastic Volume Weighted MA

The indicator of candlestick direction ratio

DMA

Dynamic Moving Average

The ratio of bullish to bearish candlesticks over the selected period

An oscillator indicator of probable reversals

BO

The Blast Off oscillator indicator

WVF

Williams' Vix Fix indicator

VA

The Velocity/Acceleration indicator.

The unsmoothed RSI indicator.

Trend_Percentage - the ratio of bulls and bears.

TDI

The Trend Detection Index.

POB

Point of Balance (POB).

DSP

Detrended Synthetic Price (DSP) Oscillator

The Awesome Oscillator (AO) indicator with configurable parameters.

APR

Average Period Range - an indicator of the average daily range.

An indicator of daily levels.

The Expert Advisor places a grid of pending Buy Stop and Sell Stop orders.

The Highest Lowest indicator searches for bars having High above the High of bars on the left and on the right, as well as bars having Low below the Low of bars on the left and on the right. Uses the DRAW_ARROW style.

A trend oscillator.

UI

Ulcer Index (UI) - the volatility decrease index.

John Carter TTM Squeeze - an indicator of trend zones.

A Trend Oscillator.

RTL

Trend indicator Recursive Trendline (RTL).

PVT

Price Volume Trend (PVT) is an indicator of price trend and volume, similar to the standard On Balance Volume (OBV) indicator.

The indicator shows the open price of a period.

An oscillator indicator showing a difference between MA and the price.

A volume indicator with different types of data representation.

A trend indicator: Smoothed High/Low Linear regression band.

A trend indicator: High/Low Linear regression band.

MACD based on the Linear regression MA.

1...596061626364656667686970717273...183