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


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

Range Action Verification Index - extended

RSI adaptive EMA - floating levels

RSI adaptive EMA ribbon

MACD of RSI adaptive EMA

RSI adaptive EMA

Stochastic of adaptive lookback average - with normalized zones

TSI of adaptive lookback average - with normalized zones

Stochastic of adaptive lookback average

RSI of adaptive lookback average

Phase change index - JMA

Adaptive lookback stochastic

Alb average

Stochastic - with normalized zones

Rsi of average - with normalized zones

Indicator to display existent and emerging harmonic chart patterns.

ATR-based ZigZag implementation.

This script helps to save the objects into a file and show the objects on a new chart.

Classic version (on Chart) of Didi Needles indicator, now with a filtering threshold based on MA threshold differences.

Draw your horizontal and trendlines and be notified when price crosses them

DSL Balance of market power JMA

Gann high/low activator JMA

Trading the trend

Corrected RSI

Corrected JMA

Dual Ulcer index

Trix with LR signal

Corrected T3

STD Trend Envelopes of Averages - multi time frame

QQE of Velocity - multi time frame

ATR adaprive EMA - multi time frame

Trading the trend - histogram

PGO TM smoothed

MFI smoothed

Choppy market index - smoothed

Anchored Momentum indicator by Rudy Stefenel was first proposed in the "Technical analysis of Stocks and Commodities" magazine in 1998.

Advanced Fractal On MA signal indicator searches for fractals of the moving average line. The indicator uses two moving averages for searching upper and lower fractals.

Increasing a position volume. Entry signal by iDeMarker (DeMarker, DeM) indicator. Regular trailing and trailing by equity.

Trading is based on iAlligator (Alligator) and iRSI (Relative Strength Index, RSI) indicators. Alligator acts as the main indicator, while RSI is used as a trend filter.

The trading system based on the XWAMI indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

The XWAMI indicator with the timeframe selection option available in the input parameters.