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

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.

The Wss_trader EA. People recommend setting the trading hours to 7-17, trailing to 60, metrics to 36 and to look back to 2 months.

I came across an expert that was discussed many times on the forum.

This example has been built using SAR (Stop And Reverse) indicator with Advanced Money Management function.

This EA is based on Forex Fraus (for M1) which was made by Dmitriy Zaytsev. I added limitation of positions, multi-currency trading.

Trigger based on two MA by DeMarker.

When the stochastic enters the overbought or oversold area, the first lot is opened, if the chart is reversed, then operate with one lot.

The new version of the Mc_valute_v8_final EA. It works well on a flat market.

The EA was created similarly to EA that won the first place in the championship.

This Expert Advisor depends on Moving Average 400 to indicate trend and "slope-direction-line" indicator, it will be attached with EA.

Expert Advisor created using hedge function and the moving average indicator.

Expert Advisor based on Commodity Channel Index (CCI) indicator.

This is my first expert totally based on RSI.

Click "Close All" button to close all your open & pending orders at once.

Roboost is an EA for MetaTrader 4 trading using several half-scalping and traditional trade management techniques. It shall work on different pairs and TF. Target is H1 for major pairs.

The multi-currency arbitrage tactics.

An example for my yet unpublished article. An easy template for writing custom experts.

The Expert Advisor that gains profit from the positive swaps + multi-currency arbitrage tactics.

The Dealers Trade v 7.74 EA is based on the algorithm of multi-lot scalping. The EA has been repeatedly tested on a live account.

The Dealers Trade v 7.51 RIVOT EA is based on the algorithm of multi-lot scalping. The EA has been repeatedly tested on a live account.

The awo Holidays EA reports the status of the next day: working day, weekend or holiday.

The Expert Advisor simply opens orders in the opposite direction after the current order is closed.

Pending Order is an order that will be executed if the price touches a point that we specify, in other words open pending order means ordering to open a position at a certain price level. So if price hits a predetermined level, then automatically we have an open trading positions.

Showing how to trade FX market trend using the (SMA: Simple Moving Average) with the Japanese indicator Heiken Ashi.

The Expert Advisor which uses AO and AC. Buying and selling is performed when the colors of the indicators match.

The Expert Advisor based on the RSI indicator. МА and martingale are added in the new version.

The SuperTake implements the strategy of Martingale by Take Profit.

12345678910...21