pybroker is a Python algorithmic trading framework and quantitative technical analysis library designed for developing, testing, and optimizing trading strategies using historical market data. It functions as a trading strategy backtester and a financial performance evaluator, providing a structured environment to simulate trading rules and analyze their statistical reliability.
The framework distinguishes itself through a market data integration layer that handles the fetching and caching of historical price data from external providers. It incorporates an event-driven backtesting engine and utilizes vectorized indicator computation with just-in-time compilation to efficiently process large datasets across multiple CPU cores.
The system covers a broad range of quantitative capabilities, including portfolio risk management, machine learning model integration, and strategy validation using bootstrap significance testing and walkforward analysis. It also provides tools for technical analysis automation, brokerage fee and slippage modeling, and automated trade exit management.