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

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

ATR adaptive T3

ATR adaptive EMA

Deviation scaled MA

Deviation scaled MA crosses

Deviation scaled MA MACD

Average penetration

Average of median price

ATR adaptive double smoothed EMA

Average penetration histogram

Average Penetration indicator displayed as bars.

Trend direction and force

Trend direction and force - smoothed

Trend direction and force - JMA smoothed

Extended version of Pivot Oscillator.

Very well known iTrend indicator but that uses ADXVMA for calculation.

Very well known iTrend indicator but that uses JMA (Jurik Moving Average) for calculation.

Trend Envelopes indicator that uses ATR for the price change calculation and is adding prices smoothing prior to be used in calculations.

Trend Envelopes indicator that uses Standard Deviation for the price change calculation and is adding prices smoothing prior to be used in calculations.

This version of Trend Envelopes RSI indicator differs in one significant point: instead of using fixed value (5) for envelopes calculation, standard deviation (adjusted by multiplier) of the calculated RSI is used for envelopes calculation.

Trend Envelopes indicator that uses Standard Deviation for the price change calculation.

Trend Envelopes indicator that uses ATR for the price change calculation.

This version of QQE is using Parabolic Weighted Velocity to determine trend.

This version of QQE is using Velocity indicator to determine trend.

QQE (Quantitative Qualitative Estimation) using CCI (Commodity Channel Index) instead of RSI (Relative Strength Index) as a "basic" indicator.

Schaff Trend Cycle CD is usually calculated using Signal line of the MACD, meaning EMA (Exponential Moving Average) of the difference of two EMAs (Exponential Moving Averages).

Ultra Trend indicator that uses a "fast" (fast in response to market changes) Zero Lag TEMA for trend calculations.

Ultra Trend indicator that uses a "fast" (fast in response to market changes) Zero Lag DEMA for trend calculations.

Ultra Trend indicator that uses a "fast" (fast in response to market changes) Zero Lag MA for trend calculations.

Mikko Breakout indicator is based on a break of previous highest high or lowest low.

This indicator is actually a combination of two values: it shows the crosses of fast and slow Zero Lag TEMA, and that cross determines the current market trend.

This version of Schaff Trend Cycle uses a much "faster" moving average than EMA (NonLag MA) for that calculation which makes the resulting MACD "faster" and thus the resulting Schaff Trend Cycle "faster" to to market changes.

Bollinger Bands Stops indicator that uses JMA (Jurik Moving Average) for calculation.

Three moving average cross with MACD signal verification before opening order. Updated 8/30/2018:

Variation of the Linear Weighted Moving Average where the weights can be changed to form a parabolic curve.

This version of Jurik Velocity extends the original by allowing you to change the "power" of the calculated averages used for velocity calculation.

TRIX indicator using a logarithm of a price and JMA (Jurik Moving Average) instead of Exponential Moving Average for smoothing.

TRIX indicator using a logarithm of a price and T3 instead of Exponential Moving Average for smoothing.

TRIX indicator using a logarithm of a price.

Multi timeframe version of the Trend Trigger Factor JMA indicator.

Multi timeframe version of the Trend Trigger Factor indicator.

1...91011121314151617181920212223...147