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

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 correlation coefficient between the quotes charts of two currency pairs.

Indicator Weekly_HILO. It represents HiGH and LOW prices.

A try to formalize three parameters of a candle - the upper, lower shadows and the body.

The indicator informs about that the price is approaching to support/resistance line in 3 positions.

It's a complete analog of indicator LSMA

TEMA and DEMA are next of kin

The MACD indicator is built on the basis of RSI that, in its turn, is built on MA.

Besides already fixed bars, the indicator shows the intermediate static positions of the ZigZag indicator. It will be helpful for those developing systems based on ZigZag.

An expanded version of the Normalized Volume indicator. Added means facilitating visual analysis of the indicator's values.

The indicator is build on the basis of moving averages. Its main feature is entering/leaving signal - the indicator's line is colored in a certain color signaling for the user to buy or to sell. The accuracy of the signal is very high.

Trading on news.

Indicator Otcfx_b-clock modified V3.2. Another version of the recommended indicator.

Reversal indicator. It represents 3 lines of different colors showing the trend speed on the current, the nearest larger and the next larger timeframe (TF).

Another version of popular ZigZag.

An original indicator that shows buying/selling signals.

A standard indicator Fractals, that doesn't redraw the lasr fractal....

The standard linear regression channel and support/resistance levels.

Indicator Price and Volume Trend (PVT), like On Balance Volume (OBV), represents the cumulative sum of trade volumes calculated considering close price changes.

The indicator shows the trend. A code example for candlesticks colored in four different colors according to the trend strength.

The indicator displays signals to buy/sell.

Indicator that predicts possible reversal points.

The indicator colors candlesticks.

The indicator colors bars.

Indicator Tro_Range.

Very simple indicator PLdot. It's been even optimized.

Indicator of the normalized volume

CustomCandle draws candlesticks of a larger and, perhaps, non-standard (for MT 4) timeframe in the current chart.

Market Profile is a tool used by many Futures traders.

Another version of a recommended indicator.

Indicator BreakOut_Panca_eagle.

Indicator LinearRegSlope_v1.

Indicator Heiken_Ashi_Ma_T3.

Indicator has a rekomendatsionny nature. Shows signals on the basis stohastika.

A simple indicator will be useful for beginners. Even the present optimization.

Shows when to sell and when to buy, but not so simple.

Another indicator showing recommendations for each currency pair and period.

Indicator Triggerlines Shift Modified.

Indicator colours prices of certain areas hh: mm_start before hh: mm_finish.

The indicator shows the volatility of a currency pair. This knowledge may be very helpful when using one strategy or another.

The indicator colored in the AC/AO style with disabled zero bar. It is proposed not to display the forming bar of the indicator, but to show only a signal line of the bar being formed.