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

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

One of the greatly smoothing trend indicators.

As I recall, this indicator had been written by OlegVS for МТ3, for determining the flat. If the price is inside the dotted channel - flat. And MaksiGen redesigned it for МТ4.

This indicator shows when to open and when to close by drawing 2 lines.

The "Camarilla Pivots" indicator. 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 that facilitates the interpretation of the Ichimoku signals.

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.

MACD2 generates bearish signals from three main sources. These signals are a reflection of the bullish signals - negative divergence, bearish intersection of the moving averages, bearish intersection of the center line.

The indicators that perform the chart ruling.

Linear regression is a mathematical method for determining the linear dependence between the variables. This technique is often used by analysts to identify the trend based on the time and price data.

The indicator of dynamic resistance/support level with a fixed channel.

In the case of weighted moving average, the latest data is of more value than more early data. Weighted moving average is calculated by multiplying each one of the closing prices within the considered series, by a certain weight coefficient.

The indicator shows the price points of reference.

Fast adaptive trend line is an estimate of the trend line.

JMA

The Jurik Moving Average indicator. JMA's improved timing and smoothness will astound you.

Useful for those who use the DeMark TD lines in trading. It draws TD points, plots TD lines, calculates the current values of TD lines, calculates the targets.

The indicator shows the fractals of different time periods on one chart (with different colors). Only М15, Н1, Н4, D1 are used.

The Hi/Low indicator shows how close the current value of the parameter is to the minimum and maximum values over a certain time interval.

It is not recommended to open a position when the histogram is red. If all indicators give entry signals, the final check is done according to this indicator. The histogram must be green.

HMA

Based on the use of a slightly modified Hull Moving Average (HMA).

The indicator draws the slow and fast ССI and colors bars for determining patterns and trends.

The indicator allows the trader to understand market relations.

The indicator displays the number of ticks inside the candlestick.

The unique FX_FISH indicator is widely used by the Western experts to trade in the foreign exchange market, stock market, and others.

Plotting principle - digital filtering.

(Fast Adaptive Trend Line)– the «fast» adaptive trend line is calculated using a digital low-pass filter with a small cutoff period.

A simple indicator of dynamic support and resistance levels.

System concept: The Donchian Channels are quite popular among the trend following systems.

The operation logic is as follows: Once a local maximum\minimum has been determined several horizontal lines will be drawn. The white one is an entry point, the following lines in its direction are targets. Naturally, the first one is the most reachable.... Red line is a stop line.

This indicator is a conversion of the Darma indicator set from MT3 to MT4.

Originally the DT mode was used by klot in his DT-ZigZag.mq4 indicator.

DM

The "Directional Movement" (+/-DM) indicator. Developed by Wilder to improve the PTP indicator.

This indicator help you keep 3 different timeframes on the screen to see the price action clearly on both short term and long term without switching buttons.

This is an indicator which draws Fibonacci levels as indicator indexes.

PriceAction indicator based on indicating Price Action candles. It indicates each candle type by different colored histogram bars.

Buy and Sell arrows for Alligator signals.

This indicator will write value degrees of the lastest position of Price / MA / WPR / RSI / Stochastic at the current Timeframes.

Show multi timeframe Moving Average on one chart.

Harami slightly modified.

Simple and clean panel that shows RSI values on all timeframes with Oversold and Overbought notification.

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

1...91011121314151617181920212223...61