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

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

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

Converts a number to a text.

CCI_Histogram_Vol indicator with the timeframe selection option available in input parameters

The trading system based on i-AnyRangeCldTail_System indicator signals with the possibility to set a fixed position holding time

A semaphore signal indicator that uses crossings of two Moving Averages

CCI_Histogram_Vol indicator with additional averaging of the resulting histogram

RSI_Histogram_Vol indicator with additional averaging of the resulting histogram

The EA based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator).

StepMA_3D_v3 indicator fills the space between the medium and slow trend with color and paints the fast trend line depending on its location

The trading system based on Iin_MA_Signal indicator signals

XRSI_Histogram_Vol indicator with the timeframe selection option available in input parameters

XCCI_Histogram_Vol indicator with the timeframe selection option available in input parameters

DeMarker oscillator displayed as a color histogram, using volumes

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

Iin_MA_Signal semaphore signal indicator features alerts, emails and push notifications

RSI_Histogram_Vol indicator in the candlestick form

CCI_Histogram_Vol indicator in the candlestick form

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

Renko charts on custom symbols

1234567891011121314...150