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

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

The Expert Advisor uses signals from the indicators: ATR, MACD.

Increasing the lot after a losing trade. Entry signals are based on the DeMarker indicator.

The simplest EA based on the WeightOscillator weighted oscillator.

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

Fractional Bands modifies the price changes using the fractal Brownian motion, which takes into account the fractal dimension.

Ilan1.4 - Expert Advisor for MetaTrader 5.

The Exp_SilverTrend_Signal_ReOpen trading system based on the signals of the SilverTrend_Signal indicator with scaling by the trend.

The Exp_BykovTrend_ReOpen trading system based on the signals of the BykovTrend indicator with scaling by the trend.

Oscillator, representing the weighted smoothed sum of four indicators: RSI, MFI, WPR and DeMarker.

The Expert Advisor trades daily breakouts. It places pending BuyStop and SellStop orders.

EMA_WMA - Expert Advisor for MetaTrader 5. Intersection of two iMA (MA).

The Exp_RSIOMA Expert Advisor based on the signals taken from the RSIOMA histogram.

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

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

Fractal Momentum.

The simplest EA based on the fractal Force_Index.

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

Pipsing EA. Indicators are not used.

The EA uses 15 IMA indicators and two iAC indicators.

The Expert Advisor is based on the signals of the iADX (Average Directional Movement Index) indicator.

The trading system based on crossing of the DI+ and DI- lines of the Fractal_ADX_Cloud indicator.

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

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

The PROphet Expert Advisor consists of two independent linear perceptrons.

The Expert Advisor based on intersection of two iMA.

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

1...848586878889909192939495969798...183