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

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.

latest|best

Inspired by Pirat's Expert Advisor submitted to the Automated Trading Championship 2011.

This Expert Advisor illustrates the usage of the IndicatorParameters() function to get the information about the number of input parameters, their type and values.

Corrected Average indicator by A.Uhl (also known as the "Optimal moving average").

A simple script for switching basic timeframes. It allows to change a chart period using hot keys.

Introducing the example of visualization of optimization results in real time (balance curve dynamics and an Expert Advisor statistical parameters).

The Expert Advisor is based on EMA_RSI_VA indicator.

Exponential Moving Average - RSI Volatility-Adjusted by Jose Silva.

Exponential Moving Average - Bollinger Bands ® Volatility Adjusted by Jose Silva.

Advaptive Exponential Moving Average - ATR Volatility Adjusted by Jose Silva.

Adaptive Exponentially Smoothed Moving Average, based on StdDev indicator.

Comparative study of sorting algorithms.

The indicator calculates perfect market entry signals, which can be used for neural network training.

Pearson correlation indicator shows the correlation between symbols.

The indicator shows the size of Highs and Lows and their values over the specified period.

Graphic control for color selection.

This class contains functions for working with colors. It has color conversion and other useful functions.

This is the improved version of Price Channel indicator. Two additional price levels, trade signals and Stop Loss/Take Profit levels were added.

The indicator plots the chart of the specified symbol in a separate window.

Multi-Williams Percent Range trend indicator.

Clouds formed by the masses of moving averages of different periods.

The script adds vertical lines on the chart at the news events.

Classic Pivot Point indicator paints pivot point and three resistance and support levels for all data points.

The indicator calculates the resistance and support lines and shows alerts when price is reached them.

The indicator creates a channel and provides the possibility to configure it with automatic tuning.

The indicator shows the use of the free Library for Custom Chart library for the automatic connection of the indicators to iCustomChart custom charts created on the basis of custom history files.

The Expert Advisor shows the use of the free LibCustomChart library for the automatic connection of the Expert Advisors and indicators to iCustomChart custom charts created on the basis of custom history files.

Simple script to randomize all colors of your chart. Just click on it and see results yourself!

This Indicator is used for calculating trend.

The library that contains various statistical functions including the calculation of an average value, variance, asymmetry, excess, covariation, correlation etc.

Enables the "Chart Objects Description" for non-programmers. For any open chart window.

The indicator draws (in a separate window) the Bollinger Bands relative to the moving average and projection of the price bars.

Moving Average Envelopes.

Trading signals module for MQL5 Wizard. SilverTrend_Signal indicator's color dot serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when ColorJFatl indicator changes its color, indicates the time for market entry.

The CFastFile eliminates the need for an intermediate writing of data to the physical file on disk. It provides the significant acceleration when working with data.

Trading signals module for MQL5 Wizard. WPRSIsignal indicator's color arrow serves as a market entry signal.

Trading signals module for MQL5 Wizard. The moment, when a candlestick formed by Candles_Smoothed changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. The moment, when PriceChannel_Stop indicator changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. The moment, when NonLagDot indicator changes its color, indicates the time for market entry.

Trading signals module for MQL5 Wizard. The moment, when the oscillator line formed by ColorLaguerre changes its color, indicates the time for market entry.

1...116117118119120121122123124125126127128129130...141