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.

latest|best

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.

Advanced Bollinger Bands indicator.

The indicator displays the total lot and profit for the current instrument.

Derivative of the Cauchy difference

Cauchy difference.

One of the divergence subtypes.

Indicator that displays the change in price as a percentage relative to the Open price of the current candle.

The indicator displays the price pivot point.

This indicator displays the current spread of the instrument and the time left until the current bar closes.

The OandaX OrderBook Chart indicator is designed for displaying the history histogram of orders or positions history on the instrument with reference to the chart scale.

The indicator is designed for testing manual strategies and for practicing working according to the strategy. It provides operation reports presented as a table, chart, and additionally saves templates with and without the markup.

The indicator is designed for calculating and displaying the options levels on the screen.

Modification of the standard Awesome Oscillator by Bill Williams. Recommended timeframe - М15.

Displays important parameters, which can change during news release or on Fridays before closing.

This indicator plots bullish and bearish gaps, and crosses/hides closed gaps.

Shows multi timeframe (M1, M5, M15, M30, H1 , H4, D1) RSI indicator in a separate window.

Indicator detects the Inside Bars and marks them high/low (no redraw).

Awesome Oscillator, customizable, 4 colors (as seen on some AIMS YouTube videos), and some more parameters.

This indicator is based on the moving average, but it doesn't use any standard moving average indicators.

Buy or sell just by looking at the "arrow" as a signal. Very easy and simple.

PricePosition indicator provides the position of price in the point of angle when the price rises above (BUY) or falls below the angle section line (SELL).

Calculates profit (loss) of the current orders on the symbol.

Modified version of FF Calendar Indicator with new features.

Continuously records tick data in format "DateTime, Bid, Ask, Volume" even after restart.

This indicator provides an easy way to find out the current direction of a pair.

A good oscillator for helping you count Elliot waves.

Shows simple channels for daily, weekly, monthly timeframes.

ATR MA Oscillator - Oscillator is based on the difference between the ATR oscillator and its signal line.

Simply displays ticks on the price chart

12345678...52