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

icon

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

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).

Displays info about the SAR in relation to the selected candles on four different timeframes.

The indicator helps to use the Elliott waves, as described in the book "Trade Chaos" by Bill Williams.

Library for virtual trading.

The script deletes objects from the chart.

It's based on the simple CCI, it plots arrows for sell and buy signals on the chart.

Use on 1M charts. Manually choose Only Long, Only Short or Short and Long depending on market direction. Close open orders moving in the opposite direction.

Program for logging of non-market quotations from brokerage companies with MetaTrader platform. ADDED: Added ability to run your own script automatically in case of non-market quotations have place.

Many people asks to post a simple expert advisor. Here is it.

It works without losses. It uses the market inefficiency for the arbitrage.

The strategy is based on breakthrough of the maximum and minimum price values of the previous trading day.

It shows Stochastics for several timeframes in a single chart, also it calculates the average value.

A finer resolution channel made of three bar fractals.

It opens and closes positions using the crossing of the movable lines.

It shows a brief information about all of the positions opened. It can be useful, if yours expert advisor trades many positions simultaneously.

It reduces a lot of false signals using sensitivity tuning.

Just Close - Parabolic SAR

Record the performance of individual strategies real time in offline charts.

1...555657585960616263646566676869...101