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

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

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 MQL5.com 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.

The Exp_BvsB Expert Advisor is based on the signals of the trend indicator BvsB.

The Exp_BnB Expert Advisor is based on the signals of the trend indicator BnB.

A semaphore signal indicator that uses crossing of a classical moving average with Kaufman's AMA indicator.

An indicator for trend following trading implemented in the form of a colored cloud.

A MetaTrader 5 indicator of short-term, medium-term and log-term extreme points created based on the book of Larry Williams "Long-term secrets to short-term trading".

The indicator draws candlesticks of a larger timeframe as color filled rectangles in accordance with the values of the SimpleBars indicator.

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

A semaphore signal indicator that uses the algorithm of crossing of two Moving Averages obtained from two consecutive averages.

A colored cloud using two consecutive averages of the price series.

The indicator displays the information about the time and account properties.

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

A normalized true range by Larry Williams.

1...87888990919293949596979899100101...141