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

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.


It shows Stochastics for several timeframes in a single chart, also it calculates the average value.

A finer resolution channel made of three bar fractals.

It reduces a lot of false signals using sensitivity tuning.

Just Close - Parabolic SAR

This indicator for show most information about your account like : number , name , company , leverage , etc .

Modified version of Murrey_Math_Line v2

It shows two MACD with lines on the price chart.

New Design - New Opportunities.

The indicator shows current balance and positions on the chart

It's an instrument for spread monitoring for a real and synthetic currency pairs.

Indicator shows color lines between two MA crosses

Classical MACD with Impulse System.

Indicator shows entry and exit points for all deals and account statistics on the chart. It is very useful for trade analysis.

Indicator shows a different Forex sessions and the market hours of the exchanges.

Indicator shows vertical lines at last week bar.

It calculates and shows Stop Loss levels (for Buy and Sell positions) using the method described by Bill Williams in his book "Trading Chaos". A new feature has added: now all it can be analysed in history.

It shows a trend table for a several timeframes in the bottom left corner of the chart.

I've modified the "Next price predictor" posted by gpwr to allow any developer to create its own BPNN predictor easily, even without understanding how a neural network works. So easy even beginners can do it. Included: MA predictor and RSI predictor.

This oscillator is based on Ehlers' Two Pole Super Smoother, converted as an oscillator, and smoothed using Ehlers' Instantaneous trendline.

When the price is approaching to the Signal Lines, the indicator sends Alert.

Display Candles from a higher timeframe on top of your current chart (ex: see H1 candles on top of a M5 line chart)

Probably the best Awesome Oscillator (AO) available with zero line crossover and signal line alerts.

MA-like indicator based on Hodrick Prescott Filter

Automatic marking of the chart by the time and the timer.

Индикатор Аппроксимации Синусоидальных волн.

Улучшенные полосы Боллинджера

Timeframe indicator. Customizable timeboxes on any chart.

In this field give a brief description of your script (1-2 sentences).

Продолжение темы "..взгляд по другому...", на этот раз работаем с Haiken Ashi.

This indicator informs you about the depth of the trend.

An alternative version for counting MA Angle.

Индикатор MACD, совмещённый с гистограммой MACD, усовершенствованный для использования импульсной торговой системы, предложенной А. Элдером.

This indicator informs you about the trend and offers a good entry possibility.

Indicator showing the Min/Max values for the last X bars

This script is based on the 4th dimension of the Bill Williams chaos trading system. The advancement is that this script takes advantage of the Heiken Ashi candles.

Dollar Index - user can change parameters. Default same as USDX contract. Opens as a custom indicator in MT4.

This custom indicator waits the price to reach specific zones and the custom indicator takes decisions for buying or selling.

The supersensitive indicator of fractals.

The indicator shows the ranges of price movement during different trade sessions.