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

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 shows computer time resolution. Normally it is about 15-16 ms. This is important, for example, to copy positions from other MetaTrader 4.

KNJ ZigZag with value at pivots (highs/lows).

Indicator that shows candle strength.

Indicator that shows higher timeframe candle on current timeframe.

This is a graphical indicator based on slope-direction-trend indicator that has been published under several other forms.

Show full information: price, symbol, timeframe, date, time, spread, swap, stop out level, your name...

The RSI indicator has the ability to display a single window of RSI values of another timeframe defined by the user.

Trading Volume indicator shows the volume of buying and selling trades on the current bar or on average of specific number of last bars as you want . Both volumes are shown simultaneously with green and red colors for buying and selling trading volumes respectively.

This indicator helps to determine swing point highs and swing point lows.

Tipu Renko Live is a modified version of Renko Charts that can be plotted on a normal time frame.

Simple indicator which displays High and Low 3 days ago.

StochPosition is an indicator for MetaTrader 4 based on Stochastic Indicator, which shows the position and direction of Stochastic in M5 timeframe up to W1 timeframe.

In the futures markets data on trade volumes a reported with a one day delay. To compensate for this, many analysts use the tick volume indicator (tick volume).

Parabolic SAR Indicator was developed for analyzing the trending markets.

The Ang Autoch HL.v1 indicator. Draws a channel.

The indicator colors rising and falling candlesticks.

The XOdiagram 1 indicator. It plots the Х0 charts by close prices.

The Momentum Indicator measures the change of price of a financial instrument over a given time span.

The ADXdon indicator. Another version of the ADX indicator, which shows the strength of the trend.

The indicator shows the gaps between the closing price of the previous bar and the opening price of the current bar.

Indicator 5_34_5

A modified version of the FlatTrend indicator, shows the beginning and the end of a flat.

Relative Strength Index technical indicator.

The Ikarakatica indicator. It shows when to buy and when to sell.

This indicator version was created using the code for Omega, written by John Ehlers

Example of an equity indicator based on the market profile

Three-Line Break charts. This method has been described by Steve Nison in the book "Japanese Candlestick Charting Techniques". "Three-Line Break" combines the qualities of the "tic-tac-toe" charts and the standard line charts or bars.

A version of the Stochastic located right in the price window.

The Standard Deviation Channel is plotted on the basis of the Linear Regression Trend.

Another version of determining the pivot point of the next day.

The ADXm indicator, unlike the traditional one, allows to see the positive and negative waves of the trend. The method for working with this indicator is the same as with the traditional one.

The indicator shows when to sell and when to buy. But it is not so simple.

Quite interesting method for plotting a channel. Despite the obvious plotting primitivism, it can be useful during the flat level analysis (for example, if you had no access to the terminal in a while, and it is necessary to assess the past events quickly).

The indicator displays the channel.

Displays the probable direction of the price movement in future.

Paints the bars in the color corresponding to the current trend. Based on ADX.

Displays the High and Low price for the specified number of bars.

The RSI based on the MA values. Not as twitchy.

The chart layout in X-points reversal.

This indicator is based on the first version of Sidus trading method. It shows market entry points.