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

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

The XFisher_org_v1_Vol indicator with the possibility to change the indicator timeframe using input parameters

The XFisher_org_v1 oscillator implemented as a color histogram, using volumes

Three X2MA indicators from different timeframes in a single window

Two identical trading systems (for long and short deals) based on the VortexIndicator 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

An indicator of support and resistance channels.

The Super_Signals_Channel_V3 indicator with a colored filling of the channel and a middle line

A redrawing Super_Signals_Channel indicator

A redrawing channel, which looks into the future by a certain amount of bars specified in the appropriate input parameter

Two X2MA moving averages from different timeframes, drawn in a single window as a color cloud colored according to the trend direction

The iRSI (Relative Strength Index, RSI) indicator features new settings allowing users to manage the display of levels and main level color and width from an Expert Advisor. Smoothing has been added.

Trading is based on the analysis of yesterday's OHLC with the current day value.

RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator.

The MFI indicator (Money Flow Index) applied over MACD (Moving Average Convergence/Divergence) provides a visual presentation of the current price divergence

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

Brief Description

The Normalized Volume indicator

MA Trend indicator

The MA Slope indicator

The Intraday Intensity Open Form indicator


The ZMA indicator

The Ultimate Oscillator indicator

The ROC indicator with signal Moving Average

The OHLC Volume Histogram indicator

The OHLC Volume indicator

The TriMAgen indicator

The Fibo Average2 indicator


Indicator WSI

Indicator Wilder ATR

Indicator On screen MACD

Indicator Mean reversion

Indicator JSmooth MA

Indicator Fx Sniper's Ergodic CCI Trigger

Indicator BB ATR oscillator

The Average change indicator

Indicator Total Power

The Moving Average with step indicator

Pivot Oscillator

The "Average of 18 Moving Averages" indicator


The Trend Interruption Average indicator

Indicator Stalin_NRTR with the timeframe selection option in its input parameters