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

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

Account Balance, Equity, Margin, Free Margin + Account Profit: position anywhere on chart - hide any item - enhanced user preference options.

TheGreedyPig Average Daily Range Indicator calculates 5, 10, 20 days and shows them on the chart. I found this on a Forum, updated, modified the Indicator I found.

This indicator shows signals triggered using Fractals and the original ZigZag indicator. Signals are never -ever- repainted and is an useful tool to study the real behavior of the ZigZag indicator.

This indicator shows signals from two different Zigzags without repainting, and allows you to study the real behaviour of the zigzag indicator as a trading tool over time.

The support and resistance levels are determined. It provides the values for TP and SL.

The ideas from the article 3 Methods of Indicators Acceleration by the Example of the Linear Regression" is implemented in this indicator.

Trade with right risk !

This multi-timeframe capable moving average discounts prices far from the average. It is smoother than SMA but follows price similar to an EMA of the same length.

This indicator throws visual and verbose buy/sell signals according to Bill Williams Trading in the Zone methodology and Alligator.

This indicator is based on the article: Getting Clear With Short-Term Swings by Ron Black

This code simply display ask-bid value.

Simple Daily pivot.

Center of Gravity Indicator plotted on MACD values in sub window.

Butterworth filtration.

SuperSmooth filter

MACD using gaussian filtration

Calculates pip difference between Current price and SL & TP price. Places Text labels at SL & TP lines: Order Type, Ticket number, SL & TP price, Pip calculation and Pip label.

Updates: 1. Order Type Discrimination 2. SL+TP and OE line price. 3. Enhanced user defined labels. Calculates pip distance between Order Execution price and SL & TP price

StDev Bands with gaussian smoothing

Rainbow through gaussian refirtration

This indicator is calculating numbers of ticks and average time between ticks for each minute in the current hour.

Notarius - trend indicator with alerts on the basis of price averaging.

This version 2 of Multi currency pair Indicator. It includes an optional trend line and the color of the label has been changed to red to make it visible on default chart template.

This indicator watches the major currency pairs to find the status of the current candle (Bullish or Bearish) of USD, EUR, and GBP compared to other currencies such as EUR, JPY, GBP, CHF, AUD, and CAD.

This indicator use in cross ( es. EURAUD, GBPAUD, EURGBP, ect) depends of correlation of currency. Usually I use with timaframe Daily. But I think can to use in another timeframe. Important can use in commodity and stocks.

Calculates pips between Order Execution price and and Stoploss or/and Takeprofit price.

The InsideBars indicators can be used for trading with breakout Strategies.

Oscillatior indicator that counts Up bars (Close-Open) and Down bars (Open-Close).

Based on two MA.

Displays the trades from the history as visible lines on the chart

yesterday market close european market or NYSE close price

Two modified COG indicators. Center of Gravity on Stochastic in sub window and enhanced On Chart COG.

This is the Figurelli RSI automatic gain version, so input parameters is the same as original Welles Wilder RSI (i.e. period setup). The indicator figures out the gain value based in minimal and maximal values inside the sample and period programmed.

The indicator is similar to Bollinger Bands (this same idea), but it uses GruchaAvarage instead of MA for counting.

Based on MACD.

In my opinion, Welles Wilder RSI (Relative Strength Index) is a great momentum oscillator that works fine for small periods values (from 2 to 20). So I did some changes to it performe as good for greater periods, like 120, introducing a gain variable.

Price levels Call / Put the lines of support / resistance.

Many consecutive Heiken Ashi candles of the same color often indicate a soon and harsh trend reversal. This indicator shows the number of consecutive same color candles. So you can see overbought and oversold situation at first glance.

Average Directional Movement Index with Standard Deviation

Индикатор показывает дивергеницию на стандартном стохастике.

1...232425262728293031323334353637...63