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

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

Corrected moving averages

Relative volume trend

Relative price trend

RSI dual features Cutler RSI with standard RSI full formulas

Clarity index is a purely volume based indicator which is constructed on basis of volume, range and positive/negative candle count. It reflects the strength of trend with respect to volume.

MultiVote On Balance Indicator displays a higher resolution of trading volume activity to the regular On Balance Volume calculation.

New fisher to catch trend with indication UP and DN

Stock trading indicators. BIAS.

ADR,AWR,AMR,Draws Average Range Lines

The Stochastic RSI indicator (Stoch RSI) is essentially an indicator of an indicator. It is used in technical analysis to provide a stochastic calculation to the RSI indicator. This means that it is a measure of RSI relative to its own high/low range over a user defined period of time. The Stochastic RSI is an oscillator that calculates a value between 0 and 1 which is then plotted as a line. This indicator is primarily used for identifying overbought and oversold conditions.

Use the intersection of two moving average lines to draw a vertical line

Visual multi-timeframe trend indicator.

Draw Fibo Expansion

Catching the extreme change on candle.

Three-layer indicator Fibo Bars 2 by Ivan Kornilov

Identifies over-extensions in price

Draw the Camarilla pivot point levels

View price in MACD

DXYvsEXY_e1 is an optimized version of DXYvsEXY. Original code here: https://www.mql5.com/en/code/30714

Visualization of 3 previous daily bars with alarm.

An indicator that draws a Risk/ZReward Box Automatically on your chart

When MaxBand > MA of MaxBnd => SMART-ZONE HIGH When MA of MinBnd > MinBand => SMART-ZONE LOW You can set the bandperiod of Max/MIN Band, and the period and the method of M Aof Max/Min Band With different parameters, the indicator gives us the pivotal areas or the trend areas

Three mooving average of WPR indicator, you can set the indicator period, the mooving average period and the mooving average method.

in raw form for currency pairs and indices.

Hull moving average (ema based)

ATR adaptive SMA (Simple Moving Average)

Fully customizable: Period, TimeFrame, Color, and Price. Above 0: Chartreuse Below 0: Red Above 100: Marron Below -100: Dark Green

This indicator draws a trend-line directly on a chart. It uses the Theil Sen Estimation method to calculate the slope of the trend-line. Theil–Sen estimation is a method for robustly fitting a line to sample points in the plane (simple linear regression) by choosing the median of the slopes of all lines through pairs of points.

An oscillator that duplicates the chart of a selected asset in a separate window in three ways: line, bars and candles. This is essentially an indicator Bollinger bands, displayed in a separate window. In my opinion, it will be useful for beginners as a way to look at various technical signals from a different angle. This indicator helped me in an adviser for filtering unfavorable moments for trades.

Power of USD indicator shows actual strength of currency USD calculated of 7 pairs that contain USD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR USD, AUD USD, NZD USD, GBP USD, USD JPY, USD CAD, USD CHF.

Power of NZD indicator shows actual strength of currency NZD calculated of 7 pairs that contain NZD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR NZD, GBP NZD, AUD NZD, NZD USD, NZD CAD, NZD JPY, NZD CHF.

Power of JPY indicator shows actual strength of currency JPY calculated of 7 pairs that contain JPY. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD JPY, EUR JPY, GBP JPY, AUD JPY, CAD JPY, NZD JPY, CHF JPY.

Power of CHF indicator shows actual strength of currency CHF calculated of 7 pairs that contain CHF. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR CHF, USD CHF, GBP CHF, CAD CHF, AUD CHF, NZD CHF, CHF JPY.

Power of GBP indicator shows actual strength of currency GBP calculated of 7 pairs that contain GBP. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR GBP, GBP USD, GBP JPY, GBP AUD, GBP CAD, GBP NZD, GBP CHF.

Power of EUR indicator shows actual strength of currency EUR calculated of 7 pairs that contain EUR. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR USD, EUR GBP, EUR JPY, EUR AUD, EUR CHF, EUR CAD, EUR NZD.

Power of CAD indicator shows actual strength of currency CAD calculated of 7 pairs that contain CAD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: USD CAD, AUD CAD, CAD JPY, EUR CAD, GBP CAD, NZD CAD, CAD CHF.

Power of AUD indicator with average shows actual strength of currency AUD calculated of 7 pairs that contain AUD. Indicator can be used for strategies based on mean reversion and/or correlation. Included pairs: EUR AUD, GBP AUD, AUD USD, AUD CAD, AUD NZD, AUD JPY, AUD CHF.

This is an indicator on Daily Pivot Points and Support and Resistance levels.

12345678910111213...63