When you’re new to trading, it’s unlikely that algorithmic trading software is amongst the first things that cross your mind. But algo trading is an important – not to mention very useful – part of trading.
Forex algorithmic trading, or trading by algorithm, is the process of executing trades using computer programs to analyse data and execute orders in the forex market. Algorithmic traders rely on quantitative methods such as technical analysis for their decision-making.
In this guide we are going to review exactly what forex algorithmic trading is and how it works, the benefits and risks of algo trading, as well as some common forex algorithmic trading strategies used in the market.
The concept of algorithm trading (sometimes called algo-trading) is reasonably straightforward; it’s really just a more technical way of referring to a form of automated trading. A single algorithm is simply a set of mathematical rules that a computer program follows to solve a specific problem. When applied to forex trading, those problems usually center around a combination of price, timing, and volume.
Breaking it down into parts, an algorithm is fundamentally marked by an entry point, an exit point, and in between those, various sets of rules or actions around determining risk. These can be as simple or complex as the person programming it wants them to be, although, most commonly, they’re complicated.
For example, you might want an algorithm that scans the markets, buying a certain amount of currency at a particular price and selling at another. When writing the set of rules for that algorithm, you could choose to base your criteria only on traditional price movements. But, more likely, you’d want to take into account a much more intricate and interconnected range of factors including profit/loss ratios, historical data, trends and even breaking news.
All these contributing factors are assessed within an environment where the conditions are constantly moving, and often moving very quickly. And therein lies the big advantage algorithms have over human traders: size and speed.
When you sit down in front of your trading terminal and start manually looking for suitable trades to execute, it takes time to filter through the data and determine whether or not a potential trade has the right attributes you’re looking for. And by the time you’ve done your analysis and are ready to hit the button to execute, the market conditions may have changed. Using an algorithm, all the processing effectively gets done instantly. What takes you minutes by hand can be done by an algorithm in the blink of an eye and this can be the difference between a profit or loss, or a big profit/loss compared to a smaller one.
The algorithms don’t just operate one at a time. You can run hundreds of them simultaneously, letting you cover many different positions and follow a broad range of strategies at the same time, even on separate accounts. For someone using algorithms, the possibilities of what they can achieve are seemingly boundless.
Source: MetaTrader 4
Well, yes and no.
Modern trading platforms have made it much easier to create your own very simple algorithms or, at the least, custom indicators. If you’re confident in your own ability, this is something that might be worth pursuing but, by and large, creating complex algorithms is a specialised skill most applicable to those with a background in mathematics, statistics, computer science, or similar quantitative background.
Genuinely effective algorithms can take a long time to develop and require extensive and ongoing testing. If you’re not suitably qualified to create your own custom algorithms you can purchase them predesigned, or even work with a programmer to create some targeted specifically for your goals and strategy. Whatever the case, you should always use a demo environment to test comprehensively and make sure your algorithms work as intended. Sign up for a demo trading account to begin testing your algorithms.
You should also keep in mind that an algorithm that worked once, twice, or even three times isn’t guaranteed to work the next time. As outlined above, the markets are ever-changing which will affect your rules as time goes on. For example, if your algorithm is based on historical data from the past three years, in another year's time the entire data set will likely have changed significantly, requiring adjustments to your algorithm.
It’s easy to see the convenience to be had from automating your trades, but they can also help on a psychological level, removing cognitive bias. When you trade in a more manual fashion, it’s difficult to remove your own predispositions from your decisions –those times when you just have a “good feeling” about a trade.
Algorithms remove emotion from the equation. They don’t work on opinions or feelings, only facts and data. They are, therefore, always objective. However, they’re only as powerful or capable as the rules they’re written in.
As with any form of trading, you need to first determine your objectives and strategy then figure out which tools are the best to help you achieve them. No algorithm is entirely foolproof–not even the most complex ones – but for many traders, their usefulness is well-proven.
Listed below are some common forex algorithmic trading strategies and some additional ways of using algorithms in your journey to automated trading.
Forex scalping is a strategy in which traders attempt to profit from small price changes that could occur within a couple of seconds. Algo trading might be particularly suitable for this type of trading as it involves opening a large number of trades per day, and it could significantly improve the execution speed compared to manual trading.
A trend strategy involves trading in the direction of the trend - i.e. buying when the asset is in an uptrend or selling when the asset is in a downtrend.
Momentum trading is another popular short-term trading strategy. While trend traders will generally try to "buy low, sell high", momentum traders are chasing the momentum - i.e. "buy high and sell higher". For example, EUR/USD might be approaching a significant level of resistance at 1.20. If the currency pair manages to breach this level, momentum may start to build as stops get triggered and traders start to buy anticipating that the uptrend will continue.
If you follow central bank meetings or major news releases, you will have noticed that volatility jumps significantly and price moves abruptly. Very little manual trading occurs during this time, as most institutional traders will have algorithms in place to trade during such events.
Arbitrage trading involves finding price imbalances and profiting from the difference in price. Those price differences can be very small and the opportunities disappear quickly.
Additional algorithm trading strategies:
Algorithmic trading has continued to improve over the years and there are some clear benefits that it can help with your trading strategy:
While algorithmic trading certainly has its benefits, there are also risks involved. Algos operate at high speed, which means that a bug could lead to notable trading losses within a short time.
Furthermore, you are relying on the algorithm to function efficiently and may find yourself in a situation where you are temporarily out of control.
Algorithms operate based on rules. Removing emotions from trading can be a good thing, but it is a fact that intuition or "gut feeling" does play a role in trading - especially if you spend a significant amount of time monitoring the markets. Algos will not have this advantage.
There are also concerns that algorithms and HFT trading contribute to the rising occurrence of flash crashes. We talk about a flash crash when the price of an asset declines rapidly within a short period of time and quickly recovers. One of the most famous flash crashes happened in 2010 when the Dow Jones index declined more than 1000 points within 10 minutes. The price of many stocks declined rapidly, and the price action alone was sufficient to trigger a large number of orders which essentially caused an avalanche.
Algo trading is widely used in financial markets by commercial banks, investment funds, hedge funds, non-bank market makers, and retail traders. According to a study by Coalition Greenwich, 40% of institutional FX traders made use of algo trading in 2020 and expect that their usage will increase further in the future.
It is especially important to financial institutions that engage in market making. You may also have heard about high-frequency trading (HFT), which gained significant traction in the past few years. HFT is a type of algo trading that makes use of high-frequency data and electronic trading tools to execute significant volumes at very high speeds.
Automated trading is about automating the entire trading process, meaning that the automated trading system takes over the whole process from screening for opportunities in various financial instruments to making the decision of buying/selling.
Whereas algorithmic trading focuses on the execution process of a trade.
Ready to trade your edge?
This information is not to be construed as a recommendation; or an offer to buy or sell; or the solicitation of an offer to buy or sell any security, financial product, or instrument; or to participate in any trading strategy. It has been prepared without taking your objectives, financial situation, or needs into account. Any references to past performance and forecasts are not reliable indicators of future results. Axi makes no representation and assumes no liability regarding the accuracy and completeness of the content in this publication. Readers should seek their own advice.
Learn about the top 10 strongest and most valuable currencies in the world and how they are valued against the world's reserve currency, the U.S. dollar.
What is forex trading and how can you trade forex? Learn everything you need to know about forex trading and how it works in this guide.
Discover 12 forex trading strategies that are perfect even if you've already been trading the forex market or have never traded before.