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

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

The indicator displays Wingdings arrows when RSI crosses UP and DOWN levels.

A fractal based variation.

A fractal based indicator.

An indicator of ticks (Bid and Ask). Displays the last 300 ticks.

A moving average with the fourfold EMA averaging, with a real period and the possibility to shift the indicator horizontally or vertically.

A moving average with the five-fold EMA averaging, with a real period and the possibility to shift the indicator horizontally or vertically.

Plotting ROC indicators of two arbitrary same types (including Momentum) and periods in a single window.

The trading system is based on volatility compression

The DeltaForce indicator with the timeframe selection option available in the indicator input parameters.

The OscSAR_Histogram indicator with the timeframe selection option available in the indicator input parameters.

A trend strength indicator using two Bollinger channels.

The indicator draws a vertical line (OBJ_VLINE) and then moves it to the specified time (hours and minutes).

The trading system is based on the NRTR_ATR_STOP indicator signals.

The EA buys if the open price of the last position is higher than the current price.

Crossover of two iMAs (Moving Averages), one more iMA (Moving Average) is used as the filter. Lot: manual or risk percent of balance. Stop, Market or Limit orders. The EA also sets Stop Loss, Take Profit, Trailing Stop.

The NRTR_ATR_STOP indicator with the timeframe selection option available in the indicator input parameters.

Two histograms in one window showing the degree of the financial asset's overbought or oversold state.

The Exp_ColorXMUV_Tm Expert Advisor is based on the ColorXMUV MA signals and provides the possibility to set a fixed trading time interval.

The RBVI_Histogram indicator with the timeframe selection option available in the indicator input parameters.

A redrawing channel having two upper and two lower borders. Its algorithm is similar to a zigzag.

The Exp_ColorJFatl_Digit_Tm Expert Advisor is based on the ColorJFatl_Digit indicator signals and provides the possibility to set a strict trading time interval.

The PercentageCrossoverChannel_Cloud indicator with the timeframe selection option available in the indicator input parameters.

The trading system is based on the PercentageCrossoverChannel_System indicator signals.

The EA trades in the specified time interval. It takes into account High and Low within a certain number of bars. The EA includes protection against the "not enough money" error.

The EA trades based on the Fractals indicator. Lot calculation: percentage of free margin.

The CandleRange indicator with the timeframe selection option available in the indicator input parameters.

The PercentageCrossoverChannel_System indicator with the timeframe selection option available in the indicator input parameters.

The Exp_PercentageCrossover Expert Advisor is based on the change of the PercentageCrossover color, and provides the possibility to set a strict trading time interval.

A standard zigzag complemented with support and resistance levels.

Adaptive Moving Average (AMA) is a technical indicator.

The PercentageCrossover indicator with the timeframe selection option available in the indicator input parameters.

The XMA_KLx5_Cloud indicator with the timeframe selection option available in the input parameters.

The Exp_TotalPowerIndicatorX Expert Advisor is based on the signals generated by the TotalPowerIndicatorX oscillator. It also provides the possibility to set a strict trading time interval

Signals are generated by the iBands, Bollinger Bands indicator. When a signal is received, opposite positions are closed.

The TotalPowerIndicatorX indicator with the timeframe selection option available in the indicator input parameters.

Two histograms in one window, showing the maximum average price deviation in points from the initial value.

The EA waits for a TP or SL to trigger, and then opens a position in the opposite direction. It checks if there is enough money before sending a trade request. OnTradeTransaction.

Stripped Laguerre of double smoothed stochastic.

Laguerre stripped of RSI "experiment".

A variation of the Laguerre filter indicator.

1...686970717273747576777879808182...176