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

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

Volatility quality Stridsman.

Volatility Quality Stridsman (histo).

Smoother - standard deviations adaptive.

Plotting up to 256 averages on chart.

Heatmap of Averages.

Forex indicator for MetaTrader 5 with show double line of linear regression with position degrees and trend alerts.

Price Direction movement Step Up and Down Forex Indicator for MetaTrader 5 with arrow and alert.

This script is used to modify Stop Loss and Take Profit of position.

Laguerre RSI with Laguerre filter

Strategy: N bars up and one bar down. Trailing. Lot calculation based on the risk value as a percentage of free margin.

Intraday volatility breakthrough system. The Parabolic SAR indicator is used.

A trade strategy based on the RSI indicator. Checks if there is enough money before opening a position.

The ColorParabolic semaphore signal indicator featuring alerts, sending emails and push notifications.

A trend indicator SSL, marking trend change moments using colored icons, with the possibility to generate alerts, send emails and push-notifications.

A trading system using the SSL indicator.

The SSL indicator with the timeframe selection option available in input parameters

This indicator colors candlesticks in different colors depending on the strength and direction of the trend, using Keltner channels

The EA uses two Moving Averages, one MACD and one CCI. OnTradeTransaction is used to receive position opening time.

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

A trend indicator VTS using the Keltner channel.

A trend indicator VTS using Bollinger Bands.

Averaging of values (RSI) using MovingAverages.mqh. Two MA indicators.

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

An Expert Advisor based on the "RPoint" indicator. The chart layout in X-points reversal. A high-quality ZigZag based on HiLo.

A module of trading signals based on the Moving Average indicator signal module.

The "Nevalyashka" Expert Advisor.

The implementation of the MACD pattern "Trend continuation".

A multi-currency Expert Advisor that opens a market position at the user defined time.

The Expert Advisor trades based on the ADX Wilder and Ichimoku Kinko Hyo indicators. Lot is calculated based on risk percentage of margin.

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

Trend indicator.

Trailing, pending orders. Signals of two indicators (Moving Average, MA). Trades only during a certain period of the day.

Trade direction is chosen based on a random number generator. Stop Loss and Take Profit are set based on the random number generator. Lot calculation based on the risk value as a percentage of free margin. The code contains protection against the "not enough money" error.

The smoothed StrangeIndicator oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction.

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

Intersection of two Moving Averages. Take Profit and Stop Loss levels are virtual.

Trading system based on the signals of the ICHI_OSC indicator

A simple trend indicator of the NRTR type that uses the breakout of a channel drawn based on the Moving Averages of the High and Low price series.

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

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

12345678...99