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

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
latest | best
PCR

The PCR (Percent Retracement) indicator shows the maximum distance by which the price has moved away from the highest High in the specified range.

MultiWajdyss_Ichimoku_x10 shows information on the current trends, using the colors of the Wajdyss_Ichimoku_Candle indicator from ten different timeframes.

MAE

The MAE (Moving Average Envelopes Percentage) indicator shows the price as a percentage of the Envelopes channel.

The DZP Trend indicator displays the market state as a detrended oscillator, i.e. the trend component is removed from the price, thus showing a clearer picture of the price movement.

A scalping Expert Advisor based on the "Market Capture" strategy.

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

The Wyckoff PV Histogram indicator

The Volatility Arbitrage indicator

The Valid Swing HighLow indicator

The Trendless OS DiNapoli indicator

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.

1...262728293031323334353637383940...172