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

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

The Multi-timeframe Moving Average indicator

The Expert Advisor uses Buy Stop and Sell Stop pending orders. Martingale.

The AutoFibAutoTrend indicator, in which you can change colors and the values of horizontal Fibo levels.

Two identical trading systems (for long and short deals) based on the ColorMaRsi-Trigger indicator signals that can be configured in different ways 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.

The Multi timeframe Elder's Safe Zone indicator

The ColorRSI_X20 indicator with the possibility to change the calculation timeframe using the indicator input parameters

The ColorMFI_X20 indicator with the possibility to change the calculation timeframe using the indicator input parameters

The Expert Advisor uses Buy Stop and Sell Stop pending orders.

The XFisher_org_v1_Vol_Supr_Zer indicator with the possibility to change the indicator timeframe using input parameters

The indicator builds Fibonacci levels at candlesticks High and Low, based on the timeframe specified in the indicator parameters

The MFI normalized indicator

The ColorMFI_X20 indicator featuring background filling in overbought/oversold areas

Twenty MFI indicators displayed in one window. Each line can be colored depending on its position relative to overbought and oversold areas

The trading system based on SpearmanRankCorrelation_Histogram indicator signals

The VTS_Float_Pivot_Smoothed indicator with the ability to change the indicator timeframe using input parameters

A trend indicator VTS using the Float_Pivot_Smoothed channel.

A trading system based on the SR-RateIndicator indicator signals

The Expert Advisor operates using pending Buy limit and Sell limit orders. It uses High and Low of the D1 timeframe (bars #1 and #2)

A trading system based on the Puria method.

An Expert Advisor based on two iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI)

The Expert Advisor based on the BullsBearsEyesindicator custom indicator

The Fib_SR indicator with three additional support and resistance zones

The Heiken_Ashi_Smoothed_VolatilityStep_Alert indicator with the ability to highlight trading time zones, selected in the indicator input parameters. Such zones are shown in a different histogram color

The XFisher_org_v1_Vol_Supr indicator with additional signals displayed as round dots, which indicate zero line breakout by the indicator line

The Expert Advisor waits for a gap at the bar opening.

The Gold Dust

The Float_Pivot_Digit indicator with the smoothing of input timeseries used in calculations. The timeseries smoothing parameters are determined by the indicator input variables

An alternative to Bollinger Bands® with the color filling inside the channel, drawn as a cloud, with the display of the last values as price labels and the possibility to round the channel levels up to a required number of digits

The Heiken_Ashi_Smoothed_VolatilityStep_Alerts indicator with the ability to change the indicator timeframe using input parameters

The Heiken_Ashi_Smoothed_VolatilityStep indicator with the ability to send alerts, emails and push notifications when the indicator breaks through the trigger level specified in the inputs.

An Expert Advisor based on the iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD) indicators

A simple indicator, which calculates rounded volatility of a financial asset using the High and Low prices of smoothed Heiken_Ashi candlesticks.

Two identical trading systems (for long and short deals) based on the ColorMETRO indicator signals that can be configured in different ways 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.

The strategy is based on two indicators calculated on two timeframes: iAO (Awesome Oscillator, AO) on the D1 TF and iStochastic (Stochastic Oscillator, Stoh) on H1.

The Expert Advisor is based on the RSI Custom Smoothing indicator.

The Fib_SR indicator with two additional support and resistance zones.

The indicator shows possible resistance and support zones in the form of colored rectangles

The SpearmanRankCorrelation_Histogram indicator with the ability to send alerts, emails and push notifications when trading signals emerge

The indicator shows Buy and Sell signals of three indicators (iSAR, iMFI и iTEMA) located in nine timeframes, with full settings

1...181920212223242526272829303132...183