Algorithmic trading uses computer programs to buy and sell securities at speeds and volumes no human could match, and regulators in different countries have responded with rules aimed at managing its risks. Common measures include registration of algorithmic traders, pre-trade risk controls, testing and record-keeping requirements, and limits on order messaging. The European Union's MiFID II framework is one of the most detailed examples, while the United States relies more on existing market rules and exchange-level safeguards.
Regulation has largely been shaped by sudden market disruptions, such as the 2010 "Flash Crash" in US stocks and the 2012 Knight Capital incident, where a software error caused large losses in minutes. Approaches differ across jurisdictions, so a strategy legal in one market may face different obligations in another.