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

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

This indicator is an example of smoothing the Chaikin Oscillator indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the DeMarker indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the Force Index indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the Accumulation/Distribution indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the On Balance Volume indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the Moving Average indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the Moving Average indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the TriX indicator timeseries by filtering high-order harmonics.

This indicator is an example of smoothing the Momentum indicator timeseries by filtering high-order harmonics.

The Exp_i-KlPrice Expert Advisor is based on the i-KlPrice histogram breaking through the overbought and oversold levels.

The Exp_i-BandsPrice Expert Advisor is based on the i-BandsPrice histogram breaking through the overbought and oversold levels.

The i-BB-Width indicator with the timeframe selection option available in the input parameters.

The i-KlPrice indicator with the timeframe selection option available in the input parameters.

The i-BandsPrice indicator with the timeframe selection option available in the input parameters.

The Exp_DecEMA Expert Advisor is based on the reversal of the DecEMA moving average direction.

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

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

The Exp_ColorHMA Expert Advisor is based on the reversal of the ColorHMA moving average direction.

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

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

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

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

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

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

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

Class for displaying multi-line comments.

The WPR oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

The MFI oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

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

The Expert Advisor looks for a negative spread and trades using it.

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

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

The RVI oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

The Momentum oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

The CCI oscillator with the boundaries of the overbought/oversold areas in the form of Bollinger Bands.

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

Serialization and deserialization of JSON protocol. The code is ported from a high-speed С++ library.

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

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

The Flat-Trend indicator with the timeframe selection option available in the input parameters.

1...363738394041424344454647484950...104