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


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

This version use Accelerator Oscilator as main indi to recognize the signal

This Expert Advisor will count all the pending orders for the chart it has been placed on.

Displays on the chart peaks of tick volume at exact time points

The Indicator analyses last 100 waves and shows its sizes, average volumes and average velocities (in pips/hour) for each wave.

Now with added options and features. pSAR Alert plays a sound whenever a first parabolic SAR signal appears.

Now with more options. Opens and closes orders on first parabolic SAR signals.

If you have a strategy to trade with it, You can use this EA and set Your Parameters And trade with this expert

This indi draws renko boxes on normal TF window.

This Indicator shows the current pair's current spread in the upper left corner.

Раскраска баров в зависимости от направления тренда.

An antimartingale which tries to maximise the gain/risk ratio. I have a 5 digits account, let me know if you have any problem with this.

This system use many methods to trade , you can trade about 52 different strategies,

EA based on the maximum and minimum price values of the previous trading day.

An expert advisor designed to alert you when every first parabolic SAR dot in a sequence appears.

An expert advisor designed to open and close orders at every first parabolic SAR signal i.e. when sequence shifts from below the price to above and vice.

alerts the user if the macd is above 0.0006 on 5m or below -0.0006 on 5m

A trading system based on the Vortex Oscillator.

A trading system based on the Trading Idea presented in the article "The Vortex Indicator" published in the January 2010 issue of Technical Analysis of Stocks & Commodities.

An oscillator version of the Vortex Indicator

This indicator appears in the January 2010 issue of Technical Analysis of Stocks & Commodities.

A brand-new version of Channel ZZ indicator

The script allows to use MetaTrader4 as netting platform. It has some advantages compared with MetaTrader5.

Две версии индикатора на упрощённом алгоритме перцептрона

Many informations about the MARKET and CURRENCY in ONE SUBWINDOW such as: symbol, spread, swap, freezlevel, money magament, time to end each bar and times of opened bars, global markets times open/close in GMT and more...

The universal multi-chart of the currencies, with the changed list of currencies, a range of display, the period and position in a window.

It saves the current expert parameters for all the experts attached to charts.

It shows the information about 4 Moving Averages in a separate window.

The moved panel with the indicators of B.Williams, for strategy Trading chaos. It shows a direction of indicators AO, AC, and MACD.

Happy New Year 2010

The Renko chart has been created by the Japanese Traders. The main feature of the Renko Charts is that it doesn't use the time and volume.

This indicator calculates and displays the Dollar Index and 2 definable moving averages. Edited 18 September 2015 - updated link to official description and calculation from ICE Futures U.S.

The indicator Back to the Future draws forthcoming bars in a tester, in advance...

a stochastic_oscillator based indicator.

It shows support and resistance levels

It allows to work with reversed symbols (for example USDGBP)

It's easy to use, just input your lotsize, stoploss and take profit values (in points) and trade.

It combines two ema's, rsi and adx to give you buy or sell signals.

Create a Fibonacci retracement object automatically on your graph.

Jays candle display is a multi candle displaying indicator. It displays the swing and body of candles on different timeframes from one minute up to one day.

The script shows the price level, where total profit for all of the opened positions will be non-negative (without loss level, or break-even price level).