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

Indicator Stochastic RSI

Indicator Multi Timeframe Linear Regression MA with signal line

Indicator Linear Regression MA

Indicator 3 in 1 MTF Stochastic with MA Smoothing options

Indicator Multi timeframe Dynamic Trend

Indicator USDX vs Slope Direction Line

Indicator Float_Pivot_Smoothed_Digit_System with the timeframe selection option in its input parameters

Indicator Heiken_Ashi_Smoothed_Volatility_Volume with the timeframe selection option in its input parameters

A trading system based on two custom indicators: CCI Color Levels and RSI Custom Smoothing.

Indicator of Murrey levels in indicator buffers with the added visual text information on those levels, calculating the levels on a timeframe specified in the inputs

Indicator of Murrey levels in indicator buffers with the added visual text information on those levels

The EA focuses on the OHLC of timeframe W1

Indicator Stalin_Signal displays information on the current trend, using the values of indicator Stalin_NRTR with a fixed timeframe

A trading system based on indicators Custom Moving Average Levels and Stochastic Custom

A modification of standard indicator iStochastic (Stochastic Oscillator, STO) - now you can manage levels #1 and #2 from your EA.

A trading system based on three indicators iMA (Moving Average, MA) and two indicators iRSI (Relative Strength Index, RSI)

Summary of the Expert Advisor

Indicator Float_Pivot_Smoothed_Digit with the timeframe selection option in its input parameters

Displaying the latest closed values of indicator Float_Pivot_Digit with colored rectangles and background filling

Two identical trading systems (for long and short deals) based on the AdaptiveRenko indicator signals that can be configured in different ways 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

Indicator Float_Pivot_Digit with the timeframe selection option in its input parameters

Indicator Heiken_Ashi_Smoothed_VolatilityStep without rounding, multiplied by the averaged volumes

It calculates the Typical prices for bars #1, #2, and #3

An Expert Advisor for two currency pairs

Indicator Stalin_x10 displays the trend direction and enter signals of indicator Stalin_NRTR from ten different timeframes on the bar defined in the indicator input parameters.

Indicator MultiStalin_x10 displays information on the current trends, using the values of indicator Stalin from ten different timeframes

Working with pending Buy stop and Sell stop orders. Martingale.

QQE of Rsi(oma) - on chart

QQE of Rsi(oma)

QQE - on chart

Chande's DMI - volatility ratio adaptive

Corrected extended (volatility ratio adaptive) Wilder's double smoothed ema - multi time frame version

Corrected Wilder's double smoothed ema - multi time frame version

TRiX slope divergence

RSI slope divergence - multi time frame version

WPR with CCI

Accumulated volume pressure

McGinley dynamic average - using one of 4 types of averages

Donchian channel - extended, multi time frame version

1234567891011121314...168