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

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

Indicator of the oscillator type, which displays its values based on the DeMarker technical indicator.

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

The indicator for determining the time when the pending orders should be placed.

The Exp_Loco Expert Advisor based on signals of the Loco indicator.

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

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

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

Simple trend indicator.

The Exp_MACD-2 Expert Advisor based on signal entry taken from the MACD-2 indicator.

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

The indicator, that determines the moments of the lowest volatility.

The Exp_AnchoredMomentumCandle Expert Advisor based on signals of the AnchoredMomentumCandle indicator.

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

The BigBarSound indicator plays sound alerts when candlestick body size exceeds a certain value.

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

The Expert Advisor Exp_KalmanFilterCandle based on signals of the KalmanFilterCandle indicator.

The Expert Advisor Exp_MACDCandle based on signals of the MACDCandle indicator.

Trading system based on the signals of the Laguerre_ROC indicator.

The KalmanFilter indicator implemented as a sequence of candlesticks.

The MACD indicator implemented as a sequence of candlesticks.

The Exp_LeManTrend EA is based on the signals generated by the LeManTrend oscillator.

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

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

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

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

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

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

Three smoothed Average True Range of different time frames in a single window.

Trading system based on the signals of the i-GAP indicator.

Trading system based on the signals of the PA_Oscillator indicator.

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

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

The class restricts the EA trading by time. It has flexible configuration options, which allow to set a custom number of the time zones, and also to allow trading only on the specified week days.

Robot that trades the open sentiment of the market.

This simple class can be used to adjust, for example, trading ranges, or to enable / disable certain actions by time or day of the week.

VWAP is an intra-day calculation used primarily by algorithms and institutional traders to assess where a stock is trading relative to its volume weighted average for the day.

A simple way on how EA can link a manual order command from outside to use it in MetaTrader 5 Strategy Tester.

VWAP is an intra-day calculation used primarily by algorithms and institutional traders to assess where a stock is trading relative to its volume weighted average for the day.

This indicator helps determine the end and the beginning of trends based on the inclination of the matches.

A simple oscillator that shows the speed of the MACD indicator change implemented as a two-colored histogram.

1...515253545556575859606162636465...125