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 Codes of Expert Advisors for MetaTrader 4 - 3

Various applications to automate analysis and trading are available in the 'Expert Advisors' section. It features various applications based on different trading algorithms and provides different degrees of automation. You can find simple EAs and complex trading robots that can fully automate analysis and trading processes.

These applications can be downloaded and run in MetaTrader 4. It is recommended to test and optimize Expert Advisors in the Strategy tester. The Expert Advisors from the library can be accessed from the MetaTrader 4 platform and the MetaEditor development environment.

latest|best

It can be combined with any indicator to get an expert

The Expert Advisor uses a certain candlestick pattern and Stochastic.

This EA considers an example of classifier usage. It can be applied to any other strategy.

I had thought about selling it, but my conscience did not allow that. I had worked on it for more than 2 months.

MA with a price.

Good EA, good optimization results. The unfailing EUR/USD pair and H1 timeframe.

The idea has existed for a long time - based on the "Conservative intraday scalping" strategy, but I could not find a suitable indicator in MT4... Integration of the custom indicator to the EA.

New versions of the exp_iCustom Expert Advisor, which works with any Custom indicator, and draws buy/sell arrows.

EA based on MA. As easy as pie :)

The Expert Advisor fills the missing bars on the chart with "dashes" (Dojis) — bars which have O=H=L=C.

The title contains the idea based on observations of the market regularities. It has been written for the CHF/USD pair.

The EA is based on Stochastic as well as CCI. It uses the fact that a reversal happens when the limits are broken, for cci - 120 and -120, for stoch - 70 and 30. Buys when the lower levels are broken, sells when the upper levels are broken.

The EA suggests the optimal lot size depending on the deposit size.

The 3_Otkat_Sys_v1.2 Expert Advisor. The system is configured for 5 hours (Moscow Time), does not trade on the nights of Monday and Friday.

The 1_Otkat_Sys Expert Advisor. The system is configured for 0 hours (Moscow Time), does not trade on the nights of Monday and Friday.

EA that writes statistic data (Ask, Bid, Spread) in CSV file.

EA that can delete pending orders, close open orders and close terminal at certain time.

It is a recovery system implemented in EA. But you can copy it to any other EAs.

Auto trading with the help of some indicators.

This EA will detect the buffers values of any indicator you want. Just type its name in the EA settings.

Here I propose a simple password verification scheme which uses MT4's built-in security engine providing DES/ECB encryption and does not require code re-compilation for each new customer.

As I'm currently developing an Expert Advisor for Crude Oil and Brent, I wanted to get from ForexFactory.com the exact date and time of the 'Crude Oil Inventory' report. This report is typically issued on Wednesday's at 10:30am Eastern but when there's a holiday, the release date can change. As this is an important report for my EA, the only way was to check an online service to validate the release date.

The Universal_1.64 EA. It has a lot of settings.

I am not a programmer, so I apologize for mistakes. This is my first EA, please rate it. And also its reliability.

Simple EA, but such efficiency for the year 2007!

Expert Advisor from the ATC-2007. Buys/sells when the price crosses the line of a moving average with the period (590)

The FarhadCrab1 EA. It has a lot of settings. It also uses a large number of indicators. Some of them: MA, Stochastic, Macd, RSI.

The Farhad EA. It has a lot of settings. It also uses the indicators: MACD, Stochastic, SAR, Momentum, MA.

Expert Advisor based on two indicators (ADX and Momentum) with a built-in optimizer. Based on the optimization results it selects the best period for indicators and the trading direction or refrains from trading.

Classic signals for opening positions on the intersections of two moving averages.

The Blockbuster EA.

Binario is not an automated trading system but a trading idea. It consists of entering at a breakout and following the trend. The suggested method can be used on all time frames.

The Avalanche_v1.0 Expert Advisor.

The Expert Advisor using artificial intelligence - a single-layer neural network. The "Perceptron" is used for identification of the quotes movement direction.

Universal Expert Advisor for working with any Custom indicator, that draws buy/sell arrows.

Expert Advisor that has been repeatedly discussed on the forum.

The NinaEA Expert Advisor. It uses the NINA indicator. And NINA uses 0_IndInverse.

This EA was discussed at Alpari. Opening when moving against the trade for the period of 0-n1 by p1 points after moving towards the trade for the period of n1-n2 by p2 points. Closing by TP or SL.

The EA uses the values of the Stochastic indicator on the H4 timeframe to open a position, and after that it builds up based on the martingale principle.

It uses VMA - ЕMA, which automatically adjust the smoothing percentage based on the market volatility.

12345678910...22