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

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

Smoothed differential indicator by Sultonov.

The indicator finds Doji candlesticks and highlights them on the chart.

FX Trend trend-following indicator

Channel balance indicator

Candle amplitude indicator

BezierMA moving average

ASH

Absolute Strength Histogram (ASH) indicator

ASO

Absolute Strength Oscillator (ASO) indicator

ALWMA moving average

WVF Stochastic indicator

WPR HL indicator

Three independent trading systems using AbsolutelyNoLagLwma_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

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

WRB

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

1...434445464748495051525354555657...183