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


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

Sharp modified MA

RSI of super trend

MT5 (MQL5) Version of Position Size Calculator - Based on VP Money Management rules This version has been tested and works in both versions; in MT4 (MQL4) as well as in MT5 (MQL5). See the original MT4(MQL4) only version here: NOTE: I'm aware there appears to be an issue with the volume calculation and cross currency exchange rates. I'm working on fixing these issues.

RSI of smoother average

McClellan Oscillator - smoother with floating levels

McClellan Summation Index - smoother with floating levels

McClellan Oscillator - smoother with discontinued signal lines

McClellan Summation Index - smoother

McClellan Oscillator - using "smoother" for calculations

Smoother with self adjusting levels

SVE Stochastic RSI

Kirshenbaum bands

Donchian channel - extended

Smoother rainbow

Asymmetric bands oscillator - extended version

Asymmetric bands oscillator

Smoother momentum MACD with floating levels

Smoother momentum MACD

CCI - standard deviation based using Hull for prices pre-filtering

The indicator determines the index of the direction of the bar prices and the Gap/breaks in them. It is a logical continuation of the ms-Candle indicator.

Dual differentiator adaptive EMA

Dual differentiator

MACD with on-chart SR levels

Smoothed WPR with floating levels and on chart support / resistance levels

Smoothed WPR with floating levels

Smoothed Williams percent range

Long Short-Term Memory Neural Network - for time series analysis.

Trix oscillator with support / resistance lines on chart

Stochastic with support / resistance levels

RSI with on chart SR levels

CCI with on chart support and resistance levels

Corrected double smoothed Wilder's EMA (extended version)

Corrected double smoothed Wilder's EMA

TRIX using Wilder's double smoothed EMA - with an addition of floating levels

TRIX (using double smoothed Wilder's EMA)

Very handy Multiple Moving Averages for those who like to look at Price Action using several time periods...

Pretty simple. Seems Stupid. But yes, You need this...

RSI of average using double smoothed Wilder's EMA

RSI with double smoothed Wilders EMA

A very simple, efficient and non-obtrusive clock for your Chart. KISS compliant! :)