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 Code Library for MetaTrader 4 - 64


The largest library features codes of free trading Expert Advisors, technical indicators and scripts. With the available applications you can trade in automated mode and analyze price dynamics. Use the library of codes to learn more about financial market sentiments.

Download free applications, test them and run in your MetaTrader 4. You can access them from the MetaTrader 4 platform and the MetaEditor development environment.

Submit your code

Timeframe indicator. Customizable timeboxes on any chart.

In this field give a brief description of your script (1-2 sentences).

Продолжение темы "..взгляд по другому...", на этот раз работаем с Haiken Ashi.

This indicator informs you about the depth of the trend.

An alternative version for counting MA Angle.

Индикатор MACD, совмещённый с гистограммой MACD, усовершенствованный для использования импульсной торговой системы, предложенной А. Элдером.

If you have placed order and suddenly have to leave: don't panic! This EA will set initial Stop Loss, and after your position will reach settable profit threshold, it will start to apply proportional Trailing Stop.

Program for logging of non-market quotations from brokerage companies with MetaTrader platform.

The program-simulator v.2 for perfecting strategy, testing of indicators and trainings of trading skills.

This indicator informs you about the trend and offers a good entry possibility.

Indicator showing the Min/Max values for the last X bars

This EA can help users to manage opened orders. It takes line objects and indicator curves as tp and sl. When the price reaching them, it will close the orders.

This script is based on the 4th dimension of the Bill Williams chaos trading system. The advancement is that this script takes advantage of the Heiken Ashi candles.

Dollar Index - user can change parameters. Default same as USDX contract. Opens as a custom indicator in MT4.

This custom indicator waits the price to reach specific zones and the custom indicator takes decisions for buying or selling.

The supersensitive indicator of fractals.

The program allows you to compare quotes of any two MetaTrader brokerage firms.

The indicator shows the ranges of price movement during different trade sessions.


Clears the chart of all objects with the name beginning on the specified prefix

Fractals + owersold/overbouth levels . Optymizable:)

Signals beginning buy (sales). Intersection indicators WPR and RSI.

Indicator to display timezone for all active forex markets.

This indicator shows the last candle of all timeframes (M1,M5 ... D1) together with the actual price.

The indicator with market entry signals and stop lines

Цветной анализатор спектра

The GRID10 indicator will draw a grid on a chart using grid lines positioned and separated at a convenient power of ten. The grid is constructed appropriate to the range of the symbol being plotted on the chart.

This function calculates the heights in pixel of all panes in a window.

The adviser allows you to try manual trading on the historical date (NEW VERSION / BUGS CORRECTED / NEW FUNCTIONS ADDED)

Variable Index Dynamic Average indicator

Adaptive RSI indicator

Вертикальный горизонтальный фильтр (VHF) показывает, в какой фазе находится рынок: в фазе направленного движения или застоя.

The program-simulator for sharpening strategy, run of indicators and trainings of trading skills in general.

This indicator uses Heiken Ashi method to enable traders to keep their trades the maximum time.

With this indicator you can check data mining news from while analysis a symbol Graph.

Now combines 14 different indicators and 7 timeframes in an easy to read meter for any FX chart. Includes inbuilt History viewer. Fully configurable signals & indicators.

The adviser allows you to try manual trading on the historical date

Calculates multiple moving averages trend