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

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
latest | best

This is the updated version of the indicator i uploaded previously at http://codebase.mql4.com/7121.

Indicator that shows profits and losses (in pips and money).

Indicator that shows trend and divergencies.

Intra-[Month,Week,Day,H4,H1 ...] Fibonacci. (Maybe) the most useful Fibonacci tool.

Automatic Andrews, Schiff or modified Schiff pitchforks.

Simply displays active hours (definied by the user).

ORDER MANAGEMENT FOR EA DEVELOPMENT - v1.5

Alerts you whenever there is a moving average cross

Wonderful for scalpers

Places OCO Order, One pip Limit Order and One Pip Stop Order on Metatrader 4 platform.

Backtest your ideas in ST with simple order initiation. 100% visual, no typing, just drop a horizontal line on the chart to order! Focus on your indicators and trade with ease. Has SL and TP lines as well as PC line for partial close. Externals: BSRa

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

Trend of 8 pairs on one chart

This indicator compares four types of regression (linear, quadratic, logarithmic and exponential) and chooses the one that best fits the data analyzed.

Kaufman Efficiency Ratio (also called "generalized fractal efficiency") according to Perry Kaufman books "Smarter Trading" and "Trading Systems & Methods".

Kaufman Volatility according to Perry Kaufman books "Smarter Trading"

A Notifier for I-Regr Indicator, It alerts when Price Breaks Up or Down I-Regr lines.N

Indicator which draws daily, weekly and monthly pivots, support and resistance levels.

This EA alerts you whenever there is a MA cross.

This indicator shows the % Daily Change of yesterday close with respect to actual price (Bid).

Variant of stochastic indicator, which filters false signals automatically.

Join me to develop this project. It has been my project for 2 years now and running.

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.

1...424344454647484950515253545556...95