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

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

Two indicators AbsolutelyNoLagLwma from different timeframes, the area between lines being filled with a cloud, the color of which corresponds with the trend direction on the market

Indicator Fisher Transform of Normalized Prices

An indicator of relative trend strength.

A.W. Warren's Momentum Indicator

A moving average with a changeable calculation period.

Indicator Trend Confirmation Index

Indicator Speed of Trade

An information-forecast MACD on the price chart

Indicator of daily ranges

Oscillator of polynomial regression slope.

An Expert Advisor based on indicator Renko Level

Indicator Normalized Acceleration/Deceleration

HVR

Indicator Historical Volatility Ratio

FVE

Indicator Finite Volume Elements

NEF

Indicator Nonlinear Ehlers Filter

EF

Indicator Ehlers Filter

Two indicators ColorJFatl from different timeframes, the area between lines being filled with a cloud, the color of which corresponds with the trend direction on the market

Trend-following trading system Exp_AbsolutelyNoLagLwma_X2 based on the signals of two indicators AbsolutelyNoLagLwma

This indicator is based on indicator AbsolutelyNoLagLwma and on the analysis of its multiple signal lines

PCI

Indicator Phase Change Index - the market phase change index

Moving averages on charts M5, M15, H1 are analyzed. The presence of the iMA (Moving Average, MA) "fan" is checked simultaneously on all three charts (M5, M15, and H1).

This utility tracks positions opened manually or by another EA for the current symbol and opens an opposite position. Opening the positions is tracked in OnTradeTransaction.

A trading system that only trades on resverse and from Thursday to Friday only.

An Expert Advisor based on two indicators iMA (Moving Average, MA). At crossing, we move back from the price at a certain distance and then expect the level obtained to be broken through.

Working with indicator iMA (Moving Average, MA) with a rigidly defined timeframe: D1.

iMACD (Moving Average Convergence/Divergence, MACD) with adjustable timeframes and a Stochastic of the current timeframe.

An Expert Advisor based on two indicators iMA (Moving Average, MA).

In CCI T3 Base indicator average is replaced with T3 and the deviation is replaced with EMA deviation.

This indicator is a Schaff Trend Cycle that is using Jurik Volty Adaptive RSX for calculation. Default adapting period is kept rather long simply to make the effects of the adapting more noticeable.

TEMA Jurik Volty Adaptive is using Jurik Volty for making the TEMA adaptive.

DEMA Jurik Volty Adaptive is using Jurik Volty for making the DEMA adaptive.

EMA Jurik Volty Adaptive is using Jurik Volty for making the EMA adaptive.

Jurik Volty Multi Timeframe indicator is calculating and showing periods of elevated or lesser volatility as a standalone indicator.

Jurik Volty indicator is calculating and showing periods of elevated or lesser volatility as a standalone indicator.

Hikkake Pattern (Inside Day False Breakout) indicator is a trading strategy based on false breakouts. Translated into MQL5 code from Dan Chesler's article published in April 2004, Active Trader Magazine "Trading False Moves with the Hikkake Pattern".

Pivotal points as described in the March 2009 SFO magazine article "Trading FX Like Jesse Livermore Traded Stocks" by Jamie Saettele.

An indicator for displaying ATR (Average True Range) value in pips or points with option for setting multiplier.

Compared to the CCI Squeeze indicator, this version is a standalone multi timeframe version (no other indicator is needed for its work).

Combination of two very well known indicators (CCI and Moving Average) that estimates the direction strength of the current market trend.

Compared to the Step Chart indicator, this version displays the values in a separate window (as a sort of a help to see the trend changes in an easier way).

1...515253545556575859606162636465...183