Forex Experts Advisors (EA’s) are designed to help you automate your forex trading. Expert Advisors monitor Forex markets around the world to identify the best trading opportunities for potential profits and provide signals for you to act on.
Learn everything you need to know about Forex expert advisors (EA’s) and so you can allow a trading robot to scan the market so you can free up time to do other things. Since the Forex market is active 24 hours per day, 5 days per week, trading opportunities are infinite.
Because of the sheer weight of opportunities, even the most experienced traders will never be able to track, analyze and make trading decisions on market developments 24/5. This is where the Forex expert advisor steps in, a piece of software that ensures ultra-fast processing of market data and greater precision than even the most experienced traders.
In this complete beginner’s guide to automated trading, we will cover these essential topics:
A Forex expert advisor (Forex EA) is software that analyzes market conditions and utilizes algorithms and technical indicators to notify Forex traders of potential trading opportunities.
Forex EAs are algorithms designed to help find the best entry points for a trade, as they can indicate the lowest price level to buy and the highest price level to sell. These indicators utilize a set of yes/no rules and sophisticated mathematical models to help traders implement trading strategies.
Expert advisors are usually built-in MetaQuotes Language (MQL) programming language to be compatible to use with a certain trading platform, nearly always MetaTrader 4 (MT4) or MetaTrader 5 (MT5).
MetaQuote language (MQL4) can be used to develop 4 different types of automated programs:
Developers constantly backtest the best strategies, or in other words, they assess their viability by discovering how well those strategies would perform when historical data is used.
There is a tendency for expert advisors to be used as synonyms of trading robots. However, there is a key difference between the two.
An expert advisor analyzes all the possible variables and notifies traders about the best trades in a given currency pair or other CFDs such as stocks, indices, commodities, and cryptocurrencies. It does only that, alerts traders about a potential trade, but the final decision whether to take advantage of that trade is up to traders themselves.
On the other hand, a trading robot will not only advise about a potential trade but take action. A Forex robot will place trades continuously, based on traders’ preferred trading style and parameters (trading amount, Stop Loss level, Take Profit level), regardless of the outcome.
Many expert advisors can also perform functions that trading robots do, such as automatically execute and close trades by the EA algorithm.
Basically, an expert advisor can be programmed to generate trading signals automatically and alert traders of an opportunity to place a trade. A Forex robot, or another type of automated trading system, that uses algorithms to identify market patterns, generate trading signals, and trade automatically on a person’s behalf.
Both expert advisors and trading robots function based on a set of parameters in order to detect trading opportunities and then execute the trades.
An expert advisor combines numerous yes/no rules into a sophisticated mathematical model, which allows it to execute complex trading strategies. A Forex robot, at the same time, will use computational power to make trading decisions and open positions almost immediately.
There are expert advisors designed to take full control of one’s trading account. Such an EA will analyze a trader’s current account balance and then decide what portion of it to put at risk. The golden rule is to risk no more than 1% to 2% of the total account balance on each trade.
In order to allow an expert advisor or a trading robot to operate even when the PC is turned off, Forex traders may use a virtual private server (VPS). What the latter does is host an instance of the MetaTrader 4 trading platform on an external server, which operates all the time, allowing the EA to function without any interruption.
Traders can either build an expert advisor for the MetaTrader 4 trading platform by using the MQL4 programming language, MetaTrader 5 trading platform by using MQL5 or build less sophisticated EAs with the help of the platform’s inbuilt wizard.
For example, traders can build an EA to detect mean reversion opportunities on a given currency pair (say EUR/GBP) with the use of the 20-day Exponential Moving Average indicator. The expert advisor will constantly monitor that Forex pair and will alert traders in case EUR/GBP breaks out of the 20-day EMA.
Traders can also use a pre-built expert advisor on the MetaTrader 4 software.
Once a trader has found an EA to use on the MetaTrader 4 platform, he/she will have to copy it in the “Experts” folder where the trading platform is installed on his/her PC. That folder should be located on the “C:” drive.
The fastest way to locate the installation folder on your PC is to go directly to your MT4 platform –> File –> Open Data Folder (see figure below).
Each expert advisor (EAs) is comprised of two files:
More complex EAs may contain extra files to operate correctly.
All files needed for the working process of the expert advisor can be found in the Data Folder of the MetaTrader 4 terminal. Once the platform is launched, a trader needs to click on “File” in the navigation menu and then select “Open Data Folder”. Inside it, the trader needs to go to the “MQL4” and then the “Experts” folder. After that, he/she needs to copy and paste the two files (.ex4 and .mq4) into that folder.
In case the expert advisor is based on custom indicators, they should be placed in another folder – MQL4 –> “Indicators”. And, .dll files should be placed in MQL4 –> “Libraries” folder.
Once all the files are copied into the respective folders, the trader needs to open the “Navigator” section of the MT4, right-click on the “Expert Advisors” and then click on “Refresh”. The expert advisor will now be successfully installed in the MetaTrader 4 terminal and can be found in the “Navigator” section.
The trader needs to check the settings of the expert advisor before launching it. He/she needs to go to “Tools” –> “Options” and in the active window open the “Expert Advisors” tab. The trader needs to make sure that “Allow automated trading” and “Allow DLL imports” options are enabled (see figure below).
He/she also needs to make sure that the “AutoTrading” setting is enabled on the MetaTrader 4 terminal – it should have a green indication when turned on (see figure below).
The trader can now launch the expert advisor. He/she needs to make sure that the chart of the desired trading instrument with the desired timeframe has been opened so that he/she can use the expert advisor with it. In the “Navigator” section, the trader needs to unroll the “Expert Advisors” menu and choose the expert advisor he/she wishes to launch. The trader may either double-click on the expert advisor or drag-and-drop it onto the active chart.
The expert advisor’s settings window will now open. The trader needs to go to the “Common” tab to make sure that “Allow live trading”, “Enable alerts”, “Allow DLL imports” and “Allow import of external experts” settings are enabled.
Then, he/she needs to go to the “Inputs” tab to make sure that all the expert advisor’s parameters are set according to his/her trading strategy.
Once all the settings have been checked, the trader may click “OK” to launch the EA.
The trader needs to make sure that the expert advisor is running. In case the EA has been installed and launched successfully, a smiley face will appear at the top right corner of the chart next to the EA name.
There are three distinct modes in which your Expert Advisor can appear on your chart signalled by three different emoticons (see table below).
Also, the trader needs to check the “Experts” and “Journal” sections of the MT4 terminal – in case no error alerts are presented there, then the EA has been launched and is already running.
Depending on the algorithm and the trading styles, on which it is based, Forex expert advisors can be grouped into several categories:
The news expert advisor will usually keep track of major news announcements and buy and sell currencies based on the market volatility around news events. The EA reacts to events such as central bank policy decisions, GDP, employment growth, inflation and other macroeconomic reports and alerts traders of potential opportunities to open a position.
The hedge expert advisor is a strategy that places two opposing positions (buy and sell) in the same currency pair, to protect against adverse price movements. In case the original position closes at a loss, the hedge positions (which are in the opposite market direction) will generate profits. In case the original position closes at a profit, the hedge positions may not even be triggered and will instead be canceled. Since “perfect hedging” does not exist, this expert advisor will simply help traders minimize drawdown.
The breakout expert advisor is designed to take advantage of those situations where the price breaks a significant level. The significant level can be an important support and resistance level, a moving average, previous swing high and low, etc. This expert advisor type will conduct constant technical analysis of market conditions to determine when a breakout occurs in a given currency pair.
A breakout often leads to quick and sharp price movement. In this regard, retail traders are better off using an expert advisor which can react more quickly to changes in price trends.
The scalping expert advisor is an automated trading system that will buy and sell multiple times a day in an attempt to capture a profit from very small price movements. Scalping in the foreign exchange market involves buying and selling currencies based on technical indicators (RSI, MACD, stochastic, moving averages, etc.).
This EA works best when currency pairs’ spreads are narrower and the trading platform’s execution speed is faster. A low-latency true ECN brokerage may be the best choice for Forex traders who employ scalping strategies.
The adaptive expert advisor is a trading system that as the name suggests adapts to the constant market changes. Adaptive quantitative trading relies on a machine-learning algorithm to come up with the most profitable trades. This type of EA is mostly used by the more sophisticated traders.
The main reasons to use expert advisors and trading robots in Forex trading can be summarized as follows:
First, a forex expert advisor can easily be accessed and used. It is not necessary for a trader to be really that well versed in MQL coding in order to make changes to an expert advisor’s code. With some automated trading systems, there are convenient ways to access the source code and modify all the trading parameters, including Stop Loss level, slippage rate or the number of trading positions. Meanwhile, people who feel confident that coding is their strength will always be able to create an EA exactly according to their own preferences.
Second, even though a Forex robot is usually meant for use in Forex trading, it offers sufficient flexibility to be applied in trading other CFDs (on Commodities, Stock Indices, Cryptocurrencies and so on). The expert advisor can be programmed to react to price moves, technical indicators, or news announcements across a variety of tradable instruments.
Third, using an expert advisor can save traders time. The automated trading system will constantly monitor market developments and will do so in a much more precise manner than most human traders would. The EA will run every day without interruption, while traders will be able to focus on other daily activities (work engagements, hobbies, spending time with family etc.) without missing a single trading opportunity.
Fourth, manual trading can always be affected by emotions such as greed or fear. Emotions can prompt a trader to continue holding a losing position for longer than he/she should, simply because he/she does not want to take that loss. Emotions can also urge a trader to enter the Forex market way too quickly, without carefully assessing market conditions.
Perhaps one of the greatest advantages of using an automated trading system is that emotion is completely taken out of one’s decision-making. The EA’s algorithm simply views trading the financial markets in black and white – a series of instructions that must be followed.
Last but not least, you can know ahead of time the EA’s past performance. Traders can backtest their expert advisor on the MetaTrader 4 platform before allowing it to operate through a live account. Backtesting is the process through which we can test the potential profitability of a trading system.
Before using an EA, traders should pay attention to the following considerations:
Using an automated trading system certainly offers benefits – it will operate while traders are sleeping, it will never give in to emotions and it can be backtested swiftly. However, we should point out that it would be difficult to determine if an expert advisor or a Forex robot will be able to help a trader achieve consistent profitability.
In case a trader is looking for a free pre-built expert advisor, he/she should do some research to find relevant reviews by other traders and, after finding such an EA, he/she should test it on a demo account first.
Justin Grossbard has been investing for the past 20 years and writing for the past 10. He co-founded Compare Forex Brokers in 2014 after working with the foreign exchange trading industry for several years. He also founded a number of FinTech and digital startups including Innovate Online and SMS Comparison. Justin holds a Masters Degree and an Honours in Commerce from Monash University. He and his wife Paula live in Melbourne, Australia with his son and Siberian cat. In his spare time, he watches Australian Rules Football and invests on global markets.