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

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
latest|best

The ColorStochNR stochastic oscillator with noise reduction and the timeframe selection option available in input parameters.

The MACD ColorMACD histogram with the timeframe selection option available in input parameters.

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

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

Class for expanding the capabilities of MqlRates.

The indicator displays rapid reversals to the dynamic change of the direction in the form of a cloud.

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

The indicator displays rapid reversals to the dynamic change of the direction.

The indicator shows the entry point that follows the reversal bar.

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

Three Envelopes channels, based on one moving average with different deviation values, drawn as a cloud.

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

Two Envelopes channels, based on one moving average with different deviation values, drawn as a cloud.

The XEnvelopes with the timeframe selection option available in the input parameters.

The classic Envelopes indicator which uses the algorithms of universal averaging and fills the channel with a colored background.

The indicator helps to determine the beginning and end of trends on the basis of the slope of the "matches" lines and the color of their heads. Each match represents a line between the smoothed open price of a bar and the smoothed close price of the next one.

The CCI_On_StepChannel with the timeframe selection option available in the input parameters.

The classic CCI indicator which uses the typical price of the moving average as a data source. This version of the CCI indicator uses the average line of the Volatility Step Channel indicator.

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

The indicator plots the Step Channel based on volatility.

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

The indicator of smoothed Standard Deviation or by the terminology of the resulting indicator's author - the base volatility indicator.

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

Simple Max-Min channel with a slope.

The indicator helps to determine the beginning and end of trends on the basis of the slope of the "matches" lines and the color of their heads.

A semaphore signal indicator based on the price extremums for the period determined by the indicator input parameter.

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

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

The indicator marks the bars, the size of which exceeds the value specified in the settings. The body of the bar, the opening price and the closing price of the bar are taken into account.

The METRO_Stochastic_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the METRO_Stochastic_Sign indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction and generates alerts or sound notifications if there are signals for performing trades.

The METRO_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the METRO_Sign indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction and generates alerts or sound notifications if there are signals for performing trades.

The METRO_WPR_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the METRO_WPR_Sign indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction and generates alerts or sound notifications if there are signals for performing trades.

ForexLine indicator provides signals for trade: red line (sell signal) and blue line (buy signal).

The Expert Advisor sends trade requests using OrderSendAsync() function.

METRO_XRSX_HTF_Signal shows a trend direction or a signal for performing a deal generated by METRO_XRSX_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

Three Double Exponential Moving Average indicators from three different timeframes displayed on the same chart.

The Double Exponential Moving Average indicator with the timeframe selection option available in input parameters.

The indicator demonstrates the operation of obtaining the ticks using the "CopyTicks", and allows to compare the three modes of obtaining ticks.

The Adaptive Moving Average indicator with the timeframe selection option available in input parameters.

Three Adaptive Moving Average indicators from three different timeframes displayed on the same chart.

1...717273747576777879808182838485...148