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

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

An Expert Advisor based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). Averaging positions, in case of a loss. Improvement of the version 1.0

Indicator RVI_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

Indicator Stochastic_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

Indicator XFisher_org_v1 provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

The XFisher_org_v1_Candle indicator with the timeframe selection option available in the indicator input parameters

The XFisher_org_v2_Candle indicator with the timeframe selection option available in the indicator input parameters

A trading system based on the signals of indicator i-KlPrice_Vol

The Expert Advisor uses indicators iMA (Moving Avrage, MA) and iRSI (Relative Strength Index, RSI)

A trading system based on the signals of indicator i-KlPrice_Vol_Direct

The market maker robot for trading futures and swap cryptocurrency contracts

A trading system based on the signals of indicator FineTuningMACandle

Two identical trading systems (for long and short positions) based on the signals of indicator RJTX_Matches_Smoothed, which can be configured in different ways within one Expert Advisor

An indicator that shows buy and sell signals of three indicators (iSAR, iWPR, and iMA) on nine timeframes with full settings

LBS

Working with Stop pending orders. The EA uses indicator iATR (Average True Range, ATR)

Random entry. Random number generator entry.

Three standard deviation channels using indicator buffers based on the number of bars defined in the indicator inputs

Three standard deviation channels using indicator buffers based on the number of bars defined in the indicator inputs with the channels' background filling.

Twenty Fisher indicators with extra smoothing in a single window

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

EMA to SMA MACD

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

1...161718192021222324252627282930...176