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

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.


This indicator helps to move charts one by one to the the front, just like slide show,and make your hands free.

A channel based on standard deviation of close price.

This is a binary options simulated trading indicator on MetaTrader 4 client, novice traders can use to practice trading strategies, program interface have simplified Chinese and English.

Tipu MACD is one the popular indicators in the Market. The original code for Tipu MACD is modified by removing compatibility with Tipu Panel. This version of Tipu MACD is open for everyone who is interested in developing an Expert Advisor.

Automatic Fibonacci with ZigZag Base.

RSI accumulated (floating levels).

Forex indicator for MetaTrader 4 with show double line of linear regression with position degrees and trend alerts.

Laguerre RSI with Laguerre filter.

Precision trend (histo) - MetaTrader 4

Precision trend for MetaTrader 4.

Detrended Synthetic Price (oscillator).

Detrended Synthetic Price (bars form).

Detrended Synthetic Price (histogram form)

Experimental indicator I wrote for myself. It's made to show some reference (it's more like a rifle scope, than a rifle). Main components are pip scale, ATR/pivot, MA level, RSI, and spread alert. Can be used on any timeframe, but since it's made for scalping it is somewhat adjusted for M1-M15.

One of the best indicators about with a slight tweak to make it less noisy. Shows ZigZag lines to help spot cycles and draws Fibonacci lines to indicate support and resistance levels.

DSL - DMI oscillator

This indicator detects the currencies in the chart and compares the current close value in all the pairs of the currencies trying to understand if the currency is strong or weak.

This indicator can show you the weekly/daily/hourly/... progress on a lower timeframe. High, low, middle and/or open-lines can be configured individually.

Vidya zone (metatrader 4).

Schaff trend cycle - adjustable smoothing.

Quantile bands.

Dsl (discontinued signal line) - stochastic.

Dsl (discontinued signal lines) - RSX

Dsl (discontinued signal lines) - MACD.

Dsl (discontinued signal lines) - RSI (MetaTrader 4).

NonLag smoothed inverse fisher transform of RSX.

By using this indicator you can see the normalized price of any chart!

Displays current bid price and % change of (open price of) current bar or X previous bars, also High, Low, and range.

Automatically draws Fibonacci retracements on chart.

Pivot indicator. Standard, Fibonacci, Camarilla, Woody's, Demark. Calculates pivot points from previous bar of chosen period (M5 - MN).

This code was written as an indicator. It adds top and bottom margin to the chart. Both can be adjusted separately.

This is a simple indicator that plots Signal History on the chart.

Moving Average based on Ultimate Oscillator. It calculates weighted average of three moving averages (Simple, Exponential, Smoothed or Linear Weighted).

Code based on MetaTrader 4 Moving Average indicator.

MetaCOT 2 CFTC ToolBox Indicators is a set of MetaCOT 2 indicators which provides access to data from CFTC reports. MetaCOT 2 supports COT reports, Disaggregated COT, TFF and CIT. All indicators are available in source code and can be used to build your trading system.

Holt's double exponential smoothing - the trend component (mt4 version).

Holt's double exponential smoothing with linear forecasting.

This indicator shows how much time remaining to the next bar opening.

Phase accumulation adaptive MACD - completely adaptive MACD

The indicator displays the moving average for the selected timeframe.