Algorithmic Glossary

A comprehensive technical resource for quantitative researchers. Deep dives into financial metrics, backtesting pitfalls, and Python implementations.

Sharpe Ratio

A measure of risk-adjusted return used to evaluate the performance of quantitative strategies.

Python Implementation Included

Lookahead Bias

A fatal backtesting error where future data is inadvertently used to make past trading decisions.

Python Implementation Included

Sortino Ratio

A variation of the Sharpe Ratio that penalizes only downside volatility, not total volatility.

Python Implementation Included

Calmar Ratio

A risk-adjusted return metric that compares annualized returns against maximum drawdown.

Python Implementation Included

Maximum Drawdown

The largest peak-to-trough decline in portfolio value observed over a given period.

Python Implementation Included

Profit Factor

The ratio of gross profits to gross losses, measuring overall strategy profitability efficiency.

Python Implementation Included

Win Rate

The percentage of trades that close with a positive profit, independent of magnitude.

Python Implementation Included

Expectancy

The average amount a strategy expects to win or lose per unit risked on each trade.

Python Implementation Included

Recovery Factor

The ratio of net profit to maximum drawdown, measuring how efficiently a strategy recovers from losses.

Python Implementation Included

Value at Risk (VaR)

A statistical measure estimating the maximum expected loss over a given time horizon at a specified confidence level.

Python Implementation Included

Standard Deviation

A measure of the dispersion of returns around their mean, used as a proxy for total portfolio volatility.

Python Implementation Included

Beta

A measure of a strategy's sensitivity to movements in a benchmark market index.

Python Implementation Included

Alpha

The excess return of a strategy above what is explained by its exposure to market risk (Beta).

Python Implementation Included

Correlation Matrix

A symmetric matrix expressing pairwise linear relationships between multiple assets or strategy return streams.

Python Implementation Included

Monte Carlo Simulation

A computational technique that models a strategy's range of possible future outcomes by repeatedly sampling from its historical return distribution.

Python Implementation Included

Volatility Clustering

The empirical phenomenon where large market moves tend to be followed by large moves, and calm periods follow calm periods.

Python Implementation Included

Fat Tails (Kurtosis)

The tendency of financial return distributions to exhibit more frequent and severe extreme events than a normal distribution predicts.

Python Implementation Included

Overfitting

The critical failure mode where a model is tuned so precisely to historical data that it captures noise rather than genuine market structure.

Python Implementation Included

Survivorship Bias

A backtesting distortion caused by testing a strategy only on assets that survived to the present, ignoring those that failed or were delisted.

Python Implementation Included

Curve Fitting

The process of over-optimizing strategy parameters to match historical data so precisely that the model loses predictive power.

Python Implementation Included

Data Mining Bias

The statistical inflation of strategy performance metrics caused by exhaustive searching through data until spurious patterns are found.

Python Implementation Included

Selection Bias

A backtesting distortion arising from non-random selection of assets, time periods, or signals that unconsciously favor positive results.

Python Implementation Included

Brokerage Slippage

The difference between the expected execution price of a trade and the actual price at which it is filled, eroding real-world strategy returns.

Python Implementation Included

Mean Reversion

A strategy paradigm based on the statistical tendency of asset prices to return to their long-run historical average after deviating from it.

Python Implementation Included

Trend Following

A systematic strategy paradigm that identifies and rides sustained directional price movements across asset classes.

Python Implementation Included

Arbitrage

The simultaneous purchase and sale of equivalent assets in different markets to profit from temporary price discrepancies with theoretically zero risk.

Python Implementation Included

Pair Trading

A market-neutral strategy that simultaneously goes long on an underperforming asset and short on an outperforming correlated asset, profiting from the convergence of their price spread.

Python Implementation Included

Market Making

A liquidity-providing strategy that simultaneously quotes bid and ask prices, profiting from the bid-ask spread while managing directional inventory risk.

Python Implementation Included

Order Flow

The signed volume of buy and sell orders hitting the market, used to infer the directional pressure and informed trading activity driving short-term price movements.

Python Implementation Included

VWAP

Volume-Weighted Average Price — the average price of an asset weighted by traded volume over a session, used as a primary institutional execution benchmark.

Python Implementation Included

TWAP

Time-Weighted Average Price — the average price of an asset calculated at equal time intervals, used to execute large orders with minimal market impact.

Python Implementation Included

High-Frequency Trading (HFT)

A class of algorithmic trading strategies that exploit microsecond-level market inefficiencies using co-located servers, direct market access, and ultra-low latency execution infrastructure.

Python Implementation Included

Sentiment Analysis

The quantitative extraction of bullish or bearish signals from unstructured text sources — news, earnings calls, social media — to generate alpha in systematic trading strategies.

Python Implementation Included

Vectorized Backtesting

A backtesting methodology that applies trading logic to entire price arrays simultaneously using matrix operations, prioritizing computational speed over simulation realism.

Python Implementation Included

Event-Driven Engine

A backtesting architecture that processes market data and trading logic sequentially through a chronological event queue, faithfully replicating the information constraints of live trading.

Python Implementation Included

Pandas DataFrames

The foundational two-dimensional labeled data structure in Python quantitative finance, used to store, manipulate, and analyze time series of prices, signals, and portfolio metrics.

Python Implementation Included

NumPy Arrays

The high-performance N-dimensional array structure that forms the computational backbone of all numerical operations in quantitative finance Python workflows.

Python Implementation Included

TA-Lib

A widely-used C library with Python bindings providing over 150 pre-built technical analysis indicators for use in quantitative strategy research and backtesting.

Python Implementation Included

Z-Score Calculation

A standardization technique that expresses the distance of a data point from its rolling mean in units of standard deviation, used universally as a signal generation and normalization tool in quantitative strategies.

Python Implementation Included

Walk-Forward Optimization

A rigorous backtesting methodology that repeatedly optimizes strategy parameters on a rolling in-sample window and immediately validates them on the subsequent out-of-sample period.

Python Implementation Included

Ready to find your edge ?

Start for Free