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

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

Automatic EMA envelope.

It is the bbsqueeze indicator but with OsMA as momentum.

This indicator shows the future movement depending on similar movement in the past.

This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

This is the updated version of the indicator i uploaded previously at

Indicator that shows profits and losses (in pips and money).

Indicator that shows trend and divergencies.

Intra-[Month,Week,Day,H4,H1 ...] Fibonacci. (Maybe) the most useful Fibonacci tool.

Automatic Andrews, Schiff or modified Schiff pitchforks.

Simply displays active hours (definied by the user).

Wonderful for scalpers

Trend of 8 pairs on one chart

This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

Kaufman Efficiency Ratio (also called "generalized fractal efficiency") according to Perry Kaufman books "Smarter Trading" and "Trading Systems & Methods".

Kaufman Volatility according to Perry Kaufman books "Smarter Trading"

A Notifier for I-Regr Indicator, It alerts when Price Breaks Up or Down I-Regr lines.N

Indicator which draws daily, weekly and monthly pivots, support and resistance levels.

This indicator shows the % Daily Change of yesterday close with respect to actual price (Bid).

Variant of stochastic indicator, which filters false signals automatically.

Power Wave Oscillator.

Indicator shows buy and sell regions based on combination of Bollinger bands and Keltner channels.

Daily trend indicator to show up to 6 pairs and arrows on your chart.

Two similar indicators (one in main chart, another in separate window) to show when you're missing historical bars from your chart.

Line indicator Parabolic SAR for the current Time Frame and the next one

The indicator shows the arrows point of entry into the position according to the Urban Towers Scalping Strategy.

This indicator relies on price action alone - does the price break a previous High or Low?

Modified version of famous Bollinger Bands.

MA accelerated with CCi and ATR, easy to stop divergenses on CCi

Collect and analyze real-time spread data.

Mirror indicator in the chart. Entry Buy when Red line above Blue line dan Entry Sell when Red line below Blue line. For the Exit try to combine my mirror others indicator.

This indicator shows the session of the four major forex markets:Sydeny,Tokyo,London and New York. It is helpful for day trader.

XIT_FIBS indicator automatically plots Fibonacci lines on current chart. Lines have retracement values and price.

Shows custom Timeframes on the Main chart

Zigzag with a simple, clear and natural principle of work. By the Close prices. Without redrawing.

The MACD Ichimoku indicator uses the Ichimoku structure but applied to MACD values. It tells an entire story in itself which is one of the Ichimoku system strengths.

This is a normal MACD with Histogram. It's really simple coding but helpfull. I'm not testing on MT5 but i think it's ok with that. Let me know if you're tested.

This Indicator gives you a clear S & R of Custom Timeframes....Good for Swing Traders

Overbought / Oversold

Simly Calculation of Price changes over x period. Overlay with fast MA and slow MA for smooth lines

A very useful indicator to show trend of 4 currency pairs on your charts.