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

Top MQL4 and MQL5 source codes based on user ratings

Submit your code
latest | best

ALGLIB math function library (v. 3.5.0) ported to MQL5.


John Ehlers Cyclic Component Indicator.

The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs.

The library and iCanvas class simplify writing programs using Canvas.

ATR adaptive SMA (simple moving average)

The widely known Keltner Chsnnel Oscillator in the new visual version .

ZigZag based on the MACDCandle indicator candles.

The indicator shows the areas, where fast MA and slow MA cross.

NELODI Trading Terminal is a collection of Indicators and an Expert Advisor, which work together to provide a complete solution for manual Trading, primarily designed for Scalping.

Choppy market index

ZigZag indicator version with optimized calculation speed.

Constructor for creating histograms of statistical distributions of indicators, timeseries and their derivatives.

Parallel use of the MetaTrader 4 and MetaTrader 5 order systems.

A quick way to draw an arc-shaped channel in 4 mouse clicks.

Keltner channel with some additional options

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

Two colored filled rectangles with the display of channel levels. The rectangles are drawn between the values ​​of two channels on one bar of any timeframe of the GRFLeadingEdge indicator.

Super pass-band filter as described by John Ehlers

The class is designed for calculation of a technical indicator Average Directional Movement Index (Average Directional Movement Index, ADX) using the algorithm of the ring buffer.

The indicator calculates the inclination angle of the last segment of moving average and shows it in the chart together with the MA line and the line drawn from the last segment of moving average.

i-Regr is a MetaTrader 5 indicator. Regression Channel: Linear Regression Channel, Quadratic (Parabolic) Regression Channel, Cubic Regression Channel.

i-Regression Channel generates regression channel.

This library will allow you to tranfser realtime quotes from MetaTrader 5 to external server application.

Simple trend visualizer.

Trade signals based on crossover of main and signal lines of MACD indicator (CSignalMACD from MQL5 Standard Library) is considered. The code of the Expert Advisor based on this strategy can be generated automatically using the MQL5 Wizard.

A quick way to draw an arc-shaped channel using four mouse clicks.

Indicator StopLoss Calculator.

The MACD histogram, based on the FATL and SATL digital filters with color indication of trends.

Rsi(var) indicator with zero lag DEMA.

Class for displaying multi-line comments.

The Volume Rate of Change (VROC) is an indicator of the direction where the volume trend moves.

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

The library contains functions that returns description of runtime error codes and trade server return codes.

The VR Alert NT5 indicator warns the trader about the price reaching a specified level.

The Cronex T RSI BBSW indicator for MetaTrader 5.

This version can use one of the 4 basic averages types for smoothing.

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

The On Balance Volume Indicator (OBV) is a momentum technical indicator that relates volume to price change.

Ron Black's swing line indicator for MetaTrader 5 version.

Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library.