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


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

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.

EA Based on MAM_Crossover Indicator by pramono72 Code base:

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

XIT_FIBS indicator 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.