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

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

It is a simple indicator that consists of four trend lines that show the distance between the trend line and the price via the numbers and that give the signals when the price goes for the specified number of points.

The indicator draws the arrows at the intersection of the MA and the RSI of the 50 level.

Another Avocational Indicator by Hidden Divergence of OsMA.

A scalper by parabolic and Fibonacci.

The indicator applies Hodrick-Prescott low-frequency filter to predict future prices

The indicatorless system based on the analysis of 4 previous bars.

A package of libraries with the file functions for working without the limitations in any directories.

The function of adduction of the price to the correct form for the given symbol by means of rounding or discarding the excess.

The different colored snippets of MA are shown on the current chart depending on the direction of the MA moving at on the chosen timeframes, or they're not drawn at all if the moving on the chosen timeframes is differently directed.

EA is setup to use higher time frames for trend identification and lower time frames for entries/exits.

Indicator of the morning flat.

It closes an order by the intersection of two MAs (5 and 7 on default). Read the full description...

The indicators that can display several larger timeframes, japanese candlesticks and Fibo levels on a single chart.

Buy Sell Customized With RefreshRates and Lots Manager

The indicator draws the charts of the euqity and balance basing on the minute history. In such a manner you get more authentic picture of maximum rises and drawdowns.

An indicator that allows to see the "larger" periods (for example, half-yearly or yearly).

A practical EA for the intraday trading from 10:00 till 19:00. It works well on 5M EURUSD. The expected payoff is 40..60 pips per week on the forward testing.

The indicator line sharply changes its direction at the critical moments. It helps to identify the beginning of the trend.

The indicator calculates the correlation of the currency pairs.

A simple EA. It plays in the opposite direction on the specified difference between Bid and MA. It is considerably risky but it has own advantage.

The indicator of the Keltner's channel.

A standard ADX indicator with time frame setting.

An indicator of group moving. It shows the difference between two MAs in a separate window.

Judging by the code of indicator, it calculates the difference between the maximum maximums and minimum minimums of prices of the candlesticks for the last 20 bars (parameter). The result is displayed in points.

This set of functions enables one to capture mouse events on your trading chart. One can simmulate buttons to trigger actions in the EA.

Extrapolator is a result of my long-term research in the area of the Timeseries Forecasting.

The EA uses the method of Burg's linear prediction that was taken from my indicator Extrapolator.mq4.

It shows where to buy and where to sell via the arrows. If a trend occurs then it will bring profit, if there is no trend, there will be no profit.

The algorithm of tuning (optimization) by two ranges with the two-level three-stage optimization is used in the EA.

Running an EA in a virtual account

Another Fibo indicator.

The EA is based on the permanent variation of the direction of the trades depending on the TakeProfit, StopLoss and TrailingStop levels. It demonstrates how to create a profitable trading system without any indicators, mathematical models and other wisdom

The calculation of the amount of lots through the specified percentage of free assets.

Colored ОsМА, and ОsМА that shows the divergences.

Another indicator that shows the tick chart, it would be useful for the pipsers. It has some features.

The divergence of RSI, the continuation of the divergence topic.

It arranges the stop levels depending on the price and ATR.

Alert indicator that allows to move the signal via the mouse.

The script for simultaneous placing of several orders by different symbols.

The indicator has the informative character.

1...444546474849505152535455565758...83