Download MetaTrader 5

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

MQL4 and MQL5 Source Code Library

You don't know where to start learning the MQL5 or MQL4 programming language? Various programs for your MetaTrader terminal are available here. Download and study published code examples, develop your own indicators and Expert Advisors. Publish your applications in the largest library of MQL5 and MQL4 codes, and they will be available in every MetaTrader terminal and MetaEditor.

Your code examples in MQL4 and MQL5 will be distributed worldwide, and thousands of traders will know about you!

MetaTrader 5

rating

Adds period separators to your window, at a time of your choice.

Accumulator of price movements. Defines the start and the end of a trend.

Regular expressions provide a formal language for quick and flexible processing of texts. Each regular expression is a pattern (mask), for which the regular expression engine tries to find matches in the source text. A pattern consists of one or more character literals, operators, or constructs.

Signal based on the indicator Gann Hilo.

Filter based on the Intraday time filter offered by the standard library.

The RVI Oscillator in the main chart window relative to the Moving Average indicator.

Stochastic Oscillator in the main chart window relative to the Moving Average indicator.

The MFI oscillator in the main chart window relative to the Moving Average indicator.

The DeMarker oscillator in the main chart window relative to the Moving Average indicator.

The WPR oscillator in the main chart window relative to the Moving Average indicator.

The RSI indicator in the main chart window relative to the Moving Average indicator.

The CCI indicator in the main chart window relative to the Moving Average indicator.

A library of classes for creating a user-friendly interface of your programs.

A price label added to the right of the price with adjustable parameters.

The indicator plots a price grid of levels rounded up to several digits.

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

NRTR is a trend indicator calculated using the CLOSE prices.

An example of using the MasterWindows library for creating a game trade panel.

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

A trading system based on the signals of the Stalin indicator.

MetaTrader 4

rating

Displaying ATR (Average True Range) value in pips or points with option for setting multiplier.

Buy and Sell arrows based on exit from overbought and oversold region in Stochastic Oscillator.

An indicator for drawing all important Pivot Points including: "Classic", "Camarilla", "Woodie", "Floor", "Fibonacci", "Fibonacci_Retracement".

The indicator shows computer time resolution. Normally it is about 15-16 ms. This is important, for example, to copy positions from other MetaTrader 4.

Draw Elliott Waves (5 waves) manually.

KNJ ZigZag with value at pivots (highs/lows).

It is a recovery system implemented in EA. But you can copy it to any other EAs.

Auto trading with the help of some indicators.

This EA will detect the buffers values of any indicator you want. Just type its name in the EA settings.

Indicator that shows candle strength.

Indicator that shows higher timeframe candle on current timeframe.

This is a graphical indicator based on slope-direction-trend indicator that has been published under several other forms.

This is a conversion factor. It is used to detect whether broker is 4 or 5 digits. As MetaTrader 4 calculates everything using point basis, coder can use this function to convert pips to point for machine reading.

Show full information: price, symbol, timeframe, date, time, spread, swap, stop out level, your name...

The RSI indicator has the ability to display a single window of RSI values of another timeframe defined by the user.

Trading Volume indicator shows the volume of buying and selling trades on the current bar or on average of specific number of last bars as you want . Both volumes are shown simultaneously with green and red colors for buying and selling trading volumes respectively.

This indicator helps to determine swing point highs and swing point lows.

Here I propose a simple password verification scheme which uses MT4's built-in security engine providing DES/ECB encryption and does not require code re-compilation for each new customer.

Tipu Renko Live is a modified version of Renko Charts that can be plotted on a normal time frame.

Simple indicator which displays High and Low 3 days ago.