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

icon

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.

Submit your code

XColorFisher_org_v1_X20 indicator featuring background filling in overbought/oversold areas

ColorRSI_X20 indicator featuring background filling in overbought/oversold areas

Pendulum. Constant opening of positions.

The Expert Advisor applies iADX (Average Directional Movement Index, ADX) and iBands (Bollinger Bands, BB) indicators

Moving positions to breakeven

The Expert Advisor follows iSAR (Parabolic SAR) indicator.

Brief description

The Expert Advisor is based on iCCI (Commodity Channel Index, CCI) and iMA (Moving Average, MA) indicators.

Impulse detector. The indicator applies MovingAverages.mqh

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

Trading system based on iAC indicator (Acceleration/Deceleration, Accelerator/Decelerator Oscillator, AC)

The inverted chart of the current financial instrument, displaying Ask and Bid price levels in the form of colored bars in the additional window

Brief description

Another variation of the strategy based on the current candle being higher or lower than the previous one

SR-RateIndicator indicator with the timeframe selection option available in input parameters

SR-RateIndicator indicator provides alerts, sends email and push notifications when overbought/oversold levels are broken through by the histogram.

SpearmanRankCorrelation indicator implemented in the form of a color histogram

SpearmanRankCorrelation_Histogram indicator with the timeframe selection option available in input parameters

CCI Bar indicator

Have a look at the daily bar #1. Position trailing.

Specified time range candles indicator

Extent indicator

Smoothed Standard Deviation

Key Reversal indicator

SVSI indicator

TMACD Divergence indicator

Trend Score indicator

HLCrossSigForMFI is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading

HLCrossSigForMFI indicator with the timeframe selection option available in input parameters

Three SpearmanRankCorrelation indicators from different timeframes in a single window

Two SpearmanRankCorrelation indicators from different timeframes in a single window as a cloud colored according to a trend direction

Center of Gravity - extended version

Center of Gravity (as originally described by John Ehlers)

Trend trigger factor (averages pre-filtered)

Double smoothed stochastic Blau

Double smoothed stochastic of ratio

Double smoothed stochastic

Dynamic Trader Oscillator

Stochastic extended with the choices of the prices

Stochastic of average(s)

1...293031323334353637383940414243...183