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

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

Trend Signal indicator

Zero Lag RSI indicator

Zero-Lag EMA indicator

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

XWPR_Histogram_Vol_Direct indicator with the timeframe selection option available in input parameters

XWPR_Histogram_Vol_Direct indicator provides alerts, sends email and push notifications at the incoming trading signals

The indicator paints candles going beyond the Hans_Indicator_Cloud channel expansion

The indicator of expanding time zone corridors with the background color filling and the channel Hans_Indicator_Cloud_System average line. The indicator provides alerts, sends email and push notifications when the formed corridor expansion is broken

The indicator of expanding time zone corridors with the background color filling and the channel TimeZonePivotsOpenSystem average line. The indicator provides alerts, sends email and push notifications when the formed corridor expansion is broken.

Expert Advisor based on iRSI (RSI) and iMA (Moving Average, MA).

Simultaneous opening of two oppositely directed positions

Working with pending Buy Stop and Sell Stop orders. The Expert Advisor is based on iCCI (Commodity Channel Index, CCI) indicator

The trading system based on the signals of the Hans_Indicator_Cloud_System indicator

The trading system based on Hans_Indicator_Cloud_System indicator signals with the possibility to set a fixed position holding time

The trading system based on TimeZonePivotsOpenSystem indicator signals with the possibility to set a fixed position holding time

Trading system based on XWPR_Histogram_Vol indicator signals

The trading system based on XWPR_Histogram_Vol_Direct indicator signals

Two identical trading systems (for long and short positions) based on the signals of the VortexIndicator indicator, which can be configured in different ways within one Expert Advisor

Two identical trading systems (for long and short positions) based on the signals of the ColorMETRO indicator, which can be configured in different ways within one Expert Advisor

Two identical trading systems (for long and short positions) based on the signals of the ColorMaRsi-Trigger indicator, which can be configured in different ways within one Expert Advisor

MA with filter

Average Percentage True Range indicator

Average Percentage True Range indicator with MA adjustments

Coral indicator

Two identical trading systems (for long and short positions) based on the signals of the AdaptiveRenko indicator, which can be configured in different ways within one Expert Advisor

AdaptiveRenko indicator with the channel background filling and additional display of the NRTR line using colored icons allowing users to visually track trend signals present on a single bar

DSS

Double Smoothed Stochastic indicator

FanCCI Avg indicator

FanMA Avg indicator

FoM

Freedom of Movement indicator

MACD Flat Trend indicator

Normalized Moving Average Slope indicator

Sine Weighted MA indicator

Smoothed RSI indicator

Slow RSI indicator

Time Averaged Price indicator

Time Averaged MA indicator

Trend Lord indicator

Two identical trading systems (for long and short positions) based on the signals of the UltraFatl indicator, which can be configured in different ways within one Expert Advisor

AdaptiveRenko_Cld indicator with the timeframe selection option available in input parameters

1...242526272829303132333435363738...183