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

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

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

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

CCI_Candle_Vol indicator with additional averaging of the resulting candles

RSI_Candle_Vol indicator with additional averaging of the resulting candles

Flat/trend indicator.

EA based on FlatTrend indicator. You can also include working time.

TrendManager indicator with the timeframe selection option available in input parameters

Defining a signal based on several indicators: iMA (Moving Average, MA), iMACD (Moving Average Convergence/Divergence, MACD), iStochastic (Stochastic Oscillator), iOsMA (Moving Average of Oscillator, OsMA) and iAO (Awesome Oscillator, AO). The indicators are surveyed in a certain sequence.

The Expert Advisor sets pending Buy Stop and Sell Stop order at a specified time.

iDeMarker (DeMarker, DeM) indicator averaging using MovingAverages.mqh

The trading system based on XCCI_Histogram_Vol indicator signals

The trading system based on the signals of the XRSI_Histogram_Vol indicator

XRSI_Candle_Vol indicator showing a breakthrough of its zero line using candles, color labels and audio signals

The EA is based on iAO (Awesome Oscillator, AO) and RAVI (Range Action Verification Index) indicators.

The EA is based on the intersection of two iMAs (Moving Average, MA) but with an additional filter: price from ENUM_APPLIED_PRICE

XCCI_Histogram_Vol_Direct indicator with the timeframe selection option available in input parameters

XRSI_Histogram_Vol_Direct indicator with the timeframe selection option available in input parameters

The trading system based on the Iin_MA_Signal indicator signals with an ability to change the volume of a forthcoming trade depending on the results of the previous trades for this trading system

Iin_MA_Signal indicator in NRTR form

Trading strategy based on iAMA (Adaptive Moving Average, AMA) and iRSI (Relative Strength Index, RSI) indicators. Martingale is applied.

The trading strategy based on two oscillators: iCCI (Commodity Channel Index, CCI) and iRSI (Relative Strength Index, RSI).

The trading system based on XRSI_Histogram_Vol_Direct indicator signals

The trading system based on XCCI_Histogram_Vol_Direct indicator signals

Iin_MA_Signal_NRTR indicator with the timeframe selection option available in input parameters

"Previous Candle Breakdown" Expert Advisor.

1...333435363738394041424344454647...183