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

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

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

Double Smoothed Stochastic indicator

FanCCI Avg indicator

FanMA Avg indicator

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

BullsBearsEyes oscillator displayed as a color histogram, using volumes

BullsBearsEyes_Vol indicator with the timeframe selection option available in input parameters

JBrainTrend1 indicator with the timeframe selection option available in the input parameters

JMACandle indicator with the timeframe selection option available in input parameters

JMACandle indicator with two colored channels based on standard deviations from High and Low of the indicator candles

JMACandle_Chl indicator with the timeframe selection option available in input parameters

The function for moving an open position to a breakeven.

1...91011121314151617181920212223...168