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

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

The Expert Advisor uses the iBullsPower (Bulls Power) indicator.

Demonstration of 3D visualization.

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

Aroon oscillator, next version.

DMA (general version).

Schaff trend cycle - adjustable smoothing.

Quantile bands - new version.

Double stochastic - RSI floating levels.

Dsl (discontinued signal line) - stochastic for MetaTrader 5.

Dsl (discontinued signal lines) - RSX.

Dsl (discontinued signal lines) - MACD (MetaTrader 5)

Dsl (discontinued signal lines) - RSI.

NonLag smoothed inverse fisher transform of RSX (metatrader 5 version).

When run on the price chart, the script modifies stop loss or take profit of all open orders for the current instrument.

The Expert Advisor uses the iDeMarker (DeMarker, DeM) and iStochastic (Stochastic Oscillator) indicators. Three virtual levels to protect profit.

The Expert Advisor trades the High and Low breakouts of the previous day.

To generate signals, it uses the combined patterns of three indicators: DCOS (by DC2008), BullsPower and BearsPower.

Pipsing Expert Advisor. It works based on the iChaikin (Chaikin Oscillator) and iMA (Moving Average, MA) indicators.

The Expert Advisor searches for movements without rollbacks (analysis of ticks).

Alligator - Expert Advisor for MetaTrader 5. Trading based on indicators: iAlligator (Alligator), iFractals (Fractals). Martingale.

Straddle&Trail - Expert Advisor for MetaTrader 5.

MTC Neural network plus MACD - Expert Advisor for MetaTrader 5.

MacdPatternTraderAll - Expert Advisor for MetaTrader 5. Six (iMACD, MACD, Moving Average Convergence/Divergence) indicators and four (iMA, MA, Moving Average) indicators. Opens trades when the indicator's MACD crosses its signal line.

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

Expert Advisor inspired by Ilan 1.6. It uses the iCCI(CCI, Commodity Channel Index), iRSI(RSI, Relative Strength Index) indicators.

The simplest EA based on the fractal MFI.

The function returns the number of positions opened by an Expert Advisor for the day.

Trading based on two indicators: iAlligator (Alligator).

Works based on two indicators: iCCI (Commodity Channel Index, CCI) and iMACD (Moving Average Convergence/Divergence, MACD). OnTradeTransaction().

Trading based on the ZeroLag MACD custom indicator.

The Expert Advisor based on the iAlligator (Alligator), iMA (Moving Average) indicators.

The ColorXdinMA trend moving average, which features alerts, sending emails and push-notifications to mobile devices.

Oscillator, representing the weighted smoothed sum of four indicators: Fractal_RSI, Fractal_MFI, Fractal_WPR and Fractal_DeMarker.

Fractal Money Flow Index.

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

The Expert Advisor works in martingale mode based on the signals of iStochastic (Stochastic Oscillator).

Two fractal Keltner channels in the form of a cloud.

The WeightOscillator trend indicator, which features alerts, sending emails and push-notifications to mobile devices.

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

The Chart on Chart indicator displays a chart of other symbol on the current chart.

1...456789101112131415161718...104