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

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

Non Lag Relative Strength Index for MT4 Eliminates unnecessary preliminary calculations on the built-in RSI.

This will create an offline chart for the ticks.

Indicator that displays the "strength" of each of the 8 major currencies (USD, EUR, GBP, CHF, AUD, CAD, JPY and NZD) based on the moving average trend of all 28 pairs that they are part of.

Stochastic MACD (metatrader 4 version)

Best Direction Indicator. Red Line means the market UP. Blue Line means the market Down.

Arrow for input and Smile for output.

Trend flex x 2 (metatrader 4 version)

TrendFlex indicator based on February 2020 TASC article published by John Ehlers - metatrader 4 version

Reflex indicator (based on February 2020 TASC article by John Ehlers - metatrader 4 version)

Simple indicators detect engulfing candle patterns, but with a moving average filter

I recently needed an indicator that, once placed in a window, is able to change the Time Frame of all open windows. In addition, I wanted this indicator to be able to react to Metatrader's Time Frame selection bar. Despite my various searches, I couldn't find anything suitable. So I decided to develop my own indicator. I propose it to you here.

This indicator watches and displays the biggest spread the pair generated. It is recommended to run at least 5 days, from Monday to Friday, to get a big picture of the broker's spread.

Previous day&week High/Low

RSI with Bollinger Bands calculated on it

Dynamic Pivot Indicator, provide all timeframes and extra timeframes

volatility, flat

this is RSI indicator that has two moving average inside the window

Simple pivot indicator

Ichimoku Kinko Hyo is an indicator that tracks the equilibrium of momentum and identify likely areas of support and resistance. The Ichimoku chart is composed of five (5) separate indicator lines. These lines work together to form the complete "Ichimoku picture".

The indicator shows BID-ASK-SPREAD information on chart

iWPR+ is an iWPR %Range function with a positive value.

This indicator places a mark (a semaphore) at the zig zag for each of 4 zig zag evaluation lengths.

An old forum indicator that's been updated

Indicator calculate the average price

The code is based on indicator ZigZag which is in-built in MT4. I have changed it so that it isn't calculated on highest Highs and lowest Lows, but instead uses highest Close and lowest Close of chart price history. See attached chart for differences: ZigZag (red) versus ZigZagClose (yellow).

The indicator is shown in a histogram the ADX uptrend and downtrend uses a different way. You can set period of indicator and bars count averages levels.

The indicator is shown in a histogram the Bands uptrend and downtrend uses a different way. You can set period of indicator and levels for trend.

The indicator is shown in a histogram the MACD uptrend and downtrend uses a different way. You can set period of indicator and levels for trend.

The indicator is shown in a histogram the Stochastic uptrend and downtrend uses a different way. You can set period of indicator and levels for trend.

The indicator is shown in a histogram the Bull and Bears uptrend and downtrend uses a different way. You can set period of indicator and levels for trend.

The indicator is shown in a histogram the ATR uptrend and downtrend uses a different way. You can set period of indicator and levels for trend.

The indicator is shown in a histogram the CCI up and downtrend uses a different way. You can set period of indicator and levels for trend.

The indicator is shown in a histogram the RSI up and downtrend uses a different way. You can set period of indicator and levels for trend.

It is an indicator of technical analysis that aims to assist every trader in his manual trades.

It is a manual trading system consisting of 5 indicators. We buy when all indicators are in blue, and we sell when all indicators are in red. Indicators auto turn chart in M5 time frame, there is a switch to skip it.

Simple utility that makes use of offline charts to facilitate training by enabling bar-by-bar display - both forward and backward, as well as reset to a pre-defined date/time.

12345678910111213...61