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

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

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.

VTS

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.

EMA

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

Trading system based on the signals of the ICHI_OSC indicator

SSL

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.

Lot calculation based on the risk value as a percentage of free margin.

Trading system based on the signals of the ThreeCandles indicator

The indicator calculates OHLC crossovers

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

The indicator receives trade signals from the MACD histogram.

The Exp_IBS_RSI_CCI_v4_X2 trend-following trading system is based on the signals of two IBS_RSI_CCI_v4 indicators.

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

An indicator of financial asset volatility using the OSMA oscillator.

The Exp_XOSignal_ReOpen trading system based on the signals of the XOSignal indicator with trend following scaling

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

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

The ThreeCandles indicator, which features alerts, sends emails and push notifications.

The tool allows drawing shapes in the chart.

The Exp_CGOscillator_X2 trend trading system based on the signals from two CGOscillator indicators.

The smoothed Simple Trend Detector with the color indication of overbought/oversold level breakouts and of the histogram direction.

The Exp_ttm-trend_ReOpen trading system based on the signals of the ttm-trend indicator with trend following scaling.

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

The TTM-Trend indicator with the timeframe selection option available in the input parameters.

A rounded MACD histogram presented in the price chart points.

The smoothed Commodity Channel Index oscillator with the color indication of overbought/oversold level breakouts and of the histogram direction

Smoothed Ichimoku oscillator

Crossing of the two iMAs. Lot calculation based on the risk value as a percentage of margin.

The Exp_ChandelExitSign_ReOpen trading system based on the signals of the ChandelExitSign indicator with trend following scaling.

1...798081828384858687888990919293...183