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

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

An Expert Advisor based on iMA (Moving Average, MA) and iMomentum (Momentum).

The linear regression channel, which saves its values ​​in the indicator buffers and fills the channel background with color

A trend indicator with three moving averages having different periods, using the Average True Range in calculations.

An indicator for constructing Renko bars in the chart sub-window.

The Trend Risk indicator

The TMAGi indicator

T3

The T3 Moving Average indicator

The Nick Rypoсk Moving Average indicator

The Modified Moving Average indicator

The MA signal indicator

The Investor Preference Index indicator

The Commodity Channel Index oscillator displayed as a color histogram, using volumes.

GD

The Generalized DEMA moving average

The Relative Strength Index oscillator displayed as a color histogram, using volumes.

A trading system based on the Trading_Channel_Index oscillator signals.

A trading system based on the Trend_Intensity_Index oscillator signals.

The Forecast oscillator indicator

Fractal Graph Dimension Indicator

The Derivative Oscillator indicator

The Center of Gravity Channel indicator

Three independent trading systems using ColorXPWMA_Digit indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

A trading system based on the UltraMFI indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system.

The i-AnyRangeCldTail_System indicator provides alerts, sends email and push notifications when the candlesticks break through the dot-dash channel.

The indicator paints candlesticks, which are beyond the i-AnyRangeCldTail channel. Candlesticks outside the channel limits are marked with color according to the trend.

A modification of the "Bears Power" indicator: now the line color and line width can be set in input parameters.

A modification of the "Bulls Power" indicator: now the line color and line width can be set in input parameters.

A modification of the "Custom Moving Average" indicator: now the line color and line width can be set in input parameters.

The UltraMFI indicator with the ability to change the indicator timeframe using the input parameters.

An indicator of ranges of arbitrary time intervals with the extension of the interval generated within the specified session until the next session.

An indicator of ranges of arbitrary time intervals.

This Expert Advisor doesn't use any indicators. It only applies analysis of Close prices at bar #1 and the specified bar.

A trading system based on the FX Fish 2MA indicator.

An indicator of two ranges of arbitrary time intervals.

A trend indicator based on the difference between two moving averages.

Indicator - trading system "FX Fish 2MA".

The indicator colors candlesticks depending on the trend direction.

An Expert Advisor based on iRSI (Relative Strength Index, RSI).

The indicator colors candlesticks depending on the position of these candlesticks in relation to the previous candlesticks.

The BBands Stop v1 indicator provides alerts, sends email and push notifications when the trend direction changes and the indicator color changes accordingly.

This indicator is based on MFI (Money Flow Index) and its multiple signal lines analysis.

1...495051525354555657585960616263...195