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

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.

The Expert Advisor applies iADX (Average Directional Movement Index, ADX) and iBands (Bollinger Bands, BB) indicators

Moving positions to breakeven

The Expert Advisor follows iSAR (Parabolic SAR) indicator.

Brief description

The Expert Advisor is based on iCCI (Commodity Channel Index, CCI) and iMA (Moving Average, MA) indicators.

Impulse detector. The indicator applies MovingAverages.mqh

The Expert Asvisor uses iCCI (Commodity Channel Index, CCI) and iWPR (Williams’ Percent Range, %R) indicators, as well as custom DayImpuls indicator.

Trading system based on iAC indicator (Acceleration/Deceleration, Accelerator/Decelerator Oscillator, AC)

The inverted chart of the current financial instrument, displaying Ask and Bid price levels in the form of colored bars in the additional window

Brief description

1...282930313233343536373839404142...183