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

The channel based on fractals with the background filling inside the channel.

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

Indicator FineTuningMACandle with two colored channels based on standard deviations from the High and Low of the indicator candles

FineTuningMACandle_Chl indicator replaces signal candles with signal flags, which are visually more convenient in most cases

Indicator Traders Dynamic Index

The EA uses indicator iAlligator

TMS Arrows indicator

Indicator Parabolic Moving Average

Parabolic MA with Bands indicator

Indicator True Strength Index

Shadow True Strength Index

This is a utility for rounding the lot size correctly

Indicator Volatility Ratio2

A swing-based Expert Advisor: The EA sets a pending stop order with an increased lot size and in the opposite direction.

Indicator Gann Swing

Indicator Rubicons CCI Cross

Indicator Compare Prices

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

1...222324252627282930313233343536...183