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


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

ATR adaptive Laguerre RSI

Efficiency ratio directional with self adjusting levels

Step average - standard deviation based

Step average - average true range based

Step average

Stochastic volatility - on chart

Variable Index Dynamic Average (VIDYA)

VHF adaptive VMA

VHF (Vertical Horizontal Filter) adaptive ADXm

DSL Chande momentum oscillator - smoothed

Heiken ashi smoothed - zone trade

BB stops JMA - multiple stops

BB Stops - multiple stops

Trend analysis index - improved and corrected version

Ehlers fisher transform of rsi(OMA)

Ehlers fisher transform of smoother RSI

Bollinger bands squeeze

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.