Watch how to download trading robots for free
Find us on Twitter!
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 - 35

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

Mean Indicator indicator

Now you can test the indicator and select the price type from the ENUM_APPLIED_PRICE enumeration

Slope Direction Line / Moving Average confirmation candles indicator

Slope Direction Line / Moving Average confirmation bars indicator

The indicator plots one vertical line per day in a specified moment of time

RSI_X20 indicator is able to color each line depending on its position relative to overbought and oversold areas

The indicator plots support/resistance levels and areas

ATRStops_v1 indicator in the candle form

ADX Fractal Signals indicator

Bollinger Bands Outside Candle Alert indicator

RSICloud indicator with background filling for overbought/oversold areas, as well as for the channel between them

Day of week indicator

Ehler's Center of Gravity indicator

Elder's Safe Zone indicator

Elder's Safe Zone Triple indicator

Highly Adaptable Moving Average Alert indicator

T3 Price Overlay indicator

Multiple strategies within a single Expert Advisor. When two or more strategies are activated, a position lot is increased exponentially.

A simple indicator that calculates rounded volatility of a financial asset. Volatility is calculated in points based on the maximum and minimum prices

The indicator based on two indicator buffers (DRAW_LINE style)

Volatility2Step indicator provides alerts, sends email and push notifications when the indicator breaks through the trigger level specified in the inputs.

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

The EA applies WPR Custom indicator.

iWPR (Williams’ Percent Range, %R) indicator features new settings allowing users to manage display of levels and main level color from an Expert Advisor.

The Expert Advisor counts the number of bullish and bearish bars in a row.

The indicator paints a candle in color corresponding to its direction once per day at a specified time

The indicator plots one vertical line per day in a specified moment of time

Consensus of Five indicator

Twenty RSI indicators in a single window.

The Expert Advisor applies iMA (Moving Average, MA), iRSI (Relative Strength Index, RSI) and Silence indicators. Martingale.

Brief description

MMI

MMI indicator

Since last fractal indicator

Vortex Trend indicator

Wick length indicator

The indicator plots one vertical line per day in a specified moment of time once per week

XFisher_org_v1_X20 indicator is able to color each line depending on its position relative to overbought and oversold areas

XColorFisher_org_v1_X20 indicator featuring background filling in overbought/oversold areas

ColorRSI_X20 indicator featuring background filling in overbought/oversold areas

Pendulum. Constant opening of positions.

1...282930313233343536373839404142...183