# Algorithmic Trading Explained: Methods, Benefits, and Drawbacks

## What Is Algorithmic Trading?

Algorithmic trading has transformed financial markets by using advanced algorithms for executing trades. This method streamlines trading processes by automating decisions based on price, volume, and timing strategies, reducing the need for manual intervention. It evolves traditional trading by improving speed and efficiency but also carries its unique challenges and risks.

### Key Takeaways

*   Algorithmic trading automates decision-making and trade execution in financial markets using complex mathematical models.
*   The practice emerged in the 1980s and helps institutional investors execute trades more efficiently, but poses risks like market volatility and system failures.
*   High-frequency trading, a subset of algorithmic trading, executes thousands of trades per second, raising concerns about market stability and fairness.
*   Algorithmic trading offers benefits like speed, accuracy, and efficiency but requires careful monitoring and adaptation to changing market conditions.
*   Black-box algorithms, a type of algorithmic trading, are controversial for their opaque decision-making processes, which can challenge accountability and risk management.

## How Algorithmic Trading Transformed Financial Markets

The use of [algorithms](https://www.investopedia.com/terms/a/algorithm.asp) in trading grew after computerized systems entered American financial markets in the 1970s. In 1976, the New York Stock Exchange introduced its designated order turnaround system for routing orders from traders to specialists on the exchange floor. In the following decades, exchanges enhanced their abilities to accept electronic trading, and by 2009, upward of 60% of all trades in the U.S. were executed by computers.

Michael Lewis, known for his bestselling books, highlighted HFT algorithmic trading in _Flash Boys_. This book showcases the Wall Street traders and entrepreneurs who built companies that defined U.S. electronic trading. His book showed that these companies were engaged in an arms race to build ever faster computers, which could communicate with exchanges ever more quickly, to gain an advantage over competitors with speed, using order types that benefited them to the detriment of average investors.

![Image](https://www.investopedia.com/thmb/j0RDfj9IIW_pSffoBUikqTyjs8U=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/dotdash_Final_Algorithmic_Trading_Apr_2020-01-59aa25326afd47edb2e847c0e18f8ce2.jpg)

**

## Exploring Different Types of Algorithmic Trading

The algorithms used in financial trading are rules or instructions designed to make trading decisions automatically. They range from simple single-stock to more complex black-box algorithms that analyze market conditions, price moves, and other financial data to execute trades at optimal times for the least cost-to-maximum profit ratio. The crossover of computer engineering and finance is notorious for its leaden jargon, so we won't weigh you down with too many terms here. While some phrases might change slightly from one trading firm to the next, the following should give you an idea of the wide uses for algorithmic trading:

*   **Arrival price algorithms**: These are designed to execute trades as close as possible to the stock price when the order was placed. These are useful for minimizing the market impact and the risk of price moves after the order is made.
*   **Basket algorithms**: Also called portfolio algorithms, these execute orders while calculating the effects on other decisions and securities in a portfolio. For example, even if a security is available at the right price, the algorithm may decide to hold off trading if doing so would increase risk for the portfolio as a whole. Constraints put into the algorithm include cash balancing, self-financing, and minimum and maximum participation rates.
*   **Implementation shortfall algorithms**: These automated rules aim to minimize [implementation shortfall](https://www.investopedia.com/terms/i/implementation-shortfall.asp), the cost of executing an order when it differs from the decision price.
*   **Percentage of volume**: These algorithms adjust order sizes in reaction to real-time market trading volume. The purpose is to preserve a predetermined percentage of the total market volume, balancing market impact and timing.
*   **Single-stock algorithms**: These algorithms are designed to optimize the trade execution of a single security, considering factors like market conditions and order size.
*   **Volume-weighted average price (VWAP)**: These algorithms execute orders at a price that closely matches the volume-weighted average price of the stock over a specific period.
*   **Time-weighted average price (TWAP)**: These algorithms distribute trades evenly across a set period to attain an average price mirroring the time-weighted average of the stock price. They are employed to minimize market upheaval when putting in large orders.
*   **Risk-aversion parameter**: This will vary depending on the trader and the strategies needed, but it's often put alongside other algorithms to adjust trading aggressiveness based on the trader or client's risk tolerance.  
    

## Example of Algorithmic Trading in Action

Let's walk through a straightforward algorithmic trading example. Suppose you've programmed an algorithm to buy 100 shares of a particular stock of Company XYZ whenever the 75-day moving average goes above the 200-day moving average. This is known as a bullish crossover in technical analysis and often indicates an upward price trend. The execution algorithm monitors these averages and automatically executes the trade when this condition is met, eliminating the need for you to watch the market continuously. This allows for precise, emotion-free trading based on specific predetermined rules, which is the essence of algorithmic trading.  

## Inside the World of Black Box Algorithms in Trading

We've separated these algorithms since they function differently than those above and are at the heart of debates over using artificial intelligence (AI) in finance. [Black box algorithms](https://www.investopedia.com/terms/b/blackbox.asp) are not just preset executable rules for certain strategies. The name is for a family of algorithms in trading and a host of other fields. The term black box refers to an algorithm with obscure and undisclosable internal mechanisms.

Unlike other algorithms that follow predefined execution rules (such as trading at a certain volume or price), black box algorithms are characterized by their goal-oriented approach. Although the algorithms are complex, designers set goals and select specific rules to reach them, like trading at certain prices or times with a set volume. Black box systems are different since while designers set objectives, the algorithms autonomously determine the best way to achieve them based on market conditions, outside events, etc.

Often, those using the term in the public sphere confuse two issues: there are quantified strategies that firms and others regard as trade secrets, which users know but don't share. Competitors and regulators may not understand the strategies, for example, a high-frequency trading firm might be using. However, that's because those who do within the firm aren't sharing proprietary technology.

Then, there are black box systems. Black box algorithms, especially those using AI and machine learning, are known for their opaque decision-making, even to their designers. While we can measure and evaluate these algorithms' outcomes, understanding the exact processes undertaken to arrive at these outcomes has been a challenge. This lack of transparency can be a strength since it allows for sophisticated, adaptive strategies to process vast amounts of data and variables. But this can also be a weakness because the rationale behind specific decisions or trades is not always clear. Since we generally define responsibility in terms of why something was decided, this is not a minor issue regarding legal and ethical responsibility within these systems.

Thus, this obscurity raises questions about accountability and risk management within the financial world, as traders and investors might not fully grasp the basis of the algorithmic systems being used. Despite this, black box algorithms are popular in high-frequency trading and other advanced investment strategies because they can outperform more transparent and rule-based (sometimes called "linear") approaches. Such systems are at the leading edge of financial technology research as fintech firms look to take the major advances in machine learning and artificial intelligence in recent years and apply them to financial trading.

## The Rise of Open Source Algorithmic Trading

Just as smartphone apps and advanced AI systems have enabled non-specialists to create tailored applications and application programming interfaces (popularly known as [APIs](https://www.investopedia.com/terms/a/application-programming-interface.asp)), the world of algorithmic trading has allowed outsiders to have a hand in expanding upon their proprietary work. This open-source approach permits individual traders and amateur programmers to participate in what was once the domain of specialized professionals. Hedge funds and investment firms, such as Two Sigma and PanAgora, have at times leveraged this shift by crowdsourcing algorithms and trumpeting their efforts to pay back the community of programmers by going the other way and releasing improvements to open-source applications for all to use. They also host competitions where amateur programmers can propose their trading algorithms, with the most profitable applications earning commissions or recognition.

But just as tech companies have leveraged open-access applications and programming for problem-solving and community engagement, fintech firms are increasingly going beyond just using open-access cloud computing and similar apps common all over the business world. The Fintech Open Source (FINOS) Foundation said in a November 2023 report that about a quarter of financial service professionals were involved in open-source data science and artificial intelligence/machine learning platforms. Nevertheless, there may be limits to how far this can go in the financial sector: about two-thirds of those FINOS surveyed said that they or their firms worried about using open access systems given the need to safeguard proprietary knowledge.  

## Weighing the Pros and Cons of Algorithmic Trading

### Pros and Cons of Algorithmic Trading

Pros

*   Speed: Executes trades faster than humans.  
    
*   Accuracy: Reduces chances of manual errors.
    
*   Efficiency: Can trade 24/7 without fatigue.
    
*   Emotionless: Avoids emotional trading decisions.
    
*   Backtesting: Traders and researchers can test diverse scenarios outside real-world trading.
    

Cons

*   System Failure: Technical glitches can cause losses.
    
*   Over-optimization: Can lead to unrealistic results.
    
*   Potential liquidity issues.
    
*   Market Manipulation: May be used for nefarious purposes.
    
*   Complacency: Not adapting algorithmic system to market and regulatory changes.
    

### Advantages

Algorithmic trading can provide fast, efficient responses to market changes. It automates trades and aligns them with investment decisions, reducing costs, risks, and boosting order completion rates. Here are additional advantages:

*   **Anonymity**: Trading is automated, with orders processed by computers and networks across platforms. This automation means that [orders aren't exposed or discussed openly](https://www.investopedia.com/nasdaq-s-ai-dynamic-m-elo-7974652) on the trading floor as they used to be. In addition, certain algorithms can ensure that major trades are spread out to hide major transactions, which could reveal the parties involved in smaller sectors.
*   **Backtesting and research**: Before use in real-world trading, algorithms can be backtested and trained on historical data to review their effectiveness, reducing the risk of potential losses. Researchers can also do this by using such systems to test hypotheses in assorted financial scenarios, increasing knowledge in the wider financial field. Many major studies have been done using such algorithmic approaches.
*   **Emotionless decision-making**: Algorithmic trading takes emotions and psychological factors out of decision-making in trading, potentially leading to a more disciplined approach.
*   **Greater control**: While this might not appear the case at first glance, given the need to turn over to automated systems various trading duties, traders can decide everything from the trading venues to specific order details like price, share quantities, and timing, and then adjust the trading pace based on a client or fund's goals and the present market conditions. Users can also modify or cancel orders almost instantly.
*   **Less information leakage**: Since brokers do not receive detailed information about the investor's orders or trading intentions, the risk of information leakage is reduced. Traders buying a security, for example, only need to communicate their trading needs and instructions through the selection and parameter settings of the algorithm.
*   **Market access**: Algorithmic trading provides quicker access to markets and exchanges via high-speed networks. In addition, clients without these high-end systems can now take advantage of benefits like co-location and low-latency connections.
*   **Potential for increased transparency**: While black-box algorithms have raised issues of opaque processes when the operational details for execution algorithms are shared in advance, investors know exactly how their shares will be traded in the market.
*   **Precision**: Algorithmic trading enables the execution of orders in highly specified conditions while reducing the probability of human error.
*   **Speed and efficiency**: Implicit in all the above advantages is how financial algorithms can execute orders far faster than humans, allowing traders to capitalize on market opportunities more quickly.

### Disadvantages

Algorithmic trading has limits, affecting both individual traders and the broader market:

*   **Complacency**: Traders may become overly reliant on familiar algorithms, using them regardless of changing market conditions.
*   **Complexity**: There is already the terminology that comes with the technology involved, but added to it are the extensive number of algorithms available, sometimes with uninformative names taken from film quotes or stabs at humor, which can make it overwhelming. Larger firms might work with numerous brokers, each offering a range of algorithms, adding to the complexity.
*   **Compliance risks**: The changing rules for automated trading demand constant monitoring and updates.
*   **Cost**: Creating and executing algorithmic trading systems is a cost that not all firms can afford, and there are also ongoing fees for networking power, hardware, and applications.
*   **Historically optimized**: There's a risk of creating complex algorithms that fit historical data but fail in real-market conditions.  
    
*   **Illiquidity**: Another disadvantage of algorithmic trades is that it can cause liquidity to disappear quickly. Algorithmic trading was said to be a major factor in causing a loss of liquidity in currency markets after the Swiss franc discontinued its euro peg in 2015.
*   **Rigidity in the face of events**: Algorithms execute precisely as programmed, which can be problematic during market events they aren't designed to handle, potentially leading to inferior performance and increased costs.
*   **Price discovery challenges**: The shift from traditional specialists and market makers to algorithm-based trading has complicated price discovery, especially at market openings. While algorithms efficiently include price information for strategizing, they can quickly struggle to determine a security's fair market value.
*   **Systemic risk**: This has been widely discussed among regulators and political representatives since this kind of trading began. For example, it's feared that broadly using similar algorithms could increase systemic risk and market volatility, as seen in events like [flash crashes](https://www.investopedia.com/terms/f/flash-crash.asp). For example, on May 6, 2010, the Dow Jones Industrial Average, along with other indexes, had a sudden and abrupt drop, falling 1,000 points before rebounding quickly. The crash was initially triggered by a large sell order in the futures market, setting off a flurry of high-frequency trades.
*   **Technological dependence**: Relying on computer systems can lead to losses or missed chances due to glitches or connection issues.  
    

## How Do I Get Started in Algorithmic Trading?

To start algorithmic trading, you need to learn programming (C++, Java, and Python are commonly used), understand financial markets, and create or choose a [trading strategy](https://www.investopedia.com/beginner-trading-strategies-4689644). Then, backtest your strategy using historical data. Once satisfied, implement it via a brokerage that supports algorithmic trading. There are also open-source platforms where traders and programmers share software and have discussions and advice for novices.

## How Much Money Do I Need for Algorithmic Trading?

The amount of money needed for algorithmic trading can vary substantially depending on the strategy used, the brokerage chosen, and the markets traded.

## How Is High-Frequency Trading Different From Algorithmic Trading?

HFT is actually a form of algorithmic trading, and it's characterized by [extremely high speed and a large number of transactions](https://www.investopedia.com/articles/active-trading/081215/new-alternatives-highfrequency-trading.asp). It uses high-speed networking and computing, along with black-box algorithms, to trade securities at very fast speeds. Trades can take place in a millionth of a second.

## The Bottom Line

Algorithmic trading provides significant advantages, including rapid execution, reduced human error, and greater trading efficiency. Traders benefit from emotion-free decisions and precise execution parameters, maximizing market opportunities. However, reliance on advanced technology poses risks, such as system failures and susceptibility to technical glitches. Furthermore, algorithmic trading can increase market volatility and systemic risk, as evidenced by events like flash crashes. Users must remain vigilant to evolving market conditions and regulatory landscapes to mitigate these risks effectively.

> **Article Sources**
>
> 1.  Securities and Exchange Commission. "[Release No. 34-59593; File No. NYSEALTR-2009-28](https://www.sec.gov/rules/sro/nysealtr/2009/34-59593.pdf)," Page 3.
>     
> 2.  Deutsche Bank Research. "[High-Frequency Trading: Reaching the Limits](https://www.dbresearch.com/PROD/RPS_EN-PROD/PROD0000000000454703/Research_Briefing%3A_High-frequency_trading.PDF?undefined&realload=GlzO4JliE79GuOgJ1ObennRZn3xdGdZginIYqelAnmH/YsKjy/1seLsKQbOidtDvNMnvptIWAHriJJHlfn15TQ==)," Page 2.
>     
> 3.  Michael Lewis. "Flash Boys." W. W. Norton, 2015.
>     
> 4.  R. Kissell. "Algorithmic Trading Methods: Applications Using Advanced Statistics, Optimization, and Machine Learning Techniques." Elsevier, 2020. Page 32-33.
>     
> 5.  R. Kissell. "Algorithmic Trading Methods: Applications Using Advanced Statistics, Optimization, and Machine Learning Techniques." Elsevier, 2020. Page 33.
>     
> 6.  R. Kissell. "Algorithmic Trading Methods: Applications Using Advanced Statistics, Optimization, and Machine Learning Techniques." Elsevier, 2020. Pages 23-39.
>     
> 7.  E. Tsang. "AI for Finance." Taylor & Francis Group, 2023. Pages 2-11.
>     
> 8.  Jarek Gryz and Marcin Rojszczak. "[Black Box Algorithms and the Rights of Individuals: No Easy Solution to the 'Explainability' Problem](https://policyreview.info/articles/analysis/black-box-algorithms-and-rights-individuals-no-easy-solution-explainability)." _Internet Policy Review_. (June 30, 2021.)
>     
> 9.  Rola Shaway, et al. "Artificial Intelligence in Financial Services: Advantages and Disadvantages." In J. S. Hasan, et al., eds. "Artificial Intelligence for Capital Markets." CRC Press, 2023. Pages 28-39.
>     
> 10.  Mahmoud El Samad, et al. "Machine Learning and Big Data in Financial Services." In J. S. Hasan, et al., eds. "Artificial Intelligence for Capital Markets." CRC Press, 2023. Pages 13-27.
>      
> 11.  Two Sigma. "[Open Source](https://www.twosigma.com/open-source/)."
>      
> 12.  Fintech Open Source Foundation. "[2023: State of Open Source in Financial Services](https://www.finos.org/hubfs/State%20of%20Open%20Source%20in%20Finance%20Survey%202023/FINOS_Report-V4-Oct-30-2023.pdf?hsLang=en-us)." Page 30.
>      
> 13.  Bank of England. "[Judgement Day: Algorithmic Trading Around the Swiss Franc Cap Removal](https://www.bankofengland.co.uk/-/media/boe/files/working-paper/2018/judgement-day-algorithmic-trading-around-the-swiss-franc-cap-removal)," Pages 24-25.