Watch how to download trading robots for free
Find us on Twitter!
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 - 73


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

An analogue of the intersection of two stochastics.

A simple indicator that displays the chart of the symbol in the window of another symbol.

Indicator of STOPLEVEL.

Hedge The Hedge Trader EA

Indicator TrendManagerNT.

Indicator NewTrend_v1.

Indicator Pivot Mid Support Historical.v1

Improved version of 10 pips a day opposite "yesterday's trend" EA

It's a pattern tha I use in my tradings. It's based in CCI/MA and Bollinger.

One of the varieties of the price channel.

Indicator MAAngleTony.

An indicator that divides the M1 period into H1.

An indicator of the trend alteration.

Modified valasholic13 indicator.

An indicator of trend reverse.

It shows the buy and sell signals.

Indicator Kuskus Starlight.

The indicator displays the time of the trading session.

Modified MarketTime indicator .

The library is intended for working with the global graphical variables.

This Expert Advisor trades every news event that is scheduled to release on for the current week. The EA waits for the next news event to be released, compares the released economic data, determines which currency to trade and exe

A script for uploading the history by all known currency pairs, metals, indexes, CFD's and for controlling the "hole" in the history.

It displays how the price is changed in points with the coming of a new tick.

Anyone know how to improve this EA i put together ? Cheers

It shows how the price changed with the coming of a new tick.

A determination of a bar and trend direction.

Another SMI indicator. On the basis of the book "Momentum, Direction and Divergence" by W. Blau.

The EA opens the positions in the direction of moving of Stochastic indicator, in addition there is a heightening of positions by martingale. It is tuned for micro-Forex.

It denotes the combinations of candlesticks using the "wingdings".

Reasonably good algorithm of the EA based on CCI and its MA. It shows good results in tester. I need help for optimization, testing and maybe code debugging.

Greetings to all. I started to develop a MTS not long ago. This is my first one. How can I improve it, I'm waiting for the specialist's advices. And how can I use the AMA indicator in the EAs (iAMA)? I tested this strategy on September 2008.

A small set of the trend indicators.

Uploading of history of all symbols from the Market Watch window by all TF. The recording to a file of names and trading condtions by all symbols from the Market Watch window.

The indicator denotes the price range of the next bar.

A small set of indicators.

It was developed on my order for working with the RPoint indicator. I reached this variant by changing the parameters of the indicator and the EA. Change the ReversePoint value to 250 when placing the indicator.

The EA is based on the MACD indicator.

The indicator draws the charts of equity and balance by the data of account's history, it uses the current opened positions for updating the charts in the real time mode as well.

Is it possible to take just 10 pips a day? This EA tries to do it.

The testing data is in the strategy tester.rar file. The EA was tested from 29.09 to 30.09 because the strategy is designed for M1. But unfortunately it works not by the strategy. In some cases it doesn't close when it should and so it goes negative.