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

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.


Entry BUY after Red Line crossing up the Blue Line and exit before the Red Line crossing down the Blue Line. Opposite position : entry SELL after Red Line crossing down the Blue Line.

Полосы Боллинджера на основе цифровых фильтров

This indicator is a combination of a classic RSI and even more classic MA indicators. I hope it will be more stable and with more Profit/Loss Ratio.

Optimize trading with a single moving average. This indcator tests each moving average and automatically finds the moving average which fits best to the current market

Indicator MaEnv_02B will be helpful to BUY, SELL or stay out of the market.

Draws a fibonacci study on the visible portion of your chart, and basic downtrend and uptrend lines. Shows the basic price action geometry.

This script gives You information about time left to end of the bar.

Ichimoku indicator based on RSI values that displays in your sub-window.

Numeric representation of how many times each price occurred during a given period, Use on a 1 min chart, enter number of hours and minutes you want to look back. Useful in determining actual support and resistance levels.

This indicator is a spin off of the Doji Reader 2 found in the code base. I have made several changes such as it is now capable of being used in code for coding use, not just as a visual indicator. I also took out several un-needed code that was redunda

Get the High Median and Low values of each timeframe, use them all or one at a time, pick a specific one it is up to you and your needs. The family of indicators will be here for your use

Auto updating fib retracer showing zones for range trading/breakouts.

This indicator shows the change in percentage between the Close of the current period and the previous one.

The High, Median, Low of every timeframe in MT4, 24 lines of varying colors, showing the highs lows and median based on price behaviors.

Parabolic SAR for current TF and 3 next TFs with Alert. This indicator made by request of maks741 and with help of Nikolay.

KMSI is short for Kolier Market Sessions Indicator. It can be use to check time periods of market sessions.

The purpose of this indicator is to highlight the price zones that had the most activity : the hottest zones.

Draws arrows when RSI returns back from extreme zone

Displays the stength of a currency based on 7 of its crosses. Origianally done by Brooky a few pages back in the code base.

Simple Trend Detector. Use the same as RSI and DeM.

The purpose of this indicator is to highlight the price zones that had the most activity : the hotest zones.

Shows low high from the last bar from other timeframe. Timeframe can be changed

Simple Momentum x 2

This indicator reflects the positive difference between the High and Low of the period.

This is the basic version of the Average Change indicator

Indicator that shows two resistance levels, 2 levels of support and pivot, they calculated the traditional way.

It showed the peak/bottom at rsi14

This indicator uses the position and direction of 7 pairs to gauge the overall effect that (by default) the USD currency may have on the pair that you are trading. Base currency can be changed.

The indicator will show how many ticks occurred every minute of an hour and the number of points.

Average Change Indicator

This indicator shows both powers of the Bull and Bear, the market volume excluded.

Close-Low indicator by mt-coder

Four Legs Indicator

This indicator trys to indentify the dominanting power in the market.

This indicator shows the interaction between price open and the period's volume.

This indicator is based upon the Channels indicator. It calculates, percentagewise, whether price action is towards the top or bottom of the channel.

This indicator calculates the high / low channel that price action has been moving in, for a given currency pair and a given (parameter) number of candles. This indicator, on the one hand, is interesting because it allows you to see the "road" that price

Bollinger Bands on the current TimeFrame and from next three "Up"

2 indicators(MA_Support and Para_B) in 1. TimeFrame from M1 to H4.

Bollinger Bands on M1 from major TimeFrames