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

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 MACD Indicator, in which the price series is replaced by the series of values of the MFI technical indicator.

The Exp_JBrainTrend1Stop EA is based on the signals of the NRTR indicator JBrainTrend1Stop.

This trading system uses BlauHLM oscillator.

The Exp_XPVT is based on the signals generated by the XPVT oscillator.

The Exp_CronexRSI is based on the signals generated by the CronexRSI oscillator.

The Exp_CronexMFI is based on the signals generated by the CronexMFI oscillator.

The robot opens two positions, profits of which overlap each other, and waits for a profit.

System of receiving information concerning opened positions' current state, account, etc., as well as automatic notification about operations via ICQ.

The Exp_ExchangePrice EA is based on the signals of the ExchangePrice trend indicator.

The Exp_MaByMa EA is based on the signals of the MaByMa trend indicator.

The Exp_TSI_DeMarker EA is based on the signals of the TSI_DeMarker trend indicator.

The Exp_SlopeDirectionLine EA is based on the signals of the SlopeDirectionLine trend indicator.

The Exp_Karpenko EA is based on the signals generated by Karpenko oscillator.

The Exp_TSI_WPR EA is based on the signals generated by the TSI_WPR oscillator.

One-click closing of all positions, or closing of all positions after getting the stated profit as a percentage of the deposit.

This trading system uses the BlauSMStochastic oscillator.

Fine Clock. Displayed on all charts.

A very simple EA based on the crossover of two Moving Average.

The Math is Same the original Value Chart, but this indicator display only value of close value chart and in a line indicator.

The indicator shows information about size of candle in pips and size of the shadow too.

Setting multiple charts at one click.

An example of posting a message containing an image on the website using the WebRequest() function. This is an example of how to authorize using a login and a password, and to insert an image into a text message.

The latest version of the TrendSignal indicator. It doesn't repaints and also works well with a template.

TrendSignal Indicator for MetaTrader 5.

Script to apply my template to all charts opened.

Simple script for apply template and/or timeframe to all charts opened.

Color version of the Linear Regression indicator.

The indicator uses the least squares method for the construction of the "most suitable" straight line through a series of points of price values​​.

This indicator is a modification of classical Awesome Oscillator indicator.

This indicator measures the (smoothed) distance in pips between the close and an exponential moving average.

This indicator measures the rate of change of AwesomeModPips indicator.

Tick Volume Indicator from the book "Momentum, Direction and Divergence" by William Blau, implemented in the form of a color histogram.

Moving average of ranges. The calculation is based on the price high and low for a period.

A Moving Average that includes price series processing by Gaussian filter.

The SimpleBars_Signal indicator shows information on the current trend using the values of the SimpleBars indicator with a fixed timeframe.

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

The Exp_SimpleBars Expert Advisor is based on the signals of the trend indicator SimpleBars.

Another zigzag version with a simple code that correctly determines peaks.

The Exp_KaufWMAcross trading system is based on change of the trend direction displayed by the KaufWMAcross indicator.

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