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

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

RegressionPolynomial is a trend indicator calculating values of polynomial regression on each bar.

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

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

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

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

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

The Money Flow Index Indicator adapted for usage of all price types for calculations.

Indicator of bar sizes in points with due regard to spread and maximum one way movement only.

The indicator displays change of a current price regarding the price countBarsS/countBarsL bars ago.

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

The Exp_ForexOFFTrend Expert Advisor is based on the signals of the ForexOFFTrend trend indicator.

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

Optimal trading time indicator.

The trend indicator drawn in the form of the colored cloud.

Stochastic Oscillator which is able to identify flat conditions of the market.

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

A TSI oscillator based on the values of the DeMarker technical indicator, implemented with its own signal line in the form of a colored cloud.

The indicator of difference between high and low tails of a candle.

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

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

The trend indicator drawn in the form of the colored cloud.

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

Well-known indicator of Constantine Kopyrkin which generated a great number of NRTR indicator implementation. NRMA moving average (line) and trailing stops NRTR (circular-shaped dots) are implemented in this variant.

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

This is a moving where effect of retardation is lessened by means of damped cosinusoid defining coefficients' ratios in equation of the linearly weighted average (LWMA).

Special aspects: "holidays problem" is solved (problems arising due to absence of ticks).

The Mass Index is intended for detection of trend turns based on changes in the bandwidth between the highest and the lowest prices.

Chaikin's volatility indicator.

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

A colored cloud formed by two MFI oscillators with different timeframes.

A colored cloud formed by two Stochastics with different timeframes.

The Accumulative Swing Index indicator is applied for accumulative swing index construction.

The indicator exemplifies smoothing of price time series by means of filtration of harmonics of a greater order.

The indicator exemplifies smoothing of price time series of the RSI indicator by means of filtration of harmonics of a greater order.

The indicator exemplifies smoothing of price time series of the MFI indicator by means of filtration of harmonics of a greater order.

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

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

The SilverTrend_CrazyChart is a signal system similar to ASCTrend indicators.

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

The indicator exemplifies smoothing of price time series of the CCI indicator by means of filtration of harmonics of a greater order.

1...596061626364656667686970717273...115