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

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

The CCIT3_Simple indicator modified.

PercentInfo gives information on the rise and drop in prices expressed as a percentage and in points as obtained from the three largest time frames of the currency chart. Simple and good information assistant.

The simple oscillator indicator displayed as colored cloud.

The CandleTrend indicator displays price movement directions from six different timeframes.

Modified CCIT3 indicator

The indicator shows possible price movement direction.

Adaptive Market Level shows the current reference level of the market price. The level is shifted only in case of the price trend movement.

ALGLIB math function library (v. 3.5.0) ported to MQL5.

Ask Bid Ticks is a high-precision, real-time tick data solution for microstructure analysis (a tick data collector). It works with local computer time.

This indicator calculates and shows daily highest and lowest prices, display them as two set of lines.

XprofuterOverlay shows the line of the price future movement.

XprofuterDD presents an attempt to predict the future price behavior.

MACD shifted for the trading range is used to determine a trend and overbought/oversold areas.

Standard Stochastic oscillator displayed as a cloud that can be located by setting the indicator timeframe value different from the chart one.

The simple indicator for displaying some relevant information about a position right in the chart window.

The Expert Advisor moves Stop Loss of the open position along the border of the channel built using ATR_Trailing.

The indicator of two unspecified time intervals.

Function Library for Working with Time Series: iTime, iOpen, iHigh, iLow, iClose, iHighest, iLowest, iBarshift. Short invocation version is available for all functions (with the current chart's symbol and period).

This is an informative script displaying data on the current trading pair in the chart window.

Standard Stochastic shown as a color histogram.

Standard MACD version that can be located by setting the indicator timeframe value different from the chart one. The indicator also allows traders to select histogram and signal line smoothing algorithms.

Bears vs Bulls. Bees vs honey. Rock vs drugs.

This is an informative script displaying data on the current trading account in the chart window.

The indicator shows day open level on any timeframe.

The indicator displays high and low levels of a day (specified by the input parameter value) on any timeframe.

The simple indicator for displaying the price chart of any trading symbol in the indicator window.

The indicator shows the chart of the difference (sum) of trading symbols' prices. It is suitable for visual estimation of trading symbols' correlation. It will be very useful for traders interested in pairs trading (spread trading). Indicator bars are synchronized by time with the bars of the chart the indicator is launched at.

The indicator displays the second chart over the main one using the reference point.

8 Stochastic oscillators (%K 6, 9, 12, 14, 16, 19, 21, 24).

This indicator is a modified version of RSI that can be placed on a chart having another timeframe. It also allows users to change RSI and the signal line's smoothing algorithms.

XLineRegression creates levels based on the linear regression algorithm.

The simplest semaphore indicator having alerts and providing the possibility to send signals to a mailbox and a smartphone.

The simplest semaphore indicator having alerts and providing the possibility to send signals to a mailbox and a smartphone.

The Expert Advisor is based on CCIT3_Simple and CCIT3_noReCalc. Crossing of the indicator's zero line is used for trading activity.

Moving Average: 3-Pole Butterworth Filter. The indicator is based on the code of Witold Wozniak.

The script is designed for closing open positions.

The script is developed for reversing open positions with fixed Stop Loss and Take Profit values in points from the current price and the volume depending on the reversed position.

The average candle size for a certain period.

Simple trend indicator displayed in the form of NRTR.

Same RSI and Dem but more sensitive one.

1...110111112113114115116117118119120121122123124...137