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

Indicator WATR implemented as a sequence of candlesticks.

Indicator UltraAbsolutelyNoLagLwma with the timeframe selection option available in the input parameters

Indicator WAMI allowing changing the timeframe of the indicator in its input parameters, the space between the oscillator and its signal line being filled in color, according to the trend direction

Expert Advisor Exp_BlauTVI_Tm based on the signals of trend-following indicator BlauTVI

A trading system using oscillator BlauErgodicMDI with the option of strictly setting a trading time interval

Indicator ColorX2MA with the timeframe selection option available in the input parameters

Trend-following trading system Exp_ColorX2MA_X2 based on the signals of two indicators ColorX2MA

Moving average AbsolutelyNoLagLwma displaying the most recent values as a price label, with the possibility to round the indicator levels to a required number of digits.

Indicator Derivative additionally smoothed and made as a color histogram

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.

1...515253545556575859606162636465...183