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

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

Fractal channel by Keltner.

An implementation of Bollinger Bands width indicator for MetaTrader 5.

Searching Nearest Bar - searching for the nearest bar.

The semi-automated Expert Advisor using a trend line (TrendLIne).

Only for hedge accounts. Opening two opposite positions on a new bar.

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

Fractal Graph Dimension Indicator.

Fractal Bollinger Bands.

Expert NEWS - MetaTrader 5 Expert Advisor. BuyStop and SellStop pending orders.

VR---SETKA---3 - MetaTrader 5 Expert Advisor. This is a continuation of VR---SETKA . The EA is based on the martingale principle. Grid. Martingale. Use only on hedge accounts.

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

JBrainTrend1Stop trend indicator features alerts, emails and push notifications.

The Exp_JBrainTrend1Stop_ReOpen trading system is based on the JBrainTrend1Stop indicator color change with adding to trend-following positions.

The Expert Advisor works comparing iCCI and iMACD indicators.

The Expert Advisor opens and closes at a certain time comparing two iMA indicators having different periods. A trade having a specified volume is opened at a specified symbol. Setting Stop Loss and Take Profit. Select position type: Buy or Sell.

The Exp_Bezier_ReOpen trading system is based on the Bezier indicator color change with adding to trend-following positions.

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

This is a modified Bollinger Bands® displaying the upper and lower borders of the price deviation from МА calculated considering the average volatility of the symbol according to ATR indicator.

The Expert Advisor is based on moving averages crossing.

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

This is a modified Envelopes indicator for measuring the price deviation. It displays the upper and lower borders of the price deviation from МА calculated considering the average volatility of the symbol according to ATR indicator.

Standard CCI oscillator implemented as a histogram rounding its values to the standard range.

The Exp_ColorJFatl_Digit_ReOpen trading system is based on the ColorJFatl_Digit indicator color change with adding to trend-following positions.

The Expert Advisor opens an initial position in the current candle's direction and increases its volume if profit in points increases a threshold fixed in the EA inputs.

The simplest Expert Advisor based on WPR.

Original Turtle Rule Trader Expert Advisor implements a trading system described in the book "The Original Turtle Trading Rules". The EA code implements the visual display of the three Donchian channels, money management, opening and adding trades and moving stop levels.

CandelsHighOpen Expert Advisor is based on the Candels High Open indicator trading signals module. The EA features trading market and pending orders, as well as trailing stop based on Parabolic SAR.

Module of trading signals of the "Candels High Open" custom indicator for analyzing High and Open of the last three bars.

Candels High Open indicator analyzes High and Open of the last three bars.

The Zigzag2_R_Color indicator with the timeframe selection option in the input parameters and display of values as fractal labels.

The simplest Expert Advisor based on MFI.

The simplest Expert Advisor based on RSI.

The Expert Advisor uses Fibo levels and iSAR indicator - Parabolic Stop and Reverse system. Trading is performed using BuyLimit and SellLimit orders.

Crossing of the two iMAs.

Waddah_Attar_Trend indicator features alerts, emails and push notifications.

The Expert Advisor increases the volume of an open position if profit in points from the last trade increases a threshold fixed in the EA inputs.

The Expert Advisor moves a stop loss to a predefined fixed distance from the current price.

Scalpel EA for MetaTrader 5

The Expert Advisor opens trades when the price approaches an integer cent, for example, 1.39, 1.40 or 1.41.

The Expert Advisor moves a position to a breakeven when a predefined profit is reached.

1...8687888990919293949596979899100...183