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

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

OHLC VolumeH volume difference indicator

OHLC Volume indicator

The histogram displays the difference of a Close price and iAMA (Adaptive Moving Average, AMA) indicator value.

The EA uses the following indicators: iADX (Average Directional Movement Index, ADX), two iMAs (Moving Average,MA) - one indicator at CLOSE prices and another one at OPEN prices, iOsMA (Moving Average of Oscillator, OsMA).

Wildhog indicator

DEMA_Range_Channel indicator with the timeframe selection option available in input parameters

DirectCandlesCounter indicator in the form of candles.

The indicator shows the moment of successive appearance of several unidirectional candles in a row activating alerts and sending email and push notifications

The EA is based on iMA (Moving Average, MA) indicator and analyzes the last six bars.

Closing positions and removing pending orders when reaching a specified profit or loss.

A simple Pivot. No stop loss and take profit are used.

Ozymandias_System indicator with the timeframe selection option available in input parameters

The EA performs initial opening in both directions. Then it tries to pull the remaining side into profit.

Trend envelopes - parabolic weighted MA

DEMA trend

Choppy market index

Short description.

Smooth ATR

Keltner channel - smooth ATR

Volty channel stop - smooth ATR

Smooth ATR trend envelopes of averages

Wilders DMI - averages

Logarithmic Garman Klass volatility

Yang Zhang extension of Garman Klass Volatility

Volty channel stops

Volty channel stops on JMA

QQE of polychromatic momentum

Tim Morris MA

Normalized ATR

ATR adaptive T3

ATR adaptive EMA

Deviation scaled MA

Deviation scaled MA crosses

Deviation scaled MA MACD

Average penetration

Average of median price

ATR adaptive double smoothed EMA

Average penetration histogram

Short description.

12345678910111213141516...141