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

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.


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.

This EA implements a trailing stop buy and a trailing stop sell. It places an order above the price and below the price. The sell stop order will fall with the price, the stop sell order will rise.

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

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

The system of multiple strategies "in the same package," with a virtual trading system to determine the rankings for each of the strategies (before open market order) and the library management of investment-capital.

Trailing orders (in person) and the total profit.

On a way to Grail!...

Strategy is based on simple rules. It can work on any currency pair. Best results are obtained with the lowest set TS. The strategy works with any broker, but works better with brokers who allow you to set the low TS.

Shows 4 sessions: Pacific, Asian, European, American.

Trades using two moving average crosses.

Opens and closes orders using parabolic sar signals.

One more step to perfect.

EA trades on a large market movements, and does not uses any indicators.

This is my own best EA, in the main lines can be setted up many things.

Very simple scalping EA, no Indicators. Logic is based on very fast price movements.

Based on Zigzag Indicator.

These scripts will record and file a picture of the chart at the time of each trade executed with them.

Envelopes with MaOnArray and Average True Range.

Just like internet speed test can tell you your internet speed, SpreadProbe can measure ask/bid spreads on the go.

Basic on iStochastic. Show good area price for long/short.

Trend indicator.

Simple scalping system for m1-m5 timeframe.

Alerts on two moving average(MA) cross

Alerts you on every first parabolic SAR signal in a sequence.

A simple tick data collector written in MQL4 for you to collect tick data on any symbol you choose.

A new and improved version of LineOrder

An Expert Advisor designed to open and close respective orders at the first parabolic SAR signal.

Trades using MA crosses on all timeframes.

This Ea open buy/sell positions based on Grid, no size lot optimised works well on M5

A simple signal indicator that detects MACD Main line extreme value. It filters first pike and displays all after the first.

This simple EA sends hourly status e-mail and informed of the last closed order with some additional information.

Perfect solution for newcomers at coding. Allows to implement strategies with difficult stop-management. Yes, this thing need some "baking", i.e. editing, but you will like the result; especially if the strategy is already tested with hands.

Exponential average true range reduces the lag by applying more weight to recent prices.

A very clean system by Farshad Saremifar, Based On Pivots and ATR and Moving average.

A simple way of managing orders and other features through horizontal lines.

Make big deal!

Live trade monitor that scores up to 10 EA's at once, tallying Pips, Wins, Trades, PF and profits.