Download MetaTrader 5

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

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.

latest|best

ZigZagOnParabolic with its values displayed as fractal labels.

Exp_X2MA_JJRSX trend-following trading system is based on ColorX2MA and ColorJJRSX indicator signals.

Multi Lot Scalper Expert Advisor, MetaTrader 5 version.

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

Zigzag2_R_Color with price labels of the ZigZag peak values.

Exp_X2MA_JFatl trend-following trading system is based on ColorX2MA and ColorJFatl indicator signals.

ZigZag based on the XMACandles indicator candles.

The Exp_XMACandles Expert Advisor is based on signals of the XMACandles indicator.

Zigzag2_R with its values displayed as fractal labels.

ZigZag indicator with price labels of the ZigZag peak values.

BrainTrend1Sig_Alert semaphore signal indicator features alerts, emails and push notifications.

XMA indicator in the form of candles.

This is a semaphore signal indicator using the colors of the MACDCandle indicator candles as trading signals.

The Exp_Trigger_Line Expert Advisor based on signals of the Trigger_Line indicator.

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

ZigZag based on the MACDCandle indicator candles.

ASCtrend semaphore signal indicator features alerts, emails and push notifications.

This is a trend-following indicator using the moving average and its smoothing. It features alerts, emails and push notifications.

ZigZag based on the MomentumCandle indicator candles.

ZigZag based on the RSICandleV2 indicator candles.

The indicator displays the deviation of the upper and lower borders of the symbol oscillation range. The deviation is based on the symbol's ATR.

ZigZag with its values displayed as fractal labels.

ZigZag based on MACD histogram.

ZigZag based on Stochastic oscillator.

ZigZag based on WPR oscillator.

ZigZag based on RVI oscillator.

ZigZag based on RSI oscillator.

ZigZag based on MFI oscillator.

The script allows you to try regular expressions.

BB stops — RSI version.

BB stops - new version.

BB stops - stochastic indicator.

BB stops - velocity version.

The Kijun-sen line with color customization and sending alert on trend changes

Derivative of the moving averages difference.

The difference of the moving averages.

Arithmetic and geometric moving averages.

The ZigZag based on the iMomentum oscillator.

The ZigZag based on the iForce oscillator.

The ZigZag based on the DeMarker oscillator.

1...202122232425262728293031323334...115