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

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 SAR indicator calculated based on the iMA (Moving Average, MA) indicator values.

A trading system based on the ZigZag indicator.

Modified iCCI (Commodity Channel Index, CCI) - color highlighting of zones above the UP level and below the DOWN level.

The EasyAndFastGUI library allows creating graphical interfaces for custom MQL programs.

VR Orders History MT5 Lite - a script for downloading trading history in the CSV format.

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

The ColorDerivative indicator with the possibility to change the indicator timeframe in its input parameters.

The Internal Bar Strength indicator implemented in the form of a colored histogram.

The SVS_Trend indicator with the possibility to change the indicator timeframe in its input parameters.

The indicator marks candlesticks with colored arrows if candlesticks of a higher timeframe selected in input parameters are higher or lower than previous candlesticks.

Buy or Sell signals are generated when the price is above iMA (Miving Average, MA) with a very large period. As the number of open positions increases, the distance between trades (during which entry signals are skipped) also increases. The EA trades in the specified time interval.

The AroonOscillator indicator implemented in the form of a color histogram.

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

Two identical trading systems based on the change in the color of the XDidi_Index_Cloud indicator cloud for long and short trades, which can be configured in different ways in one Expert Advisor.

The Expert Advisor allows checking the potential profitability of the ZigZagLW Addition indicator.

An Expert Advisor based on the "Arrows&Curves" indicator.

Two AdaptiveRVICloud indicators from different timeframes on one chart.

Two "Didi Needles" indicators from different timeframes on one chart.

Martingale based Expert Advisor specially designed for small deposits.

The Expert Advisor uses three iMAs (Moving Average, MA), one iOsMA (Moving Average of Oscillator and one iRVI (Relative Vigor Index, RVI). Trailing stop is based on the High/Low of earlier bars.

The smoothed S-RoC indicator of the relative price increment by Fred Shutsman.

The indicator calculates and displays a linear relationship between two or more financial symbols.

Relative Momentum Index implemented as a color histogram with an indication of overbought and oversold zones.

Two identical trading systems based on the change in the color of XFatlXSatlCloud for long and short trades, which can be configured in different ways in one Expert Advisor.

A semaphore signal indicator using the XRSX oscillator, which is similar to BykovTrend with an NRTR line based on the values of the ATR indicator.

A semaphore signal indicator using the XCCX oscillator, which is similar to BykovTrend with an NRTR line based on the values of the ATR indicator.

A semaphore signal indicator, which is similar to BykovTrend with an NRTR line based on the values of the ATR indicator.

The indicator shows a text block with the values ​​of the user defined RVI oscillator period for each timeframe.

The BykovTrend semaphore signal indicator with an NRTR line based on the ATR indicator values.

The Support_and_Resistance indicator with the possibility to change the indicator timeframe in input parameters.

Two Boa_ZigZag indicators with different periods, which appear as arrows on one chart.

A module of trading signals based on the signal module of the iCCI (Commodity Channel Index, CCI) indicator.

The indicator displays trade opening signals based on the author's 'Reversal' trading system.

A trading system based on the 'EMAAngle' and 'Laguerre RSI with Laguerre filter' indicators.

A trading robot for performing arbitrage between EURGBP and its synthetic quotes (triangular arbitrage).

This version extends the Instantaneous Trend Line indicator with a sort of bands to make it easier to spot trend change and to filter out some false signals that can be produced if only the slope of the ITL indicator is takes for a signal.

Instantaneous Trend Line is one of the series of indicators created by John Ehlres.

This version of DeMarker indicator uses the "help" of smoothed Stochastic to emphasize the states of DeMarker and to help in easier trend assessment.

Balance of Power, introduced by Igor Livshin, attempts to measure the strength of buyers vs. sellers by assessing the ability of each to push price to an extreme level. Livshin published this indicator in the August 2001 issue of Stocks and Commodities Magazine. This version of indicator calculates the BOP exactly as it is described in the article where it was published.

T3 is very similar to EMA in calculating way and it makes it suitable for this way of calculation. As an extension of EMA levels it might prove to be useful but by all means do some experimenting in order to get the best results for specific symbol/timeframe combination.

1...686970717273747576777879808182...184