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

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 unique FX_FISH indicator is widely used by the Western experts to trade in the foreign exchange market, stock market, and others.

Plotting principle - digital filtering.

(Fast Adaptive Trend Line)– the «fast» adaptive trend line is calculated using a digital low-pass filter with a small cutoff period.

A simple indicator of dynamic support and resistance levels.

System concept: The Donchian Channels are quite popular among the trend following systems.

The operation logic is as follows: Once a local maximum\minimum has been determined several horizontal lines will be drawn. The white one is an entry point, the following lines in its direction are targets. Naturally, the first one is the most reachable.... Red line is a stop line.

This indicator is a conversion of the Darma indicator set from MT3 to MT4.

Originally the DT mode was used by klot in his DT-ZigZag.mq4 indicator.

The "Directional Movement" (+/-DM) indicator. Developed by Wilder to improve the PTP indicator.

This indicator help you keep 3 different timeframes on the screen to see the price action clearly on both short term and long term without switching buttons.

This is an indicator which draws Fibonacci levels as indicator indexes.

PriceAction indicator based on indicating Price Action candles. It indicates each candle type by different colored histogram bars.

Buy and Sell arrows for Alligator signals.

This indicator will write value degrees of the lastest position of Price / MA / WPR / RSI / Stochastic at the current Timeframes.

Show multi timeframe Moving Average on one chart.

Harami slightly modified.

Simple and clean panel that shows RSI values on all timeframes with Oversold and Overbought notification.

Displays what was reached first - Low or High for the current bar.

The trend strength(phase) indicator.

The indicator calculates the indices of the USD, EUR, GBP, CHF, AUD, CAD currencies and displays the index specified in the parameters in a separate window.

The idea of the indicator is to select each currency from currency pairs separately. The currencies are measured in relative units (points). The sum of all currencies at any given time is equal to zero.

Displays the overbought or oversold states of the currencies relative to each other.

Chandelier Exit calculates the trailing stop based either on the maximum value of the maximum price or the maximum value of the close price over a specified period.

The ideal indicator for those who like to work "by levels". It clearly shows the reversal level, support/resistance levels for the current day.

The indicator demonstrates the trend stops with multicolor dots. In order to distinguish the targets the BrainTrend2Stop uses Blue and Red dots.

The indicator demonstrates the trend stops with multicolor dots.

The Avg Daily Range indicator.

A simple indicator that demonstrates the general principle of displaying multiple indicators from different timeframes in a single window

Small indicator for monitoring the history of closed and the status of open orders on the chart. Red - unprofitable order, green - profitable.

Belongs to the Pivot group.

Calculates the pivot point.

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

ZigZag with unusual properties (specify the length when plotting).

An interesting attempt to make levels based on ZigZag values. This indicator is strongly recommended for those who can not "feel" the market. The indicator gives a very clear view of the market.

An attempt to combine ZigZag and ATR. And to use it for determining the trend phase.

Gann angles inscribed in ZigZag.

The 5 34 5 indicator

The FTLM hist indicator is one of many digital indicators that emerged after some of the articles by Vladimir Kravchuk.

The SMI indicator. Based on the "Momentum, Direction, and Divergence" book by Blau.

This indicator belongs to the oscillator group.