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

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.


TMA Slope indicator.

Smoothed RSI indicator.

Smoothed ATR indicator.

Smoothed CCI indicator.

The indicator plots trade history on the chart and account informaton.

Correlation(strength) between eight currencies & Gold.

Implementation of zero lag countdown timer.

Some basic information which every trader needs.

MACD Momentum indicator (The Red line is the Momentum 10 of the histogram MACD, smoothed 3).

This indicator helps to find possible support/resistance areas after a trend has developed.

A few oscillators (RSI, CCI & PercentRange) drawn in the chart window.

Once the price closes above or below the two moving (60 &100) a signal is generated. Signal must be generated ONLY in-case the price closes above/below the TWO lines.

BBWin is the Bollinger Bands® indicator in the separate window with trend lines.

The indicator shows candle end time and current spread.

Traces the output of indicators by buffer. Output can be changed on the chart by moving the VL left or right.

The indicator helps to find the correct trend before enter the market.

Trading information with Fractal trend.

The indicator calculates and draws the highest, lowest and median point of certain period.

This indicator will write value degrees of the lastest position of price at the current timeframes, and when position and condition of trend status was changed, the indicator will give an alerts.

3 EMA Crossover Indicator.

This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.

Average Modified Moving Average.

Advanced ADX indicator.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

The oscillator for intraday trading.

The indicator shows entry points according to AC indicator.

MACD indicator.

Plot the STOPD Price Levels based on user specified timeframe.

Typical zigzag indicator

Step Up and Down Forex Indicator draws the price direction movement with single arrow Up or Down on the trading chart.

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

3 Dimensional MACD Ribbon.

ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems.

An indicator based on three moving averages.

The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.

This indicator combines Moving Average (MA) and Average True Range (ATR).

The indicator shows the channel.

This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

This indicator adds H3, H6, H8 and H12 time frames into your charts.