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

Adaptive ATR

Used to compare 2 currencies on one chart, the Original indicator will recenter its calculation on every bar, and hence the price will keep shifting up and down and so the historical relative values do not remain constant. This indicator was modified so that the 'center' or initial relative reference point stays fixed and does not update each bar. It will only reinitialize when the indicator is reloaded or settings are changed.

Currency Index that calculates evenly on all 7 major pairs. Can also change base currency. Based on No Nonsense Forex podcast.

Arrow trends by iBearsPower and iBullsPower indicator for MT4.

Indicator Bears and Bulls Power for MT4 together in one separate window.

Volatility ratio

Three Moving Averages Convergence/Divergence - Indicator for MT4

The code consists of lines created according to the opening, closing, low and high values of prices.

Divides whole levels into Halfs and Quarters.

Trend indicator

Shows what % the current ATR is relative to it's historical value.

Improved version inspired by RSI_candles by © mladen 2018 https://www.mql5.com/en/code/20968

Trending Indicator MACD with coloured Histogram to detect trend and retracements in that trend.

Adaptive Moving Average - AMA

Variance calculated using no-loop method

Variance (Welford’s method for computing)

User may enter up to 50 symbols from their market watch in either a long or short basket for viewing. The symbols for the chart can be changed to any symbol in the display with a click on the symbol. Statistics including ATR for the chart period, points gained or lost from a weeks start and position gains or losses and lots exposure are displayed. The statistics week may be changed with simple clicks on the display, and the display may be dragged and dropped to different locations. The load on quote processing is kept low by simply posting an event that starts the processing for a display update.

Hull moving average (non-repainting version)

Simple decycler oscillator

Sell relative strength index (SRSi)

This indicator is a tool to show history orders on the chart. Indicator show open time and price, close time and price and profit in pips on the chart. It helps the trader to see all history orders which are opened either manually or by an automated system on chart. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/33657

This indicator uses Bollinger Bands lines to detect markets trend. It's a very useful tool for manual trading. Furthermore, it is possible to use the indicator with ATR as a filter, as well as the option to pop up an alert when a reverse trend occurs. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/6333

This indicator uses Moving Average to detect markets trend. It's a very useful tool for manual trading. It's better to use it with other technics as a complete system. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/6420

STOCH in MA is an indicator which applies the stochastic changes to the iMA. It can help to detect the trend of prices. For more information about the indicator, you can visit the product's page: https://www.mql5.com/en/market/product/26467

MACD in MA is an indicator to change color in iMA if iMACD is upper of zero (uptrend) or lower of zero (downtrend). It helps any trader to see the trend of pair. For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/25084

RSI in MA is an indicator to change color in iMA if iRSI crosses level up (uptrend) or crosses level down (downtrend). For more information about the indicator you can to visit the product's page: https://www.mql5.com/en/market/product/6446

CCI in MA is an indicator to change color in iMA if iCCI crosses level up (uptrend) or crosses level down (downtrend). For more information, you can visit the product's page: https://www.mql5.com/en/market/product/6444

It's an indicator to show some information about the account on the chart. For more information about indicator you can to visit the product's page https://www.mql5.com/en/market/product/7056

It is based on solar winds joy and modified based on that. It is giving some good performance

MT4 Indicator for Position Size Calculation

Fractals - adjustable period and prices

Volume indicator as modified by RonT, but histogram bar color will be red on a down candle, green on an up candle

This indicator uses various SMA to indicate a possible reversal point.

The indicator plots Pivot levels for 3 custom periods on chart.

Building a moving line by a polynomial of the 4th degree. Extrapolate a sine curve and its axis. One value on each bar is removed from the drawn lines and a sliding line of extrapolated values is drawn, which is not redrawn.

Indicator DayPivotPoint System with Signal and Alert for MetaTrader 4

ForexCandlestickPatterns with alert are forex indicators based on Japanese Candlestick Strategies.

iTrend_new is base on iTrend Indicator by MetaQuotes Software Corp. Update and modify by Roberto Jacobs 3rjfx @ 2019/03/18, for MT4 with Signal and Alert and options to display signal on the chart.

Separate window! Uses daily open price and current price (close price for closed candles) to compute % change for the day.

Uses open price on D1 timeframe and current price to calculate % change for the day, and comments it in the main chart window.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455