Watch how to download trading robots for free
Find us on Twitter!
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 - 51

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

DEMA trend

Choppy market index

Impulse System for the price bars

Smooth ATR

Keltner channel - smooth ATR

Volty channel stop - smooth ATR

Smooth ATR trend envelopes of averages

Wilders DMI - averages

Logarithmic Garman Klass volatility

Yang Zhang extension of Garman Klass Volatility

Volty channel stops

Volty channel stops on JMA

QQE of polychromatic momentum

Tim Morris MA

Normalized ATR

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).

1...444546474849505152535455565758...183