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

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

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

The indicator looks for bars without wicks. Uses the drawing style DRAW_COLOR_HISTOGRAM

The indicator looks for bars without one or two wicks. DRAW_ARROW drawing style.

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

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

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

XDeMarker_Histogram_Vol_Direct indicator with the timeframe selection option available in input parameters

JFatlCandle_Chl indicator with the timeframe selection option available in input parameters

JFatlCandle_Chl indicator with the timeframe selection option available in input parameters

The trading system based on XDeMarker_Histogram_Vol_Direct indicator signals

Strategies based on iMA (Moving Average, MA) and iRSI (Relative Strength Index, RSI)

X2MA indicator in the form of candlesticks

Skyscraper indicator with the timeframe selection option available in input parameters

The Expert Advisor based on iStochastic (Stochastic Oscillator) indicator and OHLC analysis

Fixed version of the Skyscrape indicator

Skyscraper_Fix indicator with the space between the average and NRTR lines filled with color

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

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

The trading system based on the JFatlCandle 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

The trading system based on the X2MACandle 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

Skyscraper_Fix indicator with the timeframe selection option available in input parameters

Skyscraper_Fix_x10 shows the direction of Skyscraper_Fix indicator signals from ten different timeframes from the bar defined in the indicator input parameters

The Expert Advisor based on iMA (Moving Average, MA) and OHLC

The indicator shows information on the current trends, using the colors of the Skyscraper_Fix indicator from ten different timeframes

The Skyscraper_Fix_HTF_Signal indicator shows the trend direction or a signal for performing a trade generated by the Skyscraper_Fix indicator at the chosen bar as a graphic object with colored indication of the trend or the trade direction, generates alerts or sound notifications if there are signals for performing trades or sends push notifications to a smartphone.

iMAX3 indicator - Fast Trend Detector

Bands Fill indicator

Bollinger Bandwidth Delta oscillator

Breakdown oscillator

Buying/Selling Pressure indicator

Skyscraper_Fix_Signal indicator shows information on the current trend using the values of the Skyscraper_Fix indicator with a fixed timeframe.

Two independent trading systems applying Skyscraper_Fix and AbsolutelyNoLagLWMA indicators in a single Expert Advisor

Consecutive Advance/Decline indicator

Extreme TMA Line indicator

Internal Strength indicator

The Expert Advisor sets pending Buy limit and Stop limit orders.

Market Direction Indicator

Murreys Math Oscillator

Single Stream SAR indicator

Standard Error Bands indicator

12345678910...148