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

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.

To post a new code, please log in or register
latest|best

Analyzing the price channel (iHighest, iLowest) for a certain period of bars.

The Expert Advisor based on ZigZag.

The channel formed on an open price of an hour set in the settings

The Expert Advisor based on iCCI (Commodity Channel Index, CCI) indicator.

The indicator of expanding time zone corridors with four corridors

The indicator of expanding time zone corridors with five corridors A formed corridor is equal to four hours, while the corridor expansion is equal to sixteen hours.

The indicator of expanding time zone corridors with background color filling and the corridor's middle line

The indicator of expanding time zone corridors with eleven corridors

The indicator of expanding time zone corridors with eleven corridors, middle line and background color filling

XDeMarker_Histogram_Vol indicator with the timeframe selection option available in input parameters

The indicator of expanding time zone corridors with eleven corridors, middle line and background color filling that features the ratio of changing the step of corridor borders expansion

The Expert Advisor based on BrainTrend1Sig indicator

XDeMarker_Histogram_Vol indicator shows direction of the histogram bars movement using colored icons on these bars

The library allows receiving a magic number bound to three elements: symbol name, timeframe and prefix index.

The indicator measures money on a chart.

The trading system based on XDeMarker_Histogram_Vol indicator signals

Bar Based Stochastic indicator

Bar Based Stochastic indicator with histogram

Better Bollinger Band indicator

Double smoothed MACD Stochastic indicator

Fractal bar indicator

Modified Advance Decline line indicator

Grid of pending orders. The EA applies iADX (Average Directional Movement Index, ADX) indicator.

The Expert Advisor based on iMACD(). Displaying MACD values via Point().

Mogalef Bands indicator

Power measure indicator

Williams Pro-Go indicator

XCCI_Candle_Vol indicator showing a breakthrough of its zero line using candles, color labels and audio signals

XCCI_Candle_Vol_Zer indicator with the timeframe selection option available in input parameters

XRSI_Candle_Vol_Zer indicator with the timeframe selection option available in input parameters

XCCI_Candle_Vol indicator with the timeframe selection option available in input parameters

XRSI_Candle_Vol indicator with the timeframe selection option available in input parameters

Working with Buy stop and Sell stop pending orders.

MA_Rounding_Candle_HTF indicator with the timeframe selection option available in input parameters

WILL VAL indicator

Grid of Stop and Limit pending orders.

SonicR PVA Volumes indicator

Stochastic expansion indicator

Tick Based Stochastic indicator

Tick Based Stochastic with histogram

12345678910111213141516...151