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

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.

latest|best

Power Wave Oscillator.

Indicator shows buy and sell regions based on combination of Bollinger bands and Keltner channels.

The Expert Advisor places stop orders and waits for breakdown of the last day or time period.

Use the tester as Simulator

This script uses the Windows API to modify the "From:" and "To:" fields within the strategy tester according to user input. For this script the strategy tester should already be open. Tested on Windows 7 64 bit. If you are using another version of win

Daily trend indicator to show up to 6 pairs and arrows on your chart.

Two similar indicators (one in main chart, another in separate window) to show when you're missing historical bars from your chart.

Line indicator Parabolic SAR for the current Time Frame and the next one

Drop the script on your chart to send a screenshot to twitpic with or without a message

This library implements two simple HTTP GET / POST function and does not require external dll(s).

Expert advisor that trade in the trend of EMA and buy/sell signals get from Williams %R

The indicator shows the arrows point of entry into the position according to the Urban Towers Scalping Strategy.

This indicator relies on price action alone - does the price break a previous High or Low?

Modified version of famous Bollinger Bands.

Opens and closes orders using parabolic SAR signals

MA accelerated with CCi and ATR, easy to stop divergenses on CCi

Collect and analyze real-time spread data.

Mirror indicator in the chart. Entry Buy when Red line above Blue line dan Entry Sell when Red line below Blue line. For the Exit try to combine my mirror others indicator.

EA Based on MAM_Crossover Indicator by pramono72 Code base: http://codebase.mql4.com/7113

Simply 450% profit

This indicator shows the session of the four major forex markets:Sydeny,Tokyo,London and New York. It is helpful for day trader.

Uses movements of the relative strenghts index to find long-opportunities. Profitable (and especially reliable) parameters for short-positions couldn't be found

Simple indicator that automatically plots Fibonacci lines on current chart. Lines have retracement values and price.

Shows custom Timeframes on the Main chart

Zigzag with a simple, clear and natural principle of work. By the Close prices. Without redrawing.

This script will set your stoploss at the fractal level of your choosing. Money management built in helping take some of the guess work out of your trading.

The MACD Ichimoku indicator uses the Ichimoku structure but applied to MACD values. It tells an entire story in itself which is one of the Ichimoku system strengths.

This is a normal MACD with Histogram. It's really simple coding but helpfull. I'm not testing on MT5 but i think it's ok with that. Let me know if you're tested.

EA designed on the idea of the indicator Nik_PSAR_2B. EA works on the Symbol = "EURUSD" and Period = M1.

This Indicator gives you a clear S & R of Custom Timeframes....Good for Swing Traders

Overbought / Oversold

Simly Calculation of Price changes over x period. Overlay with fast MA and slow MA for smooth lines

A very useful indicator to show trend of 4 currency pairs on your charts.

Working as scalper our long trading manage by settings. For scalping use 1-25 signal period, for long trade 25-100 and change period. Always use 2 % money management using this software!!!!

A tool to auto insert preset Take-Profit and Stop-Loss limits when an order is executed. Specially when doing scalping manually where you need quick setting of stop limits.

An indicator based on Lows and Highs of last 16 candles + RSI reading. Describes trend as Flat, Trending Up, Breaking Out Upwards, Trending Down, Breaking Out Downwards.

Tick chart in separate window with Ask line and candle price lines.

The On Balance True Range Indicator is essentially based on the On Balance Volume indicator but uses the Average True Range Period 1 instead of Volume.

The indicator shows a messsage then the price crosses the lines, titled the "Support" and "Rezistans" on the chart.

Zigzag lines are built on fractals

1...313233343536373839404142434445...83