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

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

Relative strength index with dynamically changing oversold/overbought levels and the possibility to select smoothing algorithm.

Stalin is one of the so-called «signal» indicators, as it provides a trader with accurate market entry points.

This indicator shows the simple clock in comment.

Schaff Trend Cycle indicator is a cyclical oscillator created by calculating the stochastic over MACD line using cycles. As a result, the developers managed to achieve more stable and reliable results of the indicator script operation.

The indicator generates signals for entering the market.

The indicator that paints the bars in blue for a bullish trend and in red for a bearish one.

Value Charts is a detrended price indicator, it shows the overbought and oversold states using the detrended price extremes.

SuperTrend indicator.

SHI_Channel_true automatically shows Barishpolts dynamic moving channels on a chart.

Simple but demonstrative trend indicator.

Simple and demonstrative indicator of the current trend power and direction.

JFatlAcceleration measures the current trend acceleration.

The indicator shows trend change rate with a minimum lag.

Standard Heiken Ashi calculated using smoothed price time series.

The system of Camarilla Equation levels for all bars.

The system of Camarilla Equation levels for the current bar.

The universal moving average with double smoothing and possibility to select each of this smoothings from the dozen of possible variants.

Four digital filters that form the basis of the V. Kravchuk's AT&CF method in one separate window.

Chaikin Oscillator with a smoothing algorithm selection.

Spearman's Rank Correlation is a non-parametrical method used for statistical analysis of the correlation.

The variant of the ZigZag indicator optimized by its operation rate.

Chaikin Volatility Index determines volatility on the basis of the range width between minimum and maximum. The presented variant of this popular indicator allows to select the smoothing algorithm out of ten possible variants.

The indicator for multi-currency technical analysis based on the related financial assets resonances.

Set of Keltner Channels based on the universal smoothing.

Murrey Math Lines for the current bar are an effective tool for the market movements forecasts.

Set of Bollinger Bands ® created on the basis of the universal smoothing algorithm.

The color histogram based on the Momentum and Perry Kaufman's Adaptive Moving Average indicators.

This indicator based on the digital filter shows trend direction.

Multi-currency trend following expert system using the Triple Exponential Moving Average technical indicator.

The indicator displays MACD histogram and price divergence on a chart.

More smoothed Momentum with colored indication of the current trend.

This indicator paints the candlesticks in different colors depending on a trend power and direction.

The indicator shows market entry points as colored dots. Signal dots locations can indicate the levels for setting a protective Stop Loss or a new Trailing Stop position.

The indicator helps to compose a picture of market future movements, in distinct from the other tools that hang behind the market. The information that became available in the course of the previous day is used to calculate the check points of the minor trend of the current day.

The DailyPivot Points indicator helps to compose a picture of market future movements, in distinct from the other tools that hang behind the market.

Variation Index shows if a trend or a flat movement is prevailing in the time series or random behaviour.

The indicator consists of five Tirone Levels that are, in fact, support and resistance levels based on a trading range for a certain period of time.

The indicator consists of support and resistance levels based on a trading range for a certain period of time.

New comments added to a chart without deleting existing ones.

The simple indicator which displays minimums and maximums of the eldest, middle and short periods using semaphore dots.