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

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

Parabolic Stop-And-Reversal system with Alert is base of the Indicator Parabolic by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

KeltnerChannels is base of the Indicator Keltner_Channels by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal. Hopefully useful for fellow traders.

FractalsAlert is base of the Indicator Fractals by MetaQuotes Software Corp. with alert and email alert and option to display trader info and signal.

MACD indicator, red color mean bullish, blue color mean bearish.

A dynamic version of the standard Heikin Ashi indicator (code compatible with both MQL4 or MQL5).

This is just another version of the well known Super Trend indicator. The code is simplified but it has the same output on the chart screen.

Displays a line when the markets are opened.

Relative Strength Levy can be abbreviated as RSL.

Creates Fibonacci Retracement on the chart based on the ZigZag indicator. Tap the "X" or "Z" key to scroll through each swing in the ZigZag, to the right or to the left. For those who do not like clutter on their charts. The indicator can scroll to the right until it disappears from the chart, but it is still there. Scroll left to bring it back. This is one of the most useful tools in my trading toolbox!

AutoFibLinesMrVB indicator draws automatically the Fibonacci levels on the chart.

Tipu CCI is one of the popular indicators in the Market. The original code for Tipu CCI is modified by removing compatibility with Tipu Panel. This version of Tipu CCI is open for everyone who is interested in developing an Expert Advisor.

Calculate Pivot Points based on H1 bar, according to normal formula and Fibonacci, with color filling.

This indicator is based on original RSI, but more features are added to general signals and watch the strength of the price movement. The main purpose is to general buy/sell signals using smoothed RSI and its MA.

The indicator is based on the idea that before the price and the indicator itself turn, the indicator rate slows down first and only then turns.

This is the semaphore indicator with arrows based on BB and RSI.

This is the semaphore indicator of candles that highlights the candles on the chart, which have same direction like all candles for your chosen timeframes.

Displays the relative strengths of chosen currencies on one chart.

Get entry signals from specific candles based on your rules.

Displays a Histogram of Momentum, ATR, CCI or RSI indicators relative to a specified level.

RSI modified to show the excess of the market (more than 70 and less than 30), and show you the divergency with the price.

Center of Gravity Modification 2018.

Indicator displays the value of defined stop loss and or take profit in the deposit currency.

This indicator allows you to see the Moving Averages from different timeframes on the same chart. It helps you to spot the dynamic levels of support and resistance. It uses a custom window with check boxes to show/hide the different Moving Averages without need to access the indicator settings window.

Displays the number of each bar - both, relative to the most current bar and in absolute terms from the beginning of the chart.

This custom indicator will show you 28 pair's daily candle range, High-Low range, candle bullishness or bearishness from real tick market. So you can understand the overall market situation very short time. You can change the default timeframe from Daily to any period and default candle (bar) number from 0 to any previous number. Also you can open the required symbol by clicking the symbol button.

Previous Candle Hi-Lo is used to check the last candle multi-timeframe position relative to the current price.

As simple Regression Channel code for MetaTrader 4.

Shows when two or three consecutive bull or bear candles of a certain size print after qualifying the stochastic level of the initial candle in the series. New in version 3 /* Changelog 2-4-19 Added 50% line to indicator box - Ignored changing the indicator lines individually since mql does not have a built-in language convention to create this change would require too much additional research and effort. Fixed error with the DodgerBlue lines not showing, the problem was due to using DodgerBlue instead of clrDodgerBlue in the code to indicate color, should be fixed now. */

Get a grasp of the current trend by candle colors.

Indicator to trade divergence. One of 30 indicators can be selected.

The indicator marks the days of the week with a colored histogram in the chart sub-window.

Relative Strength Oscillator or RSO is an Oscillator version of RSI.

This indicator allows you to define a checklist for you to manually check and confirm your strategy before entering into a trade.

This is a multi timeframe indicator for Bollinger Bands. With it you can plot the Bollinger Bands of the higher timeframes without changing the current chart. This allows you to more clearly understand the price context by seeing the levels of the other timeframes on the same chart.

This indicator helps to move charts one by one to the the front, just like slide show,and make your hands free.

A channel based on standard deviation of close price.

This is a binary options simulated trading indicator on MetaTrader 4 client, novice traders can use to practice trading strategies, program interface have simplified Chinese and English.

Tipu MACD is one the popular indicators in the Market. The original code for Tipu MACD is modified by removing compatibility with Tipu Panel. This version of Tipu MACD is open for everyone who is interested in developing an Expert Advisor.

Automatic Fibonacci with ZigZag Base.

Accumulated RSI that uses floating levels or quantile bands.

1...34567891011121314151617...63