DEFINITION of 'Algorithm'
An algorithm is set of rules for accomplishing a task in a certain number of steps. One common example is a recipe, which is an algorithm for preparing a meal. Algorithms are essential for computers to process information. As such, they have become central to the daily lives of humans, whether someone orders a book online, makes an airline reservation or uses a search engine.
Financial companies use algorithms in areas such as loan pricing, stock trading and assetliability management. For example, algorithmic trading, known as "algo," is used for deciding the timing, pricing and quantity of stock orders.
BREAKING DOWN 'Algorithm'
Algo trading, also known as automated trading or blackbox trading, uses a computer program to buy or sell securities at a pace not possible for humans. Since prices of stocks, bonds and commodities appear in various formats online and in trading data, the process by which an algorithm digests scores of financial data becomes easy. The user of the program simply sets the parameters and gets a desired output when securities meet the trader's criteria.
Types of Algos
Several types of trading algorithms help investors decide whether to buy or sell. A mean reversion algorithm examines shortterm prices over the longterm average price, and if a stock goes much higher than the average, a trader may sell it for a quick profit. Seasonality refers to the practice of traders buying and selling securities based on the time of year when markets typically rise or fall. A sentiment analysis algorithm gauges news about a stock price that could lead to higher volume for a particular trading period.
Example
Following is an example of a simple algorithm for trading. A trader instructs his automated account to sell 100 shares of a stock if the 50day moving average goes below the 200day moving average. Contrarily, the trader could tell his program to buy 100 shares if the 50day moving average of a stock rises above the 200day moving average. Sophisticated algorithms can take into account hundreds of criteria before buying or selling securities. The reason for this is that computers are highly efficient machines for performing complex calculations very quickly.
In Computer Science
A programmer must employ five basic parts of an algorithm to create a successful program. The person must describe the problem in mathematical terms before setting up the formulas and processes that creates a result. Next, the programmer inputs the parameters that give the outcome, and then he executes the program over and over again to test it. The conclusion of the algorithm is the result given after the set of parameters goes through the set of instructions in the program.
For financial algorithms, the more complex the program, the more data the software can use to make accurate assessments to buy or sell securities. Also, programmers must test complex algorithms more thoroughly than simple ones, to ensure the right quality control.

Algorithmic Trading
A trading system that utilizes very advanced mathematical models ... 
Luhn Algorithm
An algorithm used to validate a credit card number. 
Matching Orders
The process for executing securities trades by pairing buy orders ... 
Business Logic
Custom rules or algorithms that handle the exchange of information ... 
Arbitrage Trading Program  ATP
A computer program used to place simultaneous orders for stock ... 
Neural Network
A series of algorithms that attempt to identify underlying relationships ...

Forex Education
The Basics Of Forex Algorithmic Trading
Much of the growth in algorithmic trading in Forex markets over the past years has been due to algorithms automating certain processes and reducing the hours needed to conduct foreign exchange ... 
Technical Indicators
Basics Of Algorithmic Trading
Algorithmic trading is the process of using computers for placing trades in order to generate profits at a speed and frequency that are beyond a personâ€™s capability. 
Trading Strategies
Picking The Right Algorithmic Trading Software
Willing to enter the techsavvy world of algorithmic trading? Here are some tips to picking the right software. 
Forex Strategies
Strategies For Forex Algorithmic Trading
Algorithmic trading strategies, such as auto hedging, statistical analysis, algorithmic execution, direct market access and high frequency trading, can expose price inconsistencies, which pose ... 
Trading Strategies
Using Genetic Algorithms To Forecast Financial Markets
Genetic algorithms are unique ways to solve complex problems by harnessing the power of nature. 
Active Trading Fundamentals
How Big Data Has Changed Finance
The vast proliferation of data and increasing technological complexities continues to transform the way industries operate and compete. 
Investing News
The Financial Singularity Will Destroy Your Return
Given the current and future growth of financial technology, many believe algorithms will soon define what drives market outcomes. With a wealth of big data, algorithms would be able to create ... 
Trading Strategies
What are Genetic Algorithms?
Genetic algorithms are problemsolving methods that mimic natural evolution processes. 
Professionals
Love by the Numbers: The Math Behind Online Dating (IACI)
Behind the growing use of online dating are complex algorithms facilitating the matching process. 
Trading Strategies
The Perils Of Program Trading
The increasing use of program trading makes market glitches inevitable  and sometimes disastrous.

How do quant traders build the relative strength index (RSI) into their algorithms?
Learn how quantitative traders build the relative strength index (RSI) into their algorithms. Explore how automated trading ... Read Answer >> 
What is highfrequency trading?
High frequency trading is an automated trading platform used by large investment banks, hedge funds and institutional investors ... Read Answer >> 
What is the difference between a stop and a market order?
Learn about market orders and stop orders, how they are used and executed, and the main difference between stop orders and ... Read Answer >> 
How do I place an order to buy or sell shares?
Read a brief overview of how to open a brokerage account, how to buy and sell stock, and the different kinds of trade orders ... Read Answer >> 
Is it better practice to use a stop order or a limit order?
Discover whether it is considered best practice to use stop losses or limit orders. Both options have their advantages and ... Read Answer >> 
How can an investor profit from a fall in the price of bank stocks?
Discover the main ways to take advantage of a fall in bank stocks. Shorting stocks and buying put options can let traders ... Read Answer >>