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

How to Write an Expert Advisor or an Indicator

MQL5 Source Code Library for MetaTrader 5 - 63

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

A semaphore signal indicator based on crossovers of the main and the signal lines of the AdaptiveRVI oscillator.

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

The NRatio_HTF_Signal indicator shows the trend direction or the signal based on the NRatioSign indicator.

The AFL_Winner indicator with the timeframe selection option.

A fractal indicator with extended functionality.

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

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

The indicator draws candlesticks of a larger timeframe based on the 3LineBreak indicator values.

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

A semaphore signal indicator that uses divergence between two RSI oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two CCI oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two Momentum oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two Force Index oscillators based on extreme points of the last five bars.

A semaphore signal indicator that uses divergence between two WPR oscillators based on extreme points of the last five bars.

The AFL_Winner_Signal indicator displays information on the current trend and on signals based on the AFL_Winner indicator.

A semaphore signal indicator based on the AFL_Winner indicator.

The Exp_NRatioSign Expert Advisor is based on signals generated by the NRatioSign semaphore arrow signal indicator.

The Exp_TrendlessAG_Hist Expert Advisor is based on signals generated by TrendlessAG_Hist trend indicator.

This trading system uses the FatlSatlOsma non-normalized oscillator.

The HLR_HTF_Signal indicator shows the trend direction and signals based on the HLRSign indicator.

The Exp_HLRSign Expert Advisor is based on signals generated by the HLRSign semaphore arrow signal indicator.

The FATL-SATL_Balance indicator with the timeframe selection option available in the input parameters.

The Ozymandias_HTF_Signal indicator shows the trend direction and the signal based on the OzymandiasSign indicator.

The indicator shows the spread for each bar, the current spread and the minimum spread for a period.

A semaphore signal indicator showing moments when the average difference between the Hull Moving Average and its averaging changes direction.

A trend indicator in the form of a colored histogram which shows the average difference between the Hull Moving Average and its averaging.

The Exp_RangeExpansionIndex EA is based in the signals generated by the RangeExpansionIndex oscillator.

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

The indicator shows the trend direction or the signal based on the ForexProfitBoost_2nbSign indicator.

The Expert Advisor controls and limits the overall loss for the account, and the loss for every deal. It includes Trailing Stop for the account.

A class for a transparent button.

This class is designed for creating interactive buttons with various states on a price chart.

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

The ALF Winner indicator identifies a trend change by established turnover areas at -50/+50 levels.

The NRatio_Signal indicator displays information on the current trend using the NRatio indicator values with a fixed timeframe.

A semaphore signal indicator that uses an algorithm based on crossovers of oversold and overbought levels from the NRatio indicator.

The XCCX indicator with additional trend strength indication using colored dots based on the standard deviation algorithm.

A trendless indicator (based on the book "Trading with DiNapoli Levels") made as a colored histogram.

A semaphore signal indicator that uses breakthroughs of the zero line from the TrendlessAG oscillator to generate signals.

The indicator draws candlesticks of a larger timeframe as color filled rectangles using the data provided by the TrendlessAG indicator.

1...565758596061626364656667686970...115