Watch how to download trading robots for free
Find us on Telegram!
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 - 148

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

X2MA_HTF_Signal_BG shows information about trend direction (based on the X2MA indicator data) as a graphic object with a colored indication of trend or deal direction and gives alerts or audio signals and sends push notifications to a smartphone.

A channel built using the values of the ATR deviation from the middle of the range calculated on extremes.

The MACD histogram with a cropped display of flat areas.

Three Relative Vigor Index indicators from three different timeframes displayed on the same chart.

A semaphore signal indicator that uses the values of Accelerator Oscillator and Bill William's Awesome Oscillator.

The indicator shows possible resistance and support zones in the form of colored rectangles.

The indicator shows Pivot levels and uses a special background color for the session, during which the levels were calculated.

A channel drawn by extremums for the period.

The indicator allows to use a special background color for marking the price chart in the period of day selected in the input parameters.

Three Commodity Channel Index indicators from three different timeframes displayed on the same chart.

The Ergodic MDI Oscillator from the book "Momentum, direction and divergence" by William Blau, implemented in the form of a color histogram with a signal line implemented as a colored cloud.

Two pairs of support and resistance levels based on the candlesticks of the timeframe specified in the input parameters.

The indicator fixes the moments when the volatility of the financial asset takes to a minimum value and puts colored dots on the chart in the middle of the range of the candlestick movement.

Trading system using the BlauCSI indicator.

Three normalized oscillators on one chart.

The BlauCSI_HTF_Signal indicator shows trend direction based on the data of the BlauCSI indicator as a graphical object with colored trend indication, gives alerts or audio signals and sends push notifications on your smartphone.

A moving average calculated as an average of all variants of calculation of the classical Moving Average with a signal line and the possibility to produce alerts and send push notifications.

Recursive implementation of multi-timeframe smoothed RSI indicator.

This indicator is a modification of classical Awesome indicator. It computes the smoothed rate of change of two exponential means.

This indicator is a small modification of classical Fractals Indicator. You can choose the number or left/right bars to have a new top or bottom as well a shift parameter.

EasyXML is a native MQL5 XML Parsing Library. It can parse XML from three different sources: URL, File and String Input. It is completely object oriented and strives to integrate neatly with MQL5, as it utilizes CObject and CArrayObj from the MQL5 standard library to store the DOM.

The code is designed to be a simple reference of how to create movable (drag) panels and populate it with information.

An indicator of trend power with eight states.

Spread Indicator - displays current spread in the chart window.

A set of support and resistance levels with five different timeframes.

A moving average indicator obtained by averaging the values of all calculation variants of the classical Moving Average.

An analogue of the Alligator indicator with a smaller lag of signals.

The KAGI chart in the simplest form.

A standard high-frequency filter.

The EMA_Prediction_HTF_Signal indicator shows trend direction based on the data of the EMA_Prediction indicator as a graphical object with colored trend indication, gives alerts or audio signals and sends push notifications on your smartphone.

The indicator draws fractals based on three candlesticks.

Coloring price chart bars depending on the size of price change.

Three main stochastic lines from three different timeframes on one chart.

The linear regression line with data placed in the indicator buffer.

A digital filter of rapid trend with a reference line, implemented in the form of a cloud.

A set of target support/resistance levels for the predicted price movement.

The Moving Average Expert Advisor trades when the price crosses the MA.

Three Moving Averages with three different timeframes on one chart.

Ergodic MACD-Oscillator implemented in the form of a color histogram.

A trading system that uses the Candle Momentum indicator.

1...141142143144145146147148149150151152153154155...185