Download MetaTrader 5

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

MQL4 Source Codes of Technical Indicators for MetaTrader 4 - 13

The library of technical indicators for MetaTrader 4 developed in MQL4. Regardless of the market (forex, securities or commodity market), indicators help to represent quotes in an accessible form for easy perception.

This section contains thousands of applications that analyze financial markets using different algorithms. Conventionally, they can be divided into a few categories: trend indicators, oscillators, volume indicators and so on. In addition, there are sets of indicators based on algorithms by famous financiers. For example, Bill Williams' indicators and likes of it. All of them are characterized by different parameters of reliability, efficiency, lagging and others. There are more than 2000 indicators for technical analysis: trend indicators, reversal indicators, indicators of levels, predictors, scalping indicators and many others.


The indicator displays the values of the Moving Averages (MA), deltas between the values and deltas between МАs.

Tick chart of the price/spread/volume. Saves tick data in a file.

Price(%)Range is the indicator for the MetaTrader 4, which calculates the price movement based on percentage High (Highest) and Low (Lowest) price on 100 bars.

This is a simple indicator showing pivot only for H1, H4, daily, weekly and monthly.

SBVolumeAvg is a Forex Indicator (MetaTrader 4) for calculating Average Volume on the Swing Bars by a ZigZag trend line that is bounded by two vertical lines.

This indicator helps you display spread on a chart.

It synthesizes any symbol if you have the source symbols and then makes a real time virtual chart. Same concept with Triangle Hedge (SymbolSynthesizer.mq5 but for chart display in MetaTrader 4.

Draw your preferred pivot formulas: Standard, Fibonacci, Camarilla, Woody’s and DeMark with 4 Support and Resistance lines.

Calculates volume for each currency on pair based on price movement.

Moving average with some extra features.

Simple indicator to show two levels of Standard Deviation Channel on your chart.

This indicator helps determine the end and the beginning of trends based on the inclination of the matches.

This indicator will Draw Fibonacci Tools such as Retracement, Arc, Fan, Expansion, Time Zones. Based on ZigZag indicator.

A simple indicator, which informs the trader about the appearance of "Bullish Engulfing" or "Bearish Engulfing" candlestick patterns on all timeframes.

The indicator registers the price level breakout moments and the significance of these levels.

The indicator shows the High, Close and Low of the previous day, week or month with time shift.

Tick volumes drawn by days as a histogram of clusters.

Tick volumes of a specified interval drawn as histogram of clusters.

An indicator template that draws arrows on the chart.

Indicator with several Moving Averages.

Tick volume of the candlestick drawn as clusters.

Signal based on the ZigZag indicator.

A small improvement of the little known TVI indicator (

Collection of ticks with writing data to a file and plotting non-standard charts.

The channel indicator. It also displays the current channel levels as price labels and the type of the signal for making trading decisions.

The indicator displays the series of waves, breakthrough points and targets for Take Profit.

The indicator performs the calculation of the derivative of the price.

The lookup and display of the divergences of different classes based on the data of the base indicator.

The indicator marks the pin bars on the chart based on the parameters set.

This indicator downloads history of symbols which have open charts. It will no longer be necessary to wait for an update when switching timeframes.

Just a Donchian channel with slope. If xslope=0 it becomes the Donchian channel. It uses the moving average of Momentum.

This ZigZag indicator uses dual buffers to store high and low points.

Fibonacci indicator drawing levels on previous day.

Indicator S&R based on OHCL candles.

Traditional MACD indicator with a Momentum indicator and alarms. Allows customization of most of the parameters without having to dive into code.

My version of Squeeze Indicator for MetaTrader 4. This indicator is based on a strategy mentioned in John Carter's book, Mastering the Trade. It is also a fully improvised version of Squeeze_Break indicator by Des O'Regan.

Bollinger Bands with customizable moving average method and applied price.

This version of CCI indicator uses median line of the Step Channel indicator.

Money Management / Pivot / Daily Open / Support-Resistance / Grid / Information of all kind / Tendency indicator.

This indicator shows Step Channel based on volatility.