Algo Trading

Algorithmic trading, often referred to as just “algo trading”,  is an automated investing method whereby software executes trades according to parameters set by the trader. Algorithmic trading has dominated the global financial markets in recent years; in fact, JP Morgan estimated that only 10% of US trading is now undertaken by standard investors. In this algo trading tutorial we explain how it works with examples, strategies, technical requirements, platforms and brokers.

Algo Trading Platforms

Forex.com boast a global reputation. Regulated in the UK, EU, US and Canada they offer a huge range of markets, not just forex, and offer very tight spreads and a cutting edge platform.
Automation: Automated trade supported through trading platforms (MT4)
NinjaTrader offer Traders Futures and Forex trading. Use Auto-trade algorithmic strategies and configure your own trading platform, and trade at the lowest costs.
Automation: Yes. NinjaTrader is a dedicated platform for Automation.
EagleFX is a popular trading broker offering forex, stocks, cryptos & commodities.
Automation: Yes (EAs)
eToro is a multi-asset platform which offers both investing in stocks and cryptoassets, as well as trading CFDs.
Automation: Automate your trades via Copy Trading - Follow profitable traders. Open and close trades automatically when they do.
Exinity provides flexible low-cost trading in FX, commodities, indices and equities alongside unique education and support provided by teams located across the world. Now operating in the Middle East, through regulation from the Financial Services Regulatory Authority in Abu Dhabi and the Financial Services Commission of Mauritius, Exinity provides a range of services to traders and investors looking for new opportunities in the financial markets.
Automation: Yes
Pocket Option is a global binary options broker with sleek proprietary trading platform and competitive range of assets.
Automation: Yes
M1 Finance offers customizable and automated trading services for US investors.
Automation: Yes
LQDFX offers online trading with multiple STP accounts and MT4 analysis tools.
Automation: Yes (EAs)
Zulutrade provide multiple automation and copy trading options across forex, indices, stocks, cryptocurrency and commodities markets
Automation: Zulutrade are market leaders in automated trading. From scripts, to auto execution, APIs or copy trading.
Show All Brokers ⇩

What Is Algorithmic Trading?

Algo trading is essentially inputting a set of quantitative instructions which a computer program follows. It is typically a high-frequency trading solution, with the ability to make automated trades simultaneously across multiple markets. This enables corporate investors to execute a significant volume of trades immediately. The volume and speed of trades are greater than any human could achieve; thus, making it a potentially effective solution.

Algo trading software
Using an algorithmic trading robot reduces the risk of manual errors so trades can be executed more efficiently. Many types of traders use algo trading, from short and long-term participants to institutional investors. The mathematical, methodical approach is an alternative to manual, sometimes emotion-driven trading.

Algo Trading Directions Example

  • Buy 5,000 Google shares (Alphabet Inc Class A) if the price falls below 1,500 GBP. If the price falls further below 1,500 GBP, sell 200 shares for every 0.5% decrease. For every 0.5% increase in price beyond 2,000 GBP, buy 200 shares.
  • Buy 1,000 Google shares (Alphabet Inc Class A) if its 10-day moving average increases above the 50-day moving average.

Technical Requirements

In this day and age, there are a wealth of platforms and independent programmers who can handle the bulk of the algo trading technical side. Knowledge of programming would be preferable, and some programmers will want to design their own trading system. To do this they will require:

  • Programming knowledge
  • Backtesting capabilities
  • Historical data for testing
  • Order placing capabilities
  • Access to market data feeds and prices

Python, Java and C++ are a few of the most used programming languages, with Python the top choice. Developed by Guido Van Rossum, Python code is reputed for its syntax and ease of use.

For beginners, learning a programming language and doing it yourself has a couple of benefits. Firstly, it could be more financially efficient than hiring an external programmer to create your algorithm. Secondly, when you need to alter strategies, you have more control over the algorithms. Nonetheless, retail trading platforms can often handle most trader’s demands, so this is not essential, and could make for arduous work. Fast network connectivity is a prerequisite.

Online forums and books offer detailed tutorials, such as AlgoTrading101, Quantitative Trading by Ernest Chan, and Inside the Black Box by Rishi K. Narang.

Pros Of Algo Trading

One of the biggest pros of algo trading is eradicating the influence of human emotion. Psychological factors can lead traders to execute trades impulsively, based on feelings. The systematic approach of algo trading means positions are be executed when target conditions are met. During the 2008 financial crash, many investors ignored signals that markets were about to crash and lost money. An algorithm in this circumstance could execute trades according to the warning signs.

The speed of order execution allows trades to be executed instantly when criteria are reached. Algo platforms can execute thousands of trades in less than a second. This also feeds back to the manual error element, whereby it is possible to execute trades too late. This is why algo trading is a high-frequency solution, often used by institutional companies.

Backtesting and historical data enable the trader to explore previous trades, refining and improving strategies as a result. Once a strategy is cemented, automated trading can increase the efficiency of implementation.

Big trades have the potential to manipulate market prices (distortionary trades). A larger investor can utilise algo trading to spread a significant trade across a range of smaller trades. In doing this, you can evaluate the effect on market prices as the trade takes place.

Cons Of Algo Trading

Using Algo trading can cause flash crashes and immediate loss of liquidity. On the 6th May 2010, in the US, the Dow Jones went down 998.5 in under 36 minutes. It picked back up again straight after, fortunately the volatility of stock prices made it a prime trading opportunity.

Torsten Slock put algo trading on his list of the 30 biggest risks for financial markets. Despite laws being introduced to reduce the risk of future crashes, there is still a risk of market manipulation.

False trends can be created and rapidly exacerbated by automated trading software. Stanley Druckenmiller, esteemed investor and hedge fund manager, said “Algos have taken all the rhythm out of the market”

The ever-changing nature of the technological world means you need to be aware of software updates and technical issues. System failures and connectivity issues could lead to substantial losses. News of algo trading and machine learning often focuses on the success stories but things can go wrong.

Faulty programming can be devastating. In 2012, Knight Capital had created a platform that would link with the new, New York Stock Exchange (NSE). When they launched their software it malfunctioned, resulting in the company losing money at a rate of around $10,000,000 a minute. They lost around $440 million in total.

Naturally, the systematic nature of algorithmic trading means that winning opportunities can often be missed as the algorithm is only looking for particular indicators. Sometimes intuition and hunches pay off.

Strategies

Algo trading is based on data, numerical objects such as price, moving averages and volume, amongst other things. As a result, common strategies tend not to involve any intuitive predictions and suchlike. Quantitative trading models are implemented using algorithms to complete trades without human intervention. We’ve listed some common strategies below.

Trend Following

Trend following practices analyse data to identify trends. These tend to be related to moving averages, breakouts and price fluctuations but could be any technical indicators or concepts that you understand and are comfortable using.

Technology can now scrutinise large amounts of data across a variety of these criteria, thus being able to identify trends far quicker and more accurately than a human. The system could analyse data on, say a 50-day moving average, 100-day moving average, channel breakouts and more. The system would then automatically buy or sell the stock depending on whether the collective data reveals buy or sell signals.

Scalping

Scalping is the process of buying and selling instruments rapidly, profiting off small price changes. Algo trading will take care of this process faster than a human could, ensuring the instrument is sold efficiently at the target price.

Algo trading platform

Arbitrage Trading

If a stock is listed on multiple markets, its price can vary. The stock can therefore be bought at a lower price and sold on another market where the price is higher, resulting in an arbitrage profit. The benefits of utilising algo trading for this strategy are again efficiency.

Delta Neutral Strategies

Delta neutral strategies protect the trader’s portfolio against market movements. Delta is a ratio comparing the change in the price of an underlying security with the change in the price of its derivative. By holding multiple positions, it is possible to balance positive and negative deltas so the overall delta becomes 0. The continuous fluctuation of markets makes it impossible to sustain a delta neutral portfolio manually; however, algo trading can manage the delta of your position with ease.

Moving Stop Losses

Stop losses offer protection over your funds. Given the nature of markets and their often high volatility, it can be difficult to manage risk. By using algo trading, you can adjust stop losses automatically based on a diversity of criteria. If a stock moves in a positive direction, the stop loss can move with it, for example.

Algorithmic Trading Platforms and Brokers

When it comes to algo trading, deciding whether to self-build or choose a provider with established tools is down to the individual trader. The do-it-yourself method has benefits, but using a recommended solution is often an easier way to start.

It is important to familiarise yourself with the trading platform before beginning to algo trade so if demo accounts are an option, it would be advised to use one to trial strategies. The following platforms and websites are popular and use a variety of algo and automated trading methods. These include trading robots (bots) and copy trading, open-source trading, signals and semi-automated options:

  • MetaTrader 4 (Expert advisors) – Utilising expert advisor trading robots, MT4 is regarded as one of the best systems for forex algo trading. MQL4 is the language used, similar to C. Features include a wide range of indicators, mobile apps and a demo account.
  • MetaTrader 5 – Known as one of the best for CFD algo trading, MT5 uses MQL5 language, based on C++. Like MT4, MT5 uses Expert Advisors (EAs). Key features are a range of additional technical indicators to MT4, a simpler language, DOM data and more.
  • cTradercTrader is primarily aimed at retail investors who want to trade in an electronic communication network (ECN). Key strengths are execution and charting abilities. cTrader used cBots.
  • eToroeToro is an FCA-regulated broker, best known for its automated social and copy trading features. eToro CopyPortfolios algorithmically select the top 50 traders, most likely to be profitable, each month. Your trades can then be automated to follow these experts.
  • ProRealTime – ProRealTime is designed for advanced traders who require in-depth technical analysis and market views. You can write your own code or use the Wizard function to write it for you.
  • QuantConnect – Since Quantopian shut down in November 2020, the majority of users migrated to QuantConnect. They offer an open-source algo trading engine, where traders can test strategies for free, and then pay a fee to trade live with Interactive Brokers. It is written in C# but supports python and F#.

There are a host of retail trading brokers which now offer algo trading. The following brokers are compatible with the platforms above or offer their own proprietary systems. Some of the frontrunners include:

  • Interactive Brokers – You can trade stocks, options, futures, currencies, bonds, ETFs, CFDs and more with Interactive brokers. They offer their Trader Workstation platform and APIs.
  • Pepperstone – Offering spread bets and CFDs on forex, commodities, indices and more. Platforms available at Pepperstone include MT4, MT5 and cTrader.
  • IGIG has an extensive list of instruments to trade, including forex, cryptocurrency, stocks indices, commodities and more. IG offer their own trading platform alongside MT4, ProRealTime and L2 Dealer, voted the best Multi-Platform Provider at the ADVFN International Financial Awards.
  • AvaTradeAvaTrade is a forex and CFD broker that offer a variety of platforms, including MetaTrader 4 (MT4), MetaTrader 5 (MT5), AvaOptions, ZuluTrade, and DupliTrade.

We’d always recommend opting for a broker subject to local regulations. It’s also worth keeping an eye out for brokers with a range of algorithmic trading guides, tutorials and training courses to help upskill your excel and coding knowledge, for example.

Final Word On Algo Trading

Just like traditional trading, automated trading comes with its risks, particularly on the scale of institutional, high-frequency traders. Algorithmic trading has completely transformed the modern trading environment. It is open to debate as to whether this is positive or negative as a whole, but it can come with great benefits. Systems, strategies and technology which were once limited to hedge funds and larger cooperate investors can now be utilised by ordinary investors. Retail investors of all types now have access to algo trading systems which remove emotion from their investments. But always remember, profits and returns vary, so it’s key take a careful approach to risk management.

FAQ

Is Algo Trading Worth It?

Algo trading contains risk, just as ordinary trading does; however, it can handle a frequency of trades simply impossible for a human to execute. As a mechanical system, algo trading reduces the influence of human psychological factors which can lead to impulsive and reckless decisions.

How Do You Do Algo Trading?

Algo trading has been made easier for retail investors. In the 1980s, you had to program your own platform and algorithms, but it is now easier than ever before to algo trade. Whilst programming your own solutions has its perks, you can outsource the programming. There are also a wealth of platforms that handle the bulk of the technical side nowadays.

Algo trading is legal in India. It was made legal in 2008 and algorithmic trading now equates for around 50% of all trades on Indian markets. There isn’t currently guidelines for retail investors. There are many algo trading platforms and brokers in India, including Zerodha, 5Paisa and more.

Is Algo Trading Safe?

It is important to note that algo trading doesn’t get rid of risk. The majority of traders lose money, algo trading or not. Using simple algorithms, rigorous backtesting and a secure, renowned platform is a good place to start.

Is Algo Trading The Future?

Algo trading has already reshaped the current trading climate. It has been estimated that 80% of the US stock market is dominated by algo trading.

How Do You Create An Algo For Trading?

Creating an algorithm for trading requires knowledge of a programming language, a strong understanding of financial markets and familiarity with investing strategies.