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

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

A trading system based on indicator iMA (Moving Average, MA).

Three PEMAs from three different timeframes on a single chart

A colored cloud made of two PEMAs from different timeframes on a single chart.

Displaying the latest closed values of indicator Bollinger Bands® with colored rectangles and background filling

The EA uses two indicators iMA (Moving Average, MA), Fast and Slow, and one indicator iBands (Bollinger Bands, BB).

Signal (Alert) at crossing horizontal line by the price

The HLCrossSigForDeMarker is considered as a trend indicator since it is intended for "catching" trends. However, it's a pretty complex and informative indicator that allows excluding the psychological and emotional effects from trading.

Indicator XXDPO_Candle_Alerts with the timeframe selection option in its input parameters

Indicator XXDPO_Candle with the timeframe selection option in its input parameters

Indicator XXDPO_Candle can provide alerts and send email and push notifications when trading signals occur. Possible signal options

The EA compares the difference between the Close price of bar #1 and the Close price of bar #Candle shift.

Ilan based on indicator iMA (Moving Average, MA)

Indicator RSI Rendiment

Indicator Smoothed ADX

Indicator MACD OsmaX

Indicator Wide/Narrow Spread bar

Indicator Price volume divergence

Indicator Thrust Bar

Indicator Dynamic Zone RSI

Advance Parabolic Time/Price System

Indicator Multi timeframe Gann Hi Lo Activator

Indicator Non lag MACD

Indicator Non lag average

Indicator Spread Oscillator

Indicator Micro Pivots

Indicator Multi timeframes Bill Williams Accelerator Oscillator

Indicator Market Session

Indicator Two Stochastics with MA Smoothing and Convergence Divergence line

Protecting a position (hedging)

Comparing OHLC on timeframe M5

Three timeframes. One iMA (Moving Average, MA) and one iStochastic (Stochastic Oscillator) on each timeframe

Indicator XXDPO represented as candles

An EA based on indicators iMA (Moving Average, MA) and iStdDev (Standard Deviation, StdDev)

A trading system based on several indicators from several timeframes.

The indicator displays the information on the current trends, using the ColorPEMA_Digit indicator colors from ten different timeframes

Indicator ColorPEMA_Digit_Trend_x10 displays the directions of the ColorPEMA_Digit indicator signals from ten different timeframes from the bar specified in the indicator inputs

An Expert Advisor based on two indicators: iFractals (Fractals) and iAlligator (Alligator).

Indicator Murrey_Math_Lv_Arr limiting the computer resources used in calculating and displaying the indicator on the chart

A panel to close positions based on class CDialog. Buttons based on class СButton.

An Expert Advisor for placing Stop Loss and Take Profit.

1...141516171819202122232425262728...183