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

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

ATR adaptive Laguerre filter - levels

ATR adaptive Laguerre filter

Discontinued signal line QQE - histogram

Relative price channel

Wilson Relative Price Channel - modification

Laguerre RSI - without using the gamma parameter

Instantaneous trend line - using levels for signals filtering

Laguerre filter - without the usage of gamma parameter

DSL synthetic super smoother momentum

DSL synthetic ema momentum

Force index - JMA

Time Fractal Energy adaptive Laguerre RSI

Premium stochastic oscillator

Zero lag super smoother

Corrected super smoother

Corrected T3 - EMA deviations

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

Checking a trading system: Close > Open → BUY signal, Close < Open → SELL signal.

The Wajdyss_Ichimoku_x10 indicator displaying the colors of the Wajdyss_Ichimoku_Candle indicator candlesticks from ten different timeframes, from the bar defined in the indicator input parameters.

The PCR (Percent Retracement) indicator shows the maximum distance by which the price has moved away from the highest High in the specified range.

MultiWajdyss_Ichimoku_x10 shows information on the current trends, using the colors of the Wajdyss_Ichimoku_Candle indicator from ten different timeframes.

The MAE (Moving Average Envelopes Percentage) indicator shows the price as a percentage of the Envelopes channel.

The DZP Trend indicator displays the market state as a detrended oscillator, i.e. the trend component is removed from the price, thus showing a clearer picture of the price movement.

A scalping Expert Advisor based on the "Market Capture" strategy.

The RSI_Histogram_Vol indicator with the ability to change the timeframe using input parameters.

The Wyckoff PV Histogram indicator

The Volatility Arbitrage indicator

The Valid Swing HighLow indicator

The Trendless OS DiNapoli indicator

An Expert Advisor based on iMA (Moving Average, MA) and iMomentum (Momentum).

The linear regression channel, which saves its values ​​in the indicator buffers and fills the channel background with color

A trend indicator with three moving averages having different periods, using the Average True Range in calculations.

An indicator for constructing Renko bars in the chart sub-window.

The Trend Risk indicator

The TMAGi indicator

The T3 Moving Average indicator

The Nick Rypoсk Moving Average indicator

The Modified Moving Average indicator

The MA signal indicator

The Investor Preference Index indicator

1...242526272829303132333435363738...170