Watch how to download trading robots for free
Find us on Twitter!
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 - 49

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

The trading system based on Rj_SlidingRangeRj_Digit_System indicator signals with the possibility to set a fixed position holding time.

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

Projection Bands indicator in the form of oscillators.

Projection Bands indicator.

Market status indicator with signal lines.

The trading system based on CandleStop_System indicator signals with the possibility to set a fixed position holding time.

The trading system based on AbsolutelyNoLagLwma_Range_Channel indicator signals with the possibility to set a fixed position holding time.

The trading system based on XPeriodCandleSystem indicator signals with the possibility to set a fixed position holding time.

The signal indicator based on Momentum, CCI, ATR, RSI and ADX.

MA Lag Reduce indicator is an SMA with the ability to set the delay elimination factor.

KDJ Averages oscillator defines when it is necessary to search for market entry conditions. Unlike KDJ, it is calculated using standard smoothing methods. In case of the default settings, its J line is slightly faster.

KDJ

KDJ oscillator defines when it is necessary to search for market entry conditions.

IdeaTrend is meant for checking a trend defining idea.

iATR (Average True Range, ATR) and iStdDev (Standard Deviation, StdDev) indicators are configured for crossing of the two iMAs (Moving Average, MA) plus for Buy and Sell separately.

The EA is based on two iMAs (Moving Average, MA) and iMomentum (Momentum) filter crossing.

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

The indicator paints candles going beyond the Rj_SlidingRangeRj_Digit channel.

The EA based on iCCI (Commodity Channel Index, CCI) indicator plus managing position volumes using martingale.

XPeriodCandleSystem indicator provides alerts, sends email and push notifications when the candles break through the indicator channel.

Chaikin_Volatility_Histogram indicator with the timeframe selection option available in the input parameters.

Ozymandias_System indicator provides alerts, sends email and push notifications when the candles break through the indicator channel.

Version of the AMA Histogram indicator.

The EA based on single iMA (Moving Average, MA) indicator signals.

Chaikin volatility indicator as a colored histogram.

The EA based on three iMA (Moving Average, MA) indicators.

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

CandleStop_System indicator with the timeframe selection option available in the input parameters.

The indicator paints candles going beyond the CandleStop channel.

The indicator is displayed using three horizontal lines of iAMA (Adaptive Moving Average, AMA) indicator from three different timeframes.

Ang_Zad indicator applies additional smoothing of total values allowing users to avoid excessive indicator signals noise caused by false crossings of its moving averages.

At the beginning of a new day, the EA places pending Buy Stop and Sell Stop orders by High and Low of the previous day.

Differential_Average_By_Sultonov_Signal indicator shows information on the current trend using the values of the Differential_Average_By_Sultonov indicator with a fixed timeframe.

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

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

Expert Advisor based on ZigZag indicator. Working with pending Buy Stop and Sell Stop orders.

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

The candle chart based on Waddah_Attar_Trend histograms calculated using the Open, High, Low and Close price series of the price chart.

Gann_Multi_Trend indicator defines a short, middle and long-term trends.

Working with pending Buy Limit and Sell Limit orders. Grid of pending orders.

A trading system using the Ang_Zad_C trend-following indicator with the possibility to set a strict trading time interval and change the volume of a forthcoming trade depending on the results of the previous trades.

1...424344454647484950515253545556...183