Download MetaTrader 5

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

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.


Doji candle histogram detector with alert & email notfication.

Second-by-second candle timer not dependent on incoming ticks. New candle alert option. Automatic Broker GMT and Daylight Saving Time adjustment.

This is an indicator for finding the strongest trend each day, suitable for intraday trading or a swing trading.

Saves all historical bar data (Open timestamp, Open, High, Low, Volume) and every new tick to CSV of your choice.

Save your indicator values and Open, High, Low, Close, Volume data to a csv file of your choice.

This indicator is used to monitor the movement of the previous candle from 1m to 1D timeframe.

ForexLine indicator provide signals for trade, white line (sell signal) and the blue line (buy signal).

Average of ATR (AATR) is simple but effective indicator to confirm any price action trading strategy.

The indicator for the analysis of CFTC reports.

The indicator shows current spread with color line.

BB_OsMA indicator is the OsMA indicator in the form of spheroid with a deviation as the upper and lower bands.

This indicator is a composite of several indicators: Fibonacci, Pivot Point, ZigZag, MACD and Moving Average which are combined in this indicator.

Main chart shows the overlay chart of 2 symbols - while subchart displays the price spread line with spreadfactor.

A simple label that shows information like Ask & Bid, OHLC prices, volume, spread, remaining candle time, local & server time.

This is the improved version of the "HarmonikManual", with more attractive and easier to use.

The indicator shows support and resistance levels.

The indicator shows the distance between the open price and 3 different exponential moving averages (EMAs) in pips.

Custom MACD indicator with 2 tone color (MACD Up and MACD Down colors).

MonEx indicator is the Weighted Close (HLCC/4) candlestick bar combined with ZigZag indicator.

A very simple indicator to display the difference in time between candles in seconds.

This indicator will show the name of the pattern by placing point XABCD manually and also will search the next Potential Reversal Zone (PRZ) automatically.

This indicator will show balance sheet for a year.

The indicator supports two functions: 1. Ask and Bid line customization(style, thickness) and 2. Second Broker spread comparison.

Usual MACD with showing volumes on it.

Trading multiple instruments across multiple timeframes (and multiple brokers) can result in the use of many different templates. An immediate means of template identification is expedient in order to avoid confusion, trading inefficiency and possible trading mistakes. This simple indicator accomplishes the required.

The indicator shows Moving Average and oscillator in a separate window.

The indicator allows to control the Strategy Tester speed.

"How much is a 1 pip movement on EURUSD (or any pair) worth in my currency?" - here's the answer!

Up/Down arrows drawn in chart window.

Graphical calculation of profit/loss from lot, or vice versa.

Flat indicator showing potential entry points.

This indicator shows High and Low points for certain timeframe.

This indicator shows good signals based on modified MA.

The indicator shows the information about indicator values and important levels.

This indicator exports the indicator values in CSV to use for MATLAB analysis with neural network, SVM, KNN, fuzzy.

Draws two labels: Open-Close and High-Low range of the last closed candle left of the current candle.

Possible uses: Mark session open/close, mark time of regular news release, any other relevant time.

The indicator draws candle objects in a separate window of any one of the following indicators: Percent Range, RSI, CCI, Price.

This indicator shows when to open positon.

NineTFMovement indicator gives an overview of the price movement on 9 timeframes (M1 to Monthly).