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

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

Bollinger Bandwidth Delta oscillator

Breakdown oscillator

Buying/Selling Pressure indicator

Skyscraper_Fix_Signal indicator shows information on the current trend using the values of the Skyscraper_Fix indicator with a fixed timeframe.

Two independent trading systems applying Skyscraper_Fix and AbsolutelyNoLagLWMA indicators in a single Expert Advisor

Consecutive Advance/Decline indicator

Extreme TMA Line indicator

Internal Strength indicator

The Expert Advisor sets pending Buy limit and Stop limit orders.

Market Direction Indicator

Murreys Math Oscillator

Single Stream SAR indicator

Standard Error Bands indicator

Volatility Stop indicator

Volatility Stop oscillator

Ahrens Moving Average indicator

Ahrens MACD

Average True Range Bands indicator

Two independent trading systems using Skyscraper_Fix and ColorAML indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Skyscraper_Fix_Cld indicator with the timeframe selection option available in input parameters

Breakout RSI indicator

CCI OBOS With Confirmation indicator

The Expert Advisor based on iAlligator (Alligator) indicator.

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

Three independent trading systems using Skyscraper_Fix, ColorAML and X2MACandle indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Three independent trading systems using BrainTrend_V2, AbsolutelyNoLagLWMA and X2MACandle indicators within a single EA with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Williams’ Percent Range oscillator displayed as a color histogram, using volumes

The indicator defines Harami patterns and features alerts, emails and push notifications

WPR_Histogram_Vol indicator with the timeframe selection option available in input parameters

The indicator paints candles going beyond the TimeZonePivots channel

The Expert Advisor compares Close prices

X MA Sum Average indicator

MA Trend indicator

Generalized double DEMA

Average from MA indicator

Generalized DEMA

Connors RSI indicator

Simple Decycler indicator

Decycler Oscillator indicator

Directional Volatility indicator

1...91011121314151617181920212223...160