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

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

The XFisher_org_v1_Vol_Supr indicator with additional signals displayed as round dots, which indicate zero line breakout by the indicator line

The Expert Advisor waits for a gap at the bar opening.

The Gold Dust

The Float_Pivot_Digit indicator with the smoothing of input timeseries used in calculations. The timeseries smoothing parameters are determined by the indicator input variables

An alternative to Bollinger Bands® with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits

The Heiken_Ashi_Smoothed_VolatilityStep_Alerts indicator with the ability to change the indicator timeframe using input parameters

The Heiken_Ashi_Smoothed_VolatilityStep indicator with the ability to send alerts, emails and push notifications when the indicator breaks through the trigger level specified in the inputs.

An Expert Advisor based on the iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD) indicators

A simple indicator, which calculates rounded volatility of a financial asset using the High and Low prices of smoothed Heiken_Ashi candlesticks.

Two identical trading systems (for long and short deals) based on the ColorMETRO indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

The strategy is based on two indicators calculated on two timeframes: iAO (Awesome Oscillator, AO) on the D1 TF and iStochastic (Stochastic Oscillator, Stoh) on H1.

The Expert Advisor is based on the RSI Custom Smoothing indicator.

The Fib_SR indicator with two additional support and resistance zones.

The indicator shows possible resistance and support zones in the form of colored rectangles

The SpearmanRankCorrelation_Histogram indicator with the ability to send alerts, emails and push notifications when trading signals emerge

The indicator shows Buy and Sell signals of three indicators (iSAR, iMFI и iTEMA) located in nine timeframes, with full settings

The XFisher_org_v1_Vol indicator with the possibility to change the indicator timeframe using input parameters

The XFisher_org_v1_Vol oscillator with additional indication in the form of colored squares at the zero level, when entering the overbought and oversold zones in the trend direction

The XFisher_org_v1_Vol indicator with the possibility to change the indicator timeframe using input parameters

The XFisher_org_v1 oscillator implemented as a color histogram, using volumes

Three X2MA indicators from different timeframes in a single window

Two identical trading systems (for long and short deals) based on the VortexIndicator indicator signals that can be configured in different ways within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

An indicator of support and resistance channels.

The Super_Signals_Channel_V3 indicator with a colored filling of the channel and a middle line

A redrawing Super_Signals_Channel indicator

A redrawing channel, which looks into the future by a certain amount of bars specified in the appropriate input parameter

Two X2MA moving averages from different timeframes, drawn in a single window as a color cloud colored according to the trend direction

The iRSI (Relative Strength Index, RSI) indicator features new settings allowing users to manage the display of levels and main level color and width from an Expert Advisor. Smoothing has been added.

Trading is based on the analysis of yesterday's OHLC with the current day value.

RSI EA - trading based on overbought/oversold zones determined by the iRSI (Relative Strength Index, RSI) indicator.

The MFI indicator (Money Flow Index) applied over MACD (Moving Average Convergence/Divergence) provides a visual presentation of the current price divergence

Two identical trading systems (for long and short positions) based on the signals of the Slow-Stoch indicator, which can be configured in different ways within one Expert Advisor

Brief Description

The Normalized Volume indicator

MA Trend indicator

The MA Slope indicator

The Intraday Intensity Open Form indicator

ZMA

The ZMA indicator

The Ultimate Oscillator indicator

The ROC indicator with signal Moving Average

1...121314151617181920212223242526...176