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

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 Hurst Difference

Indicator LWMA/SMA ratio

Indicator Normalized Intraday Intensity Oscillator

RSI Histogram Oscillator

SAR Oscillator 2 indicator

Indicator FineTuningMACandle with the timeframe selection option available in its input parameters

Indicator FineTuningMACandle_Chl_Arr that additionally indicates the trend strength with colored dots, based on the standard deviation algorithm

Indicator FineTuningMACandle_Chl_Arr_StDev with the timeframe selection option available in its input parameters

Indicator Round_Levels_XN draws multiple "round" levels nearest to the current price above and below it

An indicator that shows buy and sell signals of three indicators (iSAR, iRSI, and iMA) on nine timeframes with full settings

Indicator FineTuningMACandle_Chl with the timeframe selection option available in its input parameters

Fisher indicator with an additional smoothing to eliminate the false intersections of the main and signal lines.

Simultaneous opening of oppositely directed positions

Opening an opposite position when reaching a profit of N pips

Closing positions when reaching a profit level

Hans_Indicator_x62_Cloud_System_Alert indicator with the level markup extended to the next session

The XFisher_org_v1 indicator with the timeframe selection option available in the input parameters

Indciator XFisher_org_v1 represented as candlesticks

An Expert Advisor based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). Averaging positions, in case of a loss.

The script calculates the average and weighted volatility of a symbol.

Indicator Stochastic_Histogram with the timeframe selection option available in its input parameters

Indicator XFisher_org_v2_Candle highlights the candles, the Close prices of which are closed within overbought/oversold zones

An Expert Advisor based on iMA (Moving Average, MA) and iMACD (Moving Average Convergence/Divergence, MACD). Averaging positions, in case of a loss. Improvement of the version 1.0

Indicator RVI_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

Indicator Stochastic_Histogram provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

Indicator XFisher_org_v1 provides alerts and sends email and push notifications when the main and signal lines intersect, accompanied by a change in the color of the signal cloud

The XFisher_org_v1_Candle indicator with the timeframe selection option available in the indicator input parameters

The XFisher_org_v2_Candle indicator with the timeframe selection option available in the indicator input parameters

A trading system based on the signals of indicator i-KlPrice_Vol

The Expert Advisor uses indicators iMA (Moving Avrage, MA) and iRSI (Relative Strength Index, RSI)

A trading system based on the signals of indicator i-KlPrice_Vol_Direct

The market maker robot for trading futures and swap cryptocurrency contracts

A trading system based on the signals of indicator FineTuningMACandle

Two identical trading systems (for long and short positions) based on the signals of indicator RJTX_Matches_Smoothed, which can be configured in different ways within one Expert Advisor

An indicator that shows buy and sell signals of three indicators (iSAR, iWPR, and iMA) on nine timeframes with full settings

LBS

Working with Stop pending orders. The EA uses indicator iATR (Average True Range, ATR)

Random entry. Random number generator entry.

Three standard deviation channels using indicator buffers based on the number of bars defined in the indicator inputs

Three standard deviation channels using indicator buffers based on the number of bars defined in the indicator inputs with the channels' background filling.

Twenty Fisher indicators with extra smoothing in a single window

1...222324252627282930313233343536...183