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

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.

To post a new code, please log in or register
latest|best

An EA based on indicator iMA (Moving Average, MA). Reverse of signals. Lot size is either fixed or based on risk percentage.

An indicator of expanding time zone ranges with the background color filling and the midline of the Hans_Indicator range, capable of giving alerts and sending mail and Push messages at the time of breaking through the expanding of the range formed, with the number of price levels increased up to thirty-one

Grid of market positions. Martingale.

Indicator HLCrossSigForRSI with the possibility of changing its timeframe in its input parameters

An EA based on indicators iRSI (Relative Strength Index, RSI) and RFTL

A semaphore signal indicator that gives trade signals when candles Heiken Ashi Smoothed change their directions

Indicator Heiken_Ashi_Smoothed with two color-filled channels built on mean-square deviations from the High and the Low of the indicator candles

Indicator Heiken_Ashi_Smoothed with the possibility of changing its timeframe in its input parameters

An EA based on indicator iBands (Bollinger Bands, BB). It places pending Stop orders.

Indicator FineTuningMA represented as candles

Indicator Mirror RSI

Indicator RSI MA

Oscillator i-KlPrice using volumes

Indicator Heiken_Ashi_Smoothed_Trend with the possibility of changing its timeframe in its input parameters

Indicator MA of CCI

A multisymbol EA. Its working algorithm is perceptron, i.e., a simple neural network). It uses indicator iAC (Acceleration/Deceleration, Accelerator/Decelerator Oscillator, AC).

Indicator POGO

Indicator Simple slope

Indicator Sylvain Vervoort rainbow moving average

Indicator Sylvain Vervoort RSI inverse fisher transform

Indicator Volatility Quality Index

Indicators iCCI (Commodity Channel Index, CCI) and two iMAs (Moving Average, MA) are used.

Indicator Price Momentum Oscillator

Calculating the best trading interval.

Indicator HLCrossSigForWPR with the option of selecting its timeframe in its input parameters

Indicator RJTX_Matches_Smoothed featuring alerts, emails and push notifications for smartphones

Indicator RJTX_Matches_Smoothed_Alert featuring alerts, emails and push notifications for smartphones. The input variables allow replacing the displayed indicator symbols

Indicator VZO

An EA based on indicator iATR (Average True Range, ATR)

Indicator Candle's Middle Point

Indicator Colored Middle Point of Candles

Indicator EMA HLC Envelope

Indicator EMA HLC Envelope Oscillator

Indicator Fractal Channel

The indicator displays two indicators ATR with different averaging periods in a single window.

Signal indicator iCrossAD. It shows possible reversals or price roll-backs.

A set of Fibo levels (pivot points) built on candles of the timeframe specified in the inputs

A set of Fibo levels (pivot points), based on candles of a timeframe specified in the inputs, made in the form of labels

Indicator i-KlPrice_Vol that shows the direction of moving the histogram bars as colored labels on such bars

1...67891011121314151617181920...168