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

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
latest | best

XPeriodCandleSystem indicator provides alerts, sends email and push notifications when the candles break through the indicator channel.

Chaikin_Volatility_Histogram indicator with the timeframe selection option available in the input parameters.

Ozymandias_System indicator provides alerts, sends email and push notifications when the candles break through the indicator channel.

Version of the AMA Histogram indicator.

The EA based on single iMA (Moving Average, MA) indicator signals.

Chaikin volatility indicator as a colored histogram.

The EA based on three iMA (Moving Average, MA) indicators.

The CenterOfGravityCandle indicator with the timeframe selection option available in the input parameters.

CandleStop_System indicator with the timeframe selection option available in the input parameters.

The indicator paints candles going beyond the CandleStop channel.

The indicator is displayed using three horizontal lines of iAMA (Adaptive Moving Average, AMA) indicator from three different timeframes.

Ang_Zad indicator applies additional smoothing of total values allowing users to avoid excessive indicator signals noise caused by false crossings of its moving averages.

At the beginning of a new day, the EA places pending Buy Stop and Sell Stop orders by High and Low of the previous day.

Differential_Average_By_Sultonov_Signal indicator shows information on the current trend using the values of the Differential_Average_By_Sultonov indicator with a fixed timeframe.

The Differential_Average_By_Sultonov indicator with the timeframe selection option available in the input parameters.

The XPeriodCandleSystem indicator with the timeframe selection option available in the input parameters.

Expert Advisor based on ZigZag indicator. Working with pending Buy Stop and Sell Stop orders.

The Waddah_Attar_Trend_Candles indicator with the timeframe selection option available in the input parameters.

The candle chart based on Waddah_Attar_Trend histograms calculated using the Open, High, Low and Close price series of the price chart.

Gann_Multi_Trend indicator defines a short, middle and long-term trends.

Working with pending Buy Limit and Sell Limit orders. Grid of pending orders.

A trading system using the Ang_Zad_C trend-following indicator with the possibility to set a strict trading time interval and change the volume of a forthcoming trade depending on the results of the previous trades.

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

1...333435363738394041424344454647...173