BigTest - Holy Grail Backtester v2.0
Institutional-grade backtesting engine for quantitative trading research. Supports 100x leverage, HFT strategies, and zero-bias execution.
Features
- 🎯 Zero-Bias i+1 Execution - Signals execute on next bar's open, eliminating look-ahead bias
- 💰 100x Leverage Support - Real-time margin monitoring with automatic liquidation
- 📊 Raw Bid/Ask Microstructure - True market reality using Dukascopy tick data
- 📋 Limit Order System - Proper fill logic with maker/taker commission
- 📈 ATR-Based Slippage - Variable slippage that scales with volatility
- ⚡ Batch Tick Fetching - Pre-load hours of tick data for performance
Installation
pip install bigtest
With optional providers:
pip install bigtest[all] # Alpaca + Binance
Quick Start
from bigtest import BacktestEngine, BacktestConfig
config = BacktestConfig(
symbol='EUR/USD',
timeframe='1m',
start_date='2024-01-01',
end_date='2024-02-01',
initial_capital=10000,
leverage=100,
stop_out_enabled=True
)
def my_strategy(df):
signals = []
# Your strategy logic here
return signals
engine = BacktestEngine(config)
metrics = engine.run(my_strategy)
engine.generate_html_report('my_report.html')
Key Config Options
| Option | Default | Description |
|---|---|---|
leverage |
1 | Leverage multiplier (up to 100x) |
stop_out_enabled |
True | Enable margin call liquidation |
use_notional_commission |
True | Commission on notional value |
slippage_model |
'fixed' | 'none', 'fixed', 'random', 'volume', 'atr' |
maintenance_margin_pct |
0.5 | Stop-out at 50% margin |
Supported Data Sources
- Forex: Dukascopy (tick-level Bid/Ask)
- Stocks: Alpaca (requires API key)
- Crypto: Binance (BTC, ETH)
License
MIT
Metadata
Release files for bigtest 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bigtest-2.0.1.tar.gz | 81.4 kB | Without provenance | Details for bigtest-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bigtest-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for bigtest-2.0.1-py3-none-any.whl |
Total release size: 189.4 kB
Release files / bigtest-2.0.1.tar.gz
| Download URL | bigtest-2.0.1.tar.gz |
|---|---|
| Size | 81.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f551b8b5920a6a1133b70a5e14df3fe9da2a0665d34d5982a88db364f31d6290
|
|
BLAKE2b-256 checksum How to use checksums |
6d95a2f417d1db514de52058b112bcf9de181affbf7d9e714fe68354c419d5bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / bigtest-2.0.1-py3-none-any.whl
| Download URL | bigtest-2.0.1-py3-none-any.whl |
|---|---|
| Size | 108.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dcb7ca181fc621046ae02d426e821ab0ac9ee52eacfb2e77a9e1deb270e1bf2c
|
|
BLAKE2b-256 checksum How to use checksums |
6f8f8f04aca9af332da7bd7aab746be1a18804acfb1b3c2f703c37307d7ea01b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for bigtest 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.