{{Short description|System for ordering algorithmic trades}} {{Use mdy dates|date=May 2026}} An '''automated trading system''' ('''ATS'''), a subset of algorithmic trading, uses a computer program to create buy and sell orders and automatically submits the orders to a market center or exchange.<!-- TODO: replace BW Businessworld listicle with CFTC/SEC release or peer-reviewed definition --><ref>{{Cite web|url=http://businessworld.in/article/3-Myths-about-Algorithmic-Trading/13-10-2018-162113|title=3 Myths about Algorithmic Trading|last=Khandelwal|first=Nitesh|website=BW Businessworld|language=en|access-date=2019-08-01}}</ref> The computer program generates orders based on predefined rules using a trading strategy derived from technical analysis, statistical computation, or other electronic inputs.<ref>{{cite book |last1=Domowitz |first1=Ian |last2=Lee |first2=Ruben |date=1996 |title=The Legal Basis for Stock Exchanges: The Classification and Regulation of Automated Trading Systems |publisher=<!-- TODO: confirm publisher/edited volume; not in CrossRef journal database; ResearchGate ID 228165426 confirms paper exists -->}}</ref> Such systems are often used to implement algorithmic strategies that operate at high speed and frequency.

These systems are mostly employed by investment banks or hedge funds, but simple online tools have extended access to private investors. An estimated 70–80% of all market transactions are carried out through automated trading software, in contrast to manual trades.<ref>{{Cite journal |last=Arnoldi |first=Jakob |date=2016-01-01 |title=Computer Algorithms, Market Manipulation and the Institutionalization of High Frequency Trading |url=http://journals.sagepub.com/doi/10.1177/0263276414566642 |journal=Theory, Culture & Society |language=en |volume=33 |issue=1 |pages=29–52 |doi=10.1177/0263276414566642 |issn=0263-2764}}</ref><ref>{{Cite journal |last=Yadav |first=Yesha |date=2015 |title=How Algorithmic Trading Undermines Efficiency in Capital Markets |url=https://heinonline.org/HOL/Page?handle=hein.journals/vanlr68&id=1651&div=&collection= |journal=Vanderbilt Law Review |volume=68 |pages=1607}}</ref>

Automated trading systems are often used with electronic trading in automated market centers, including electronic communication networks, "dark pools", and automated exchanges.<ref>{{cite book|last1=Lemke|first1=Thomas|last2=Lins|first2=Gerald|title=Soft Dollars and Other Trading Activities|section=2:25–2:29|publisher=Thomson West|edition=2013–2014|isbn=978-0-314-63065-0}}</ref> They can execute repetitive tasks at speeds orders of magnitude greater than any human equivalent. Traditional risk controls that relied on human judgment are not appropriate for automated trading, contributing to events such as the 2010 Flash Crash. Regulators have introduced controls including trading curbs and circuit breakers in some electronic markets.<ref>{{cite web|url=http://www.cftc.gov/ucm/groups/public/@newsroom/documents/file/federalregister090913.pdf|title=Concept Release on Risk Controls and System Safeguards for Automated Trading Environments|publisher=Commodity Futures Trading Commission|date=September 9, 2013|access-date=2014-12-22|archive-url=https://web.archive.org/web/20131127021742/http://www.cftc.gov/ucm/groups/public/@newsroom/documents/file/federalregister090913.pdf|archive-date=2013-11-27|url-status=dead}}</ref> High-frequency trading strategies have drawn regulatory scrutiny for their role in market disruption, including spoofing and layering, and the Financial Industry Regulatory Authority (FINRA) has established surveillance programs targeting abusive algorithmic activity.

== Mechanism == The automated trading system determines whether an order should be submitted based on, for example, the current market price of an option and theoretical buy and sell prices.<ref>{{Cite journal |last=Hanif |first=Ayub |last2=Smith |first2=Robert Elliott |date=2012-09-30 |title=Algorithmic, Electronic, and Automated Trading |url=https://www.pm-research.com/content/iijtrade/7/4/78 |journal=The Journal of Trading |language=en |volume=7 |issue=4 |pages=78–86 |doi=10.3905/jot.2012.7.4.078 |issn=1559-3967|url-access=subscription }}</ref> The theoretical buy and sell prices are derived from, among other things, the current market price of the security underlying the option. A look-up table stores a range of theoretical buy and sell prices for a given range of current market price of the underlying security. Accordingly, as the price of the underlying security changes, a new theoretical price may be indexed in the look-up table, thereby avoiding calculations that would otherwise slow automated trading decisions.<ref>{{cite patent |country=US |number=7251629 |inventor-last=Marynowski |inventor-first=John M. |title=Automated trading system in an electronic trading exchange |issue-date=2007-07-31}}</ref> A distributed processing on-line automated trading system uses structured messages to represent each stage in the negotiation between a market maker (quoter) and a potential buyer or seller (requestor).<ref>{{cite patent |country=US |number=5305200 |inventor-last=Hartheimer |inventor-first=Richard |title=Financial exchange system having automated recovery/rollback of unacknowledged orders |issue-date=1994-04-19}}</ref>

== Strategies == {{refimprove|section|date=August 2023}} *Trend following<ref>{{Cite book |last=Zubulake |first=Paul |title=The high frequency game changer: how automated trading strategies have revolutionized the markets |last2=Lee |first2=Sang |date=2011 |publisher=Wiley |isbn=978-1-118-01968-9 |series=Wiley trading series |location=Hoboken, NJ}}</ref>

Trend following is a trading strategy that bases buying and selling decisions on observable market trends. Various forms have emerged over decades, including the Turtle Trader software program. Unlike financial forecasting, this strategy does not predict market movements; it identifies a trend early in the day and trades automatically according to predefined rules regardless of directional shifts. Trend following gained popularity among speculators, though it requires judgment to configure initial trading rules and entry/exit conditions. Performance depends on market volatility and the difficulty of identifying trends early enough to profit from them.<ref>{{Cite journal |last=Fong |first=Simon |last2=Si |first2=Yain-Whar |last3=Tai |first3=Jackie |date=2012 |title=Trend following algorithms in automated derivatives market trading |url=https://doi.org/10.1016/j.eswa.2012.03.048 |journal=Expert Systems with Applications |volume=39 |issue=13 |pages=11378–11390 |doi=10.1016/j.eswa.2012.03.048 |issn=0957-4174|url-access=subscription }}</ref>

One formulation models the stock price <math>S_r</math> at time <math>r</math> as a regime-switching diffusion process:<!-- FIX: was colon-indented per old style; converted to display block per MOS:FORMULA -->

<math display=block>dS_r = S_r[\mu (\alpha _r)\,dr + \sigma\,dB_r], \quad S_t = X, \quad t \leq r \leq T < \infty,</math>

where <math>\alpha_r \in \{1,2\}</math> is a two-state Markov chain, <math>\mu(i) \equiv \mu_i</math> is the expected return rate in regime <math>i</math>, <math>\sigma > 0</math> is constant volatility, and <math>B_r</math> is a standard Brownian motion.<ref><!-- TODO: replace {{cite news}} with correct template; paper is Dai, Yang, Zhang & Zhu "Optimal Trend Following Trading Rules" — verify journal, volume, date, DOI before adding -->{{cite techreport |last1=Dai |first1=Min |last2=Yang |first2=Zhou |last3=Zhang |first3=Qing |last4=Zhu |first4=Qiji Jim |title=Optimal Trend Following Trading Rules |institution=<!-- verify -->}}</ref>

*Volume-weighted average price

The volume-weighted average price (VWAP) weights each trade price by its quantity over a defined period:<!-- FIX: removed "According to Wikipedia page" attribution (WP:CIRCULAR); formula needs primary academic source, e.g. Berkowitz, Logue & Noser 1988 — verify before adding -->

<math display=block>P_{\mathrm{VWAP}} = \frac{\sum_{j}{P_j \cdot Q_j}}{\sum_j{Q_j}},</math>

where <math>P_j</math> is the price of trade <math>j</math>, <math>Q_j</math> is its quantity, and the sum runs over all individual trades in the defined period, excluding cross trades and basket cross trades.<!-- TODO: add primary source for VWAP formula definition; do not cite the VWAP Wikipedia article -->

*Mean reversion (finance)

A continuous mean-reverting time series can be represented by an Ornstein–Uhlenbeck stochastic differential equation, commonly used to model price return to a long-run mean:<!-- FIX: was colon-indented; converted to display block per MOS:FORMULA; added prose intro sentence -->

<math display=block>dx_t = \theta(\mu - x_t)\,dt + \sigma\,dW_t,</math>

where <math>\theta</math> is the rate of reversion to the mean, <math>\mu</math> is the mean value of the process, <math>\sigma</math> is the variance of the process, and <math>W_t</math> is a Wiener process.<ref>{{cite web |title=Basics of Statistical Mean Reversion Testing |url=https://www.quantstart.com/articles/Basics-of-Statistical-Mean-Reversion-Testing |website=QuantStart}}</ref><ref>{{cite report |last=Smith |first=William |date=2010-02-01 |title=On the Simulation and Estimation of the Mean-Reverting Ornstein-Uhlenbeck Process |url=https://commoditymodels.files.wordpress.com/2010/02/estimating-the-parameters-of-a-mean-reverting-ornstein-uhlenbeck-process1.pdf |version=1.01}}</ref>

== History == Richard Donchian introduced rule-based trading in 1949, applying a set of mechanical buy and sell signals to futures funds.<ref>{{Cite journal |last=Donchian |first=Richard |date=1995-11-15 |title=Donchian's five- and 20-day moving averages |journal=Futures: News, Analysis & Strategies for Futures, Options & Derivatives Traders |location=Cedar Falls, Iowa |publisher=The Alpha Pages LLC |volume=24 |issue=13 |page=32 |via=Gale}}</ref> Because no automated execution technology existed at the time, staff monitored charts manually and assessed whether conditions met the rules before placing orders, a process prone to human error. It nonetheless established the principle of systematic, condition-triggered trading.<ref><!-- FIX: removed Dimov 2022 (ROBONOMICS journal — verify against Beall's List before reinserting) -->{{Cite journal |last=Dimov |first=Diyan |date=2022-12-19 |title=Conceptual Model of Automated Trading Systems Implementation |url=https://journal.robonomics.science/index.php/rj/article/view/25 |journal=ROBONOMICS: The Journal of the Automated Economy |language=en |volume=3 |pages=25 |issn=2683-099X}}</ref>

In the 1980s, rule-based trend-following gained wider adoption among commodity traders, including John Henry, who used systematic strategies to manage futures portfolios. By the mid-1990s, several commercial strategy packages were available to institutional buyers, and declining hardware costs opened access to smaller firms.<ref>{{Cite news |last=Swart |first=J.N. |date=2016 |title=Testing a price breakout strategy using Donchian Channels |publisher=University of Cape Town}}</ref>

Early automated systems ran as portfolio-management software operated by brokers on behalf of clients. The first direct-to-consumer automated investing service launched publicly in 2010 with Betterment, founded by Jon Stein.<!-- TODO: verify launch year; sources conflict between 2008 (founding) and 2010 (public launch at TechCrunch Disrupt); cite Betterment SEC registration or TechCrunch Disrupt contemporaneous coverage --> Around 2005, copy trading and mirror trading emerged as forms of automated algorithmic trading. These systems allowed traders to share their trading histories and strategies, which other traders could replicate in their accounts. One of the first companies to offer an auto-trading platform was Tradency in 2005 with its "Mirror Trader" software.<ref>{{Cite web |last=Lievonen |first=L. |date=2020 |title=Empirical investigation on the performance of copy-portfolios on E-TORO platform |url=https://digikogu.taltech.ee/en/Download/9c402020-d23e-447e-bcba-e41823baa02d/eToroplatvormiltegutsevatesotsiaalsekauplemise.pdf}}</ref><ref>{{Cite web |title=Tradency, Robo for Advisors |url=https://www.tradency.com/ |access-date=2022-07-12 |website=tradency}}</ref><ref>{{Cite web |title=Mirror Trader |url=https://www.tradency.com/mirror-trader |access-date=2022-07-12 |website=tradency}}</ref> This feature enabled traders to submit their strategies, allowing other users to replicate any trades produced by those strategies in their accounts. Later platforms allowed traders to connect their accounts directly to replicate trades automatically, without coding trading strategies themselves. Since 2010, numerous online brokers have incorporated copy trading into their internet platforms, such as eToro, ZuluTrade, Ayondo, and Tradeo.<ref>{{Cite web |last=Mingwen |first=Yang |last2=Eric |first2=Zheng |last3=Vijay |first3=Mookerjee |date=2019 |title=The Transparency-Revenue Conundrum in Social Trading: Implications for Platforms and Investors |url=https://carlsonschool.umn.edu/sites/carlsonschool.umn.edu/files/inline-files/Social_Trading.pdf |publisher=Jindal School of Management, The University of Texas at Dallas}}</ref><ref>{{Cite journal |last=Apesteguia |first=Jose |last2=Oechssler |first2=Jörg |last3=Weidenholzer |first3=Simon |date=2020 |title=Copy Trading |url=https://pubsonline.informs.org/doi/10.1287/mnsc.2019.3508 |journal=Management Science |language=en |volume=66 |issue=12 |pages=5608–5622 |doi=10.1287/mnsc.2019.3508 |issn=0025-1909|url-access=subscription }}</ref> Copy trading allows less experienced traders to mirror positions taken by other investors without performing their own analysis.

By 2014, more than 75% of shares traded on United States exchanges, including the New York Stock Exchange and NASDAQ, originated from automated trading system orders.<ref>{{cite web|url=http://fortune.com/2013/05/29/a-day-in-the-quiet-life-of-a-nyse-floor-trader/|title=A day in the quiet life of a NYSE floor trader|date=May 29, 2013|publisher=Fortune}}</ref><!-- FIX: removed telegramtrading.net citation; Fortune already supports the claim -->

== Market disruption and manipulation ==

Automated trading, or high-frequency trading, causes regulatory concerns as a contributor to market fragility.<ref>{{cite journal|title=High frequency trading and fragility|author1=Giovanni Cespa|author2=Xavier Vives|journal=Working Papers Series|publisher=European Central Bank|issue=2020|date=February 2017|url=https://www.ecb.europa.eu/pub/pdf/scpwps/ecbwp2020.en.pdf}}</ref> United States regulators have published releases<ref>{{cite web|url=http://www.jdsupra.com/legalnews/cftc-publishes-sweeping-concept-release-68577|title=CFTC Publishes Sweeping Concept Release Asking Questions About Additional Regulation of Automated Trading Strategies and High-Frequency Trading|publisher=JD Supra}}</ref><ref>{{cite web|url=https://www.sec.gov/news/press/2010/2010-210.htm|title=SEC Adopts New Rule Preventing Unfiltered Market Access|publisher=U.S. Securities and Exchange Commission|date=November 3, 2010}}</ref> discussing risk controls to limit disruptions, including financial and regulatory controls to prevent erroneous orders caused by computer malfunction or human error, regulatory breaches, and credit or capital limit overruns.

The use of high-frequency trading (HFT) strategies has grown and by the mid-2010s accounted for a majority of order flow on U.S. equity markets. Although many HFT strategies are legitimate, some are used for manipulative trading. A strategy is illegitimate or illegal if it causes deliberate disruption or attempts to manipulate the market. Such strategies include "momentum ignition strategies": spoofing and layering, where a participant places a non-bona fide order on one side of the market to bait other participants into reacting, then trades on the other side. The Financial Industry Regulatory Authority (FINRA) has reminded firms using HFT strategies of their obligation to test these strategies pre- and post-launch to prevent abusive trading.

FINRA also focuses on the entry of problematic HFT and algorithmic activity through sponsored participants who initiate their activity from outside of the United States. In this regard, FINRA reminds firms of their surveillance and control obligations under the SEC's Market Access Rule and Notice to Members 04-66,<ref>{{cite web|url=http://www.finra.org/Industry/Regulation/Notices/2004/P010269|title=Notice to Members 04-66|publisher=FINRA|access-date=2014-12-22}}</ref> as well as potential issues related to treating such accounts as customer accounts, anti-money laundering, and margin levels as highlighted in Regulatory Notice 10-18<ref>{{cite web|url=https://www.finra.org/Industry/Regulation/Notices/2010/P121248 |title=FINRA Issues Guidance on Master and Sub-Account Arrangements |access-date=2014-12-25 |url-status=dead |archive-url=https://web.archive.org/web/20141225163346/https://www.finra.org/Industry/Regulation/Notices/2010/P121248 |archive-date=2014-12-25 }}</ref> and the SEC's Office of Compliance Inspections and Examination's National Exam Risk Alert dated September 29, 2011.<ref>{{Cite web |title=Risk Alert: Master/Sub-Account Arrangements |url=https://www.sec.gov/about/offices/ocie/riskalert-mastersubaccounts.pdf |website=U.S. Securities and Exchange Commission}}</ref>

FINRA conducts surveillance to identify cross-market and cross-product manipulation of the price of underlying equity securities. Such manipulations are typically done through abusive trading algorithms or strategies that close out pre-existing option positions at favorable prices or establish new option positions at advantageous prices.

Several algorithmic trading malfunctions have caused market disruptions large enough to draw regulatory action. These raise concern about firms' ability to develop, implement, and supervise automated systems. FINRA has stated that it will assess whether firms' testing and controls related to algorithmic trading are adequate in light of SEC and firms' supervisory obligations. This assessment may take the form of examinations and targeted investigations. Firms will be required to address whether they conduct separate, independent pre-implementation testing of algorithms and trading systems. FINRA will review whether a firm actively monitors and reviews algorithms once they are placed into production systems, including procedures to detect potential trading abuses such as wash sales, marking, layering, and momentum ignition strategies. Firms will also need to describe their approach to firm-wide disconnect or "kill" switches, as well as procedures for responding to catastrophic system malfunctions.<ref>{{Cite journal |last=Foley |first=Michael T. |last2=Angstadt |first2=Janet M. |last3=Pazzol |first3=Ross |last4=Van De Graaff |first4=James D. |date=2016-01-01 |title=FINRA rule amendment requires registration of associated persons who develop algorithmic trading strategies |url=https://doi.org/10.1108/JOIC-07-2016-0028 |journal=Journal of Investment Compliance |volume=17 |issue=3 |pages=39–41 |doi=10.1108/JOIC-07-2016-0028 |issn=1528-5812|url-access=subscription }}</ref><ref>{{Cite journal |last=Scopino |first=Gregory |date=2015 |title=Preparing Financial Regulation for the Second Machine Age: The Need for Oversight of Digital Intermediaries in the Futures Markets |journal=Columbia Business Law Review |volume=2015 |issue=2 |pages=439}}</ref><ref>{{Cite web |date=2015-03-26 |title=Regulatory Notice 15-09 |url=https://www.finra.org/rules-guidance/notices/15-09 |access-date=2024-03-23 |website=FINRA}}</ref>

=== Notable examples === Two widely cited incidents illustrate the risks: * On May 6, 2010, the Dow Jones Industrial Average declined about 1,000 points (about 9%) and recovered those losses within minutes. It was the second-largest point swing (1,010.14 points) and the largest one-day point decline (998.5 points) on an intraday basis in the Average's history. This market disruption, known as the Flash Crash, resulted in U.S. regulators issuing new regulations governing automated trading market access. * On August 1, 2012, between 9:30&nbsp;a.m. and 10:00&nbsp;a.m. EDT, Knight Capital Group lost four times its 2011 net income.<ref>{{cite web|url=https://www.bloomberg.com/news/articles/2012-08-02/knight-shows-how-to-lose-440-million-in-30-minutes|title=Knight Shows How to Lose $440 Million in 30 Minutes|first=Matthew|last=Philips|website=Bloomberg News}}</ref> A bug in one of Knight's trading algorithms submitted erroneous orders to exchanges for nearly 150 different stocks. Trading volumes soared across so many issues that the SPDR S&P 500 ETF (SPY), which is generally the most heavily traded U.S. security, became the 52nd-most traded stock on that day, according to Eric Hunsader, CEO of market data service Nanex. Knight shares closed down 62% as a result, and the firm ultimately merged with Getco.<ref>{{cite web|url=https://dealbook.nytimes.com/2012/12/19/knight-capital-and-getco-to-merge/?_r=0|title=Knight Capital and Getco to Merge|date=December 19, 2012|publisher=The New York Times}}</ref><ref>{{cite web|url=https://www.bloomberg.com/news/articles/2013-06-06/how-the-robots-lost-high-frequency-tradings-rise-and-fall|title=How the Robots Lost: High-Frequency Trading's Rise and Fall|last=Philips|first=Matthew|website=Bloomberg}}</ref>

== See also == * High-frequency trading * Algorithmic trading * Day trading software * Technical analysis software * Systematic trading * {{section link|Outline_of_finance#Quantitative_investing}}

== References == {{Reflist|30em}}

Category:Algorithmic trading Category:Financial software Category:Share trading