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

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

This Expert Advisor is based on signals generated by the Simple Trading System semaphore arrow signal indicator.

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

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

The Leading_Signal indicator displays information on the trend and on signals based on the Leading indicator.

The HLR_Signal indicator displays information on the trend and on signals based on the HLR indicator.

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

The Ozymandias_Signal indicator displays information on the current trend and on signals based on the Ozymandias indicator.

A difference between the SATL and FATL digital trend filtering indicators that allows to estimate the speed and direction of the current trend.

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

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

The Exp_AFL_WinnerSign Expert Advisor is based on signals generated by the AFL_WinnerSign semaphore arrow signal indicator.

The AFL_Winner_HTF_Signal indicator shows the trend direction and the signal based on the AFL_WinnerSign indicator.

A trading system using the Modified_Optimum_Elliptic_Filter indicator.

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

A trend indicator based on two Moving Averages and Bollinger Bands made as a colored histogram.

A semaphore signal indicator that uses an algorithm based on crossovers of two moving averages.

A trading system using the ForexProfitBoost_2nb indicator.

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

The indicator displays the current spread and the time till closing the bar (candlestick) at the same time.

A semaphore signal indicator based in the idea from "325 golden strategies" collection.

The HighestLowestRange (HLR) indicator with the timeframe selection option available in the input parameters.

1...454647484950515253545556575859...104