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

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

Trend Trail indicator

Trend identifier indicator

SuperTrend Dot indicator

Power weighted MA

Period Extreme signal indicator

МА as an oscillator

Lentz Volatility indicator

Hedging positions. Working on a new bar.

Three independent trading systems using ColorX2MA_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Three independent trading systems using ColorJFatl_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Fibo Average

ATR Volatility indicator

Wide Range Body indicator

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

Impulse System for the price bars

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

1...8910111213141516171819202122...148