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

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

3 EMA Crossover Indicator.

This indicator based on a 5 period simple moving average detects trends: if there is an uptrend then shows green bars, if there is a downtrend then shows red bars, if there is a weak trend then shows yellow bars.

Average Modified Moving Average.

Advanced ADX indicator.

The spread_on_chart indicator shows the current values of spread, stop and freeze levels.

The oscillator for intraday trading.

The indicator shows entry points according to AC indicator.

MACD indicator.

Plot the STOPD Price Levels based on user specified timeframe.

Typical zigzag indicator

Step Up and Down Forex Indicator draws the price direction movement with single arrow Up or Down on the trading chart.

DailyLines Vertical lines starting new Day with above name of the DAY. Period Separators with options to choose different styles.

The purpose of the present code is to demonstrate how easy it is to create color scales, color gradients and heatmaps with the MQL4 language and functions.

3 Dimensional MACD Ribbon.

ProfitInfo is an indicator to show in one window opened buy and sell trades of defined symbols and systems.

An indicator based on three moving averages.

The indicator loads as a Menu on the menu bar. Click the Symbol Menu to open or close the symbol list. Click a selected symbol to change the chart symbol.

This indicator combines Moving Average (MA) and Average True Range (ATR).

The indicator shows the channel.

This indicator draws three Donchian bands: up, middle and down bands based on which you can design your scalping system.

This indicator adds H3, H6, H8 and H12 time frames into your charts.

Camarilla Level Pivots.

Multi timeframe fractal indicator with "Extend_Line" and "Show_Validation_Candle" functions (compatible with MT4 build 600 or later).

Combine Candle sticks and Market Profile indicator.

This indicator will write the price of Pivot Point on the trading chart, ranging from Price Support 6 to Price Resistance 6. When prices change or pass one of Pivot Price level, the indicator will be given alerts.

Fibonacci Retracement Levels indicator draws Fibonacci Retracement Levels on the trading chart.

Scan for conditions in which you have an interest. Show where the condition arose historically on the current Symbol and timeframe. On a separate panel, show where the condition has currently arisen for any of your chosen symbols and timeframes.

The indicator ыimulates the full structure of the market profile system that described by "James Dalton" in his book "Mind Over Markets".

A tool to give us a better market perspective.

This indicator will calculate pips wins and losses for any pair with a parsar and doji star trading strategy. You can see pip targets and losses and see if you can find a winning pair with this. 5MIN charts are the best on current settings.

With this indicator you can follow the evolution of account profit.

Shown all TF candle direction on Chart.

This indicator is a modification of classical Awesome indicator. It computes the smoothed rate of change of two exponential means.

Where is the herd of Bulls and Bears within the candle? A candle does not show where most of the activity has been during the candle's timeframe. TFV does. TFV shows with 1 simple dot where the battle has taken place in the candle, where the trenches are

This indicator is a small modification of classical Fractals Indicator. You can choose the number or left/right bars to have a new top or bottom as well a shift parameter.

This is a indicator to see if you can find a trend by drawing a graph with bars counted.

Taking a Closer Look at the Workings of the ZigZag Indicator.

The indicator draws support & resistance levels based on the last MN1, W1, D1, H4 and H1 fractals.

Detects and displays the fixed value of Constant Range Bars/Candles.

Detects and displays the fixed size of Renko Bars/Candles on offline chart.

1...181920212223242526272829303132...61