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.

latest|best

This indicator shows signals triggered using Fractals and the original ZigZag indicator. Signals are never -ever- repainted and is an useful tool to study the real behavior of the ZigZag indicator.

This indicator shows signals from two different Zigzags without repainting, and allows you to study the real behaviour of the zigzag indicator as a trading tool over time.

The support and resistance levels are determined. It provides the values for TP and SL.

This is a "conceptual" script that uses the WinINet functions to load a HTTP page directly from mql4, without a C++ dll

The ideas from the article 3 Methods of Indicators Acceleration by the Example of the Linear Regression" is implemented in this indicator.

Rewrites JForex csv data without the weekend candles and the seconds.

This EA is supposed to trade news and high market spikes.

Trade with right risk !

This EA doesn't open orders, it takes PICTURES every time you (or another EA) opens or closes an order.

This multi-timeframe capable moving average discounts prices far from the average. It is smoother than SMA but follows price similar to an EMA of the same length.

This indicator throws visual and verbose buy/sell signals according to Bill Williams Trading in the Zone methodology and Alligator.

This indicator is based on the article: Getting Clear With Short-Term Swings by Ron Black

WatchDog sends an e-mail when things go wrong, an order has opened or closed, on requotes, on log errors, on server shut down... Just drag the script in a chart window.

It is a Malty order Placer(4 LIMIT and 1 INSTANT). and good performed EA. It Works With THE Co-ordination of Different Moving Averages.

Opens specified orders at a specified time

The EA open position on Breaking S/R , it will make offsets if that was not a break

This code simply display ask-bid value.

EA scalper 1430% = 2011!!!

Simple Daily pivot.

This Robot uses the default zigzag indicator from Metatrader.

Close all trades after reaching defined profit or loss

Center of Gravity Indicator plotted on MACD values in sub window.

Butterworth filtration.

SuperSmooth filter

MACD using gaussian filtration

Calculates pip difference between Current price and SL & TP price. Places Text labels at SL & TP lines: Order Type, Ticket number, SL & TP price, Pip calculation and Pip label.

Updates: 1. Order Type Discrimination 2. SL+TP and OE line price. 3. Enhanced user defined labels. Calculates pip distance between Order Execution price and SL & TP price

StDev Bands with gaussian smoothing

Rainbow through gaussian refirtration

EA is based on 2 MA (High and Low). Long position will occur when Ask > MA(High) and Short position - when Bid

Closes all orders when total cash profit in the account is a certain value.

This indicator is calculating numbers of ticks and average time between ticks for each minute in the current hour.

This EA is based on the 10 SMA moving average and another things which could be better - It also make sounds according to the context.

This expert advisor is based on the concept that market does not move always in one direction. Even when the market is trending in one direction at some points it pullback. The EA has been backtested from July 1, 2011 to Jan 13, 2012 on EURUSD. It has

Notarius - trend indicator with alerts on the basis of price averaging.

This version 2 of Multi currency pair Indicator. It includes an optional trend line and the color of the label has been changed to red to make it visible on default chart template.

disturbed EA wich open a long and a short position at the same time.

This indicator watches the major currency pairs to find the status of the current candle (Bullish or Bearish) of USD, EUR, and GBP compared to other currencies such as EUR, JPY, GBP, CHF, AUD, and CAD.

This indicator use in cross ( es. EURAUD, GBPAUD, EURGBP, ect) depends of correlation of currency. Usually I use with timaframe Daily. But I think can to use in another timeframe. Important can use in commodity and stocks.

Calculates pips between Order Execution price and and Stoploss or/and Takeprofit price.

1...282930313233343536373839404142...85