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

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.

To post a new code, please log in or register

The smooth oscillator performed in the form of the color histogram

The indicator forecasts day's price range

A simple trend indicator.

The system of three signal indicators in one window

A typical Moving Average

Phoenix5 is Forex signal indicator which traditionally represents itself a set of pink and blue points

The oscillator that displays strengths of Buyers (Bulls) and Sellers (Bears) separately.

Trading system using the AsimmetricStochNR indicator.

The indicator to display time ranges

QQEA is Forex oscillator with an undistinguished name drawn on the basis of the Moving Averages and the RSI technical indicator.

R-squared is the linear regression indicator to calculate "reliability" of the current trend

The SlopeDirectionLine trend indicator with the ability to change the algorithms of averaging and triggering alerts, push notifications and sending e-mail messages.

The indicator draws the lines of day start and its high and low price values.

The semaphore arrow indicator of trend change

The trend indicator drawn on the basis of a Moving Average

The TTF classic indicator with T3 smoothed method and a signal line.

The trend indicator drawn in the form of the color cloud

The class for localization/multilingual support of text messages in user MQL5 programs

The advanced presentation of the Bollinger Bands indicator

The trade system using the ColorCoppock oscillator.

The Range indicator calculates the range expansion index and displays the range of price change in the current bar

The "Day of Week" function is designed to determine the number of required month according to data of the week and the day of the week inside this month

Two histograms to define the current market situation

The channel formed by two trend lines drawn at the high and low formed by the last two fractals

The indicator that gives signals in round value of price

The indicator draws possible support and resistance lines considering the fractals clusters

A smoother stochastic from the book by Joe Dinapoli "Trading With DiNapoli Levels"

The set of dynamic support and resistance levels using the ATR indicator and Fibo levels.

An elastic, volume weighed Moving Average

The script imitates the One Cancel Other function for orders. When one order is triggered, the others are deleted.

The Expert Advisor is realized on the ADX_Cross_Hull_Style and UltraXMA indicators.

Comparing the speed of a binary or a ternary search

The market volume indicator whose main purpose is to filter false signals which occur in the side movement of the market.

This system, based on Momentum indicator, assumes that very strong price movements are determinant. It consists in riding the appearing tsunamis, for instance, an important US Nonfarm Payrolls release. HawaiianTsunamiSurfer works well on AUDUSD, USDJPY and EURUSD.

The script for manual trade: when achieving the limit price the script sets stop order and logs out

The Expert Advisor drawn on the principle of the semaphore, signal MBKAsctrend3 indicator.

The channel indicator that draws support and resistance lines.

The Fast Stochastic indicator is one of modifications of a popular stochastic oscillator.

A semaphore, arrow indicator drawn on the basis of the ADX technical indicator

The breakthrough trading system based on the signals of the TMA indicator