Download MetaTrader 5
Trade anywhere and anytime!

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

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.

previous12345678...19next
latest|best

System based on a non-technical analysis of the market. Taken from the secret FBI archives. Based on the works of Pythagoras, Robin Hood and K. Marx. Printed unchanged. IIN – Impossible is nothing - an old Eskimos saying.

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.

The Expert Advisor based on the Heiken Ashi indicator.

1 Click "Close All" button to close all open positions at current attached chart.

Multiple Timeframe Moving Average. It is set to look at H4 and H1 time frames. This code is for anyone who wants to use a different timeframe than on the current window.

Expert Advisor that will close all orders and disable another Expert Advisor / AutoTrading at desired level.

The main idea of this Expert Advisor is to trade by the basic concept of Stochastic oscillator in its basic parameters, with ability to change these parameters via the EA inputs.

1 Click "Close All" button to close all your positions (regardless of the pair) will be closed at once.

This is my 1st published code, it is very simple code example: RSI 14 (price close) — open buy when it is < 25, close buy when it is > 50, open sell when it is > 75, close sell when it is < 50.

The EA searches the last upper and lower fractals and opens positions when the price exceeds these levels.

One of the implementation variants of the Quantum trading system.

The EA opens trades at the intersection of the fast and the slow MAs. It has the function of outstaying the losses.

The EA closes orders when certain loss is reached by them in the account currency. It is possible to vary the loss by the volume of the order.

Trading robot based on the theorem "On the presence of memory (aftereffects) in random sequences".

A simple Expert Advisor, which works without the use of any indicators. Enters at trend reversal attempt.

The Heiken Ashi Naive Expert Advisor is based on the Heiken Ashi candle chart system and uses the standard indicator of the same name.

The Expert Advisor is based on the exponential moving averages of the same period.

The Expert Advisor is based on the operation of its predecessor — Forex Fraus (for M1), but using the Envelopes indicator.

The Expert Advisor is based on the lot management according to the Labouchere system.

previous12345678...19