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.

To post a new code, please log in or register
latest|best

This indicator is ZigZag based on Bill Williams Aligator

The GMT Time on chart indicator is written for users who like to see GMT Time on-screen. For convenience, This indicator code is written clearly and simple. Update 1: 16-5-2020 *Input font color *Input font size

The V Sync Chart Lite indicator is written for demonstration purposes and shows how it is possible to synchronize the object

Standart MACD Indicator but All Parameters like as FastMA, SlowMA and SignalMA parameters can be changed

The Correlation Indicator provides a smoothed bar to bar correlation value.

Trend indicator (separate window)

Trend indicator

Simple oscillator with a histogram.

Simply select one of the main currencies (AUD, CAD, CHF, EUR, GBP, JPY, NZD, USD) as "Currency" in the settings.

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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657