Watch how to download trading robots for free
Find us on Telegram!
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

icon

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.

Submit your code

Displays what was reached first - Low or High for the current bar.

The trend strength(phase) indicator.

The indicator calculates the indices of the USD, EUR, GBP, CHF, AUD, CAD currencies and displays the index specified in the parameters in a separate window.

The idea of the indicator is to select each currency from currency pairs separately. The currencies are measured in relative units (points). The sum of all currencies at any given time is equal to zero.

Displays the overbought or oversold states of the currencies relative to each other.

Chandelier Exit calculates the trailing stop based either on the maximum value of the maximum price or the maximum value of the close price over a specified period.

The ideal indicator for those who like to work "by levels". It clearly shows the reversal level, support/resistance levels for the current day.

The indicator demonstrates the trend stops with multicolor dots. In order to distinguish the targets the BrainTrend2Stop uses Blue and Red dots.

The indicator demonstrates the trend stops with multicolor dots.

The Avg Daily Range indicator.

A simple indicator that demonstrates the general principle of displaying multiple indicators from different timeframes in a single window

Small indicator for monitoring the history of closed and the status of open orders on the chart. Red - unprofitable order, green - profitable.

Belongs to the Pivot group.

Calculates the pivot point.

A version of the Stochastic located right in the price window.

ZigZag with unusual properties (specify the length when plotting).

An interesting attempt to make levels based on ZigZag values. This indicator is strongly recommended for those who can not "feel" the market. The indicator gives a very clear view of the market.

An attempt to combine ZigZag and ATR. And to use it for determining the trend phase.

Gann angles inscribed in ZigZag.

The 5 34 5 indicator

The FTLM hist indicator is one of many digital indicators that emerged after some of the articles by Vladimir Kravchuk.

SMI

The SMI indicator. Based on the "Momentum, Direction, and Divergence" book by Blau.

This indicator belongs to the oscillator group.

The TRIX indicator represents the rate-of-change percentage, smoothed by the exponential МА of the closing price.

When applied to financial markets this method is usually used to determine the moments of prices extreme deviation from the "standard" level.

Smoothing for the ADX indicator. Recalculates the specified number of bars at every tick (not optimized)

The first version of the wlxBWWiseMan indicator. Displays the candles of trend changes.

The indicator is based on comparison of the current price to six simple moving averages with the periods 10, 20, 30, 40, 50 and 60. The values of the indicator are fixed: -100, -66, -33, 0, 33, 66, 100.

The script plots one Fibo line based on the latest ZigZag. This is a remarkable tool to get rid of unnecessary work for those who constantly place Fibo grids (the majority).

The indicator plots four different Fibo lines based on four latest ZigZags. Useful when applied on the higher timeframes.

Superposition of Stoch and RSI. One of the most commonly used indicators. This is the most fortunate and useful indicator.

This indicator adds a smoothing curve to the MACD.

One of the most interesting modifications of Bollinger bands. It shows the standard deviation in the bar representation.

Another indicator based on the «Bollinger bands». Good for displaying «Where the trend is, and where the flat is».

Literally, "Bollinger bands with a fractional ratio of deviation."

Murrey Math (ММ) is a trading system suitable for any markets. The MM system comprises two main components: geometry, used for measuring the price movements of the specified market, and a set of rules based on the Gann technique and Japanese candlesticks.

One of the indicators that display the session times.

The idea of this indicator is quite simple: draw lines to remember the current phase of the market and who "rules" the market.

One of the indicators I recommend to novices as the entry indicator.

As it can be seen, the indicator is perfect. Simply buy at the second black bar and sell at the second red bar. And take all the movement literally pip by pip.

1...101112131415161718192021222324...61