A Trade Classification Algorithm from Market Quotes

This function computes the number of intradaily market trades that are buy- or sell-initiated.
1.1K Downloads
Updated 28 Dec 2011

View License

This routine uses bid and ask quotes sample intradaily at a uniform frequency to classify the implied origin of market trading activity. It computes the implied number of sell-initiated, buy-initiated trades, and trades with no discernible sign (denoted as 'no trades'). The classification algorithm used here follows Lee and Ready (1996).

A pdf file with an outline of the trade classification algorithm is also included.

Reference:

Lee, C. M. C., and M. J. Ready (1991), "Inferring Trade Direction from Intraday Data", Journal of Finance, 46 (2), 733-746.

Cite As

Paolo Zagaglia (2026). A Trade Classification Algorithm from Market Quotes (https://www.mathworks.com/matlabcentral/fileexchange/34376-a-trade-classification-algorithm-from-market-quotes), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0