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

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

Indicator Murrey_Math_Lv with the levels shown as labels that can be changed in its input parameters

Working with pending Stop orders

Two identical trading systems (for long and short deals) based on the ColorPEMA 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

A trading system based on the signals of indicator ColorPEMA_Digit with the possibility to set a fixed position holding time

Indicator ColorPEMA_Digit_r with the timeframe selection option in its input parameters, limiting the computer resources used in its calculations within the entire chart and on the current bar

Indicator ColorPEMA_Digit with the timeframe selection option in its input parameters

A trading system based on two indicators iMA (Moving Average) and one indicator iStdDev (Standard Deviation, StdDev)

Indicator Three timeframes MFI with Average

Indicator Double-deviation Bollinger Band with cloud

Three indicators from different timeframes: iMACD (Moving Average Convergence/Divergence, MACD), iAlligator (Alligator), and iRSI (Relative Strength Index, RSI)

Indicator Stochastic Overlay

Indicator RSI Overlay

A moving ColorPEMA_Digit with the limitation of the computer resources used for its calculations on the entire chart and on the current bar

Indicator MACD Overlay

A five-fold exponential moving average that displays the most recent value as a price label with the possibility to round the indicator levels to the required number of orders

Indicator Advanced Fractal Envelopes

Indicator Advanced Fractal Overlay

A trading system based on breaking through iFractals

Indicator ZigZag Oscillator

Indicator Multi timeframes Stochastic RSI

A price channel based on a bar of user-defined duration (timeframe).

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

1...151617181920212223242526272829...183