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

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

An indicator of trading sessions displaying bodies and shadows of resulting session candlesticks.

The indicator implements a breakthrough system using the DarvasBoxes channel.

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

A semaphore arrow indicator that shows trend change time based on the ADX indicator.

This trading system uses the BlauErgodic oscillator.

The script allows to set transparency level of the client terminal window using Windows API.

The indicator implements a breakthrough system using Donchian_Channels.

The trade sessions indicator.

The indicator implements a breakthrough system using the Renko channel.

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

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

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

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

An indicator based on the crossover of two momentums with different periods, drawn in the form of a colored cloud.

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

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

A semaphore signal indicator forming signals at the breakthrough of the dynamic price channel.

A non-normalized oscillator implemented in the form of colored icons.

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

Indicator of price change range.

The BlauErgodic indicator (William Blau's Ergodic Oscillator) with the timeframe selection option available in input parameters.

Flat determining indicator.

The indicator changes the color of the bar to the color corresponding to the current trend, which is determined using the RVI indicator.

The indicator changes the bar color to the color of the current trend calculated based on the ADX technical indicator.

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

A version of the Fisher Transform indicator implemented in the form of a color histogram.

The MACD indicator is in the form of a colored cloud and the difference between the MACD and the signal line in the form of a color histogram.

The indicator for measuring market volatility.

Three Larry Williams' Percent Range indicators from three different timeframes displayed on the same chart.

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

Normalized oscillator that uses Fisher's transformation, drawn in the form of a color histogram.

Ergodic Oscillator from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram with a signal line implemented as a colored cloud.

A channel that uses fractals, implemented as a cloud.

A set of Fibo levels (pivot points) drawn on day candlesticks.

Two channels drawn based on moving averages of High and Low of price series.

Indicator MACD drawn in the form of a colored cloud.

A non-normalized oscillator implemented in the form of a color histogram.

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

Example of using IndicatorSetDouble() function. This is an indicator that turns upside down the maximum and minimum values ​​of the indicator window and values ​​of levels, on which the horizontal lines are placed.

Two Standard Deviation channels automatically positioned on the chart.

1...9596979899100101102103104105106107108109...141