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

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

The trading technique that is based on the support/resistance that are determined at the daily opening.

You pick the script and drag it on a chart's point. Then it uses this point to modify all stop/take profit levels of the chart's currency.

Automatic Trading System

This indicator plots in the chart base on the tick price , ie. when the price moves down 10 pips it plots the down candle and wait till the next 10 pips if move up 10 pips it plots the up candle with the other color candle to indicate the up down price

The MUV indicator created by Sator is used.

This version of ZigZag can simultaneously display three zigzags both drawn on the data from the current timeframe and on the data from the larger timeframes.

The script is the calculator of the simple, complex, nominal and continuously charged percents.

Standard OsMA indicator with the indication of the possible trade signals.

An example of automatic running of the script when the timeframe or symbol is changed.

Two orders are placed at the specific time.

Smoothed RSI indicator with the sound signalling of crossing the level 50.

We place the pending orders at the support and resistance levels.

The automatic calculation of the lot size from the specified percent of free assests.

A "cover" for the normalization of the indicator values.

MM Lines are drawn where support and resistance is.

I added audible alerts so that when a strong buy or strong sell signal it can generate alerts when the "SoundOn" input variable is set to true.

The application of Lagrange's interpolation polynomial at FOREX.

This indicator signal buys and sell in the market.

The calculation of the amount of lots considering the possible loss. The maximum loss volume is specified in percents of the current balance.

A library of MySQL 5.0 error codes If you use a connection to the MySQL database in your EA, indicator or script and it doesn't work or something goes wrong then this library will allow you to find out what error is returned by the MySQL database.

A variation on the Neuro nets topic: The trading system based on the interaction of the MACD indicator and a double-layer neuro net.

The EA is based on the "Trend Follower" strategy.

Larry Williams indicator. It considers the influence of the secondary market on the trading market.

The indicator shows the difference between Open[0] and Close[1].

This expert this one based on the indicator MACD. It works very well in the period of 1 hour. In a test(proof) of 36 months it(he,she) has a profit of 935 % (25 monthly %).

This indicator is intended for the trading with the huge enough amount of symbols but it is not necessarily. The indicator calculates the percentage of growth of every symbol from the beginning of the day by a group of symbols, it's not a secret that the

The indicator shows the average between the maximum and the minimum price within a time range.

Indicator LargeTimeFrame. It draws the candlesticks of a larger timeframe on the chart.

How a trend changes? How to determine a flat? ... etc. This indicator will help to answer these questions.

Indicator QStick represents a simple n-period moving average for the difference of the close and open prices.

A modified verion of the Chande & Kroll's Stop indicator. The author consider that the ChandelierStops_v1 is very similar to it and look better than the Chande & Kroll's Stop.

Expert Advisor Kijun Sen Robot. It uses the following indicators: Ichimoku, MA, SAR. It is optimized for the following currency pairs: GBPUSD and EURUSD with M30 period. You can view the full description in the code.

Expert Advisor ASC++.

Indicator Impulse CD, an extension of the impulse approach.

Forecasting of price daily ranges. This indicator shows the resistance and support levels of the current day.

The minimums and maximums of the previous day are used. I'm sorry that I wrote it without comments.

1...464748495051525354555657585960...83