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

It is developed on the other principle, not on ADX's. Chand suggests 13-weeks SMA as a basis of the indicator.

Expert Advisor Based on FXRaider's Trade Strategy by ForTrader.ru.

The drawing of the moving average is performed on the basis of Demark's method "Daily Range Projections". Indicator on a zero bar points at the future price change.

The script selectively clears the chart by the part of the name and/or by the type of the object.

The script closes any position using the Drag'n'Drop method, i.e. the method of "drag the script with the mouse and drop it on the order lines".

EA that opens a trade when a candlestick closes out of the specified level on a break through. An update to the graphical treminal. But the help in code further development is necessary.

Moving Averages show the average value of the price of the symbol for a period of time.

Steve Nison 'three line break' strategy on chart.

The indicator of peaks.

Trading by a simple principle

I made this indicator colored at Zet's request.

The script is intended for gathering some statistics by the symbols and its comparison.

The indicator searches for the patterns, displays the end of the D and C points on the screen.

An effective trade system, it determines the levels of support/resistance, rollback, trend reverse by a complex mathematical algorithm.

It uses three timeframes to determine a trend.

The indicator is based on CandlesticksBW. It colors the japanese candlesticks by B. Williams displaying the "black" and "white" candlesticks.

1...464748495051525354555657585960...83