How nihal-prakash/statisticalarbitrage-c-backtester works
This repository combines market-data acquisition, statistical-arbitrage research, and an early C++ backtester. The main workflow downloads intraday Yahoo or historical NSE data into CSVs, then runs correlation or pair analysis to produce research outputs. Python also contains a separate strategy interface, SMA-cross implementation, data loader, and performance metrics; the sampled C++ executable currently only prints a banner. README-described capabilities are included, but unsampled implementation details and runtime links are not inferred.
Main entry points: datasets Market CSVs · download_intraday_yfinance.py Intraday downloader · download_historical_jugaad.py Historical downloader · analyze_intraday.py Intraday correlations
Components 16
Market data
- Intraday downloader
python/data/download_intraday_yfinance.py - Historical downloader
python/data/download_historical_jugaad.py - CSV utilities
python/data/_download_common.py - Market CSVs
datasets
Research analysis
- Intraday correlations
python/research/analyze_intraday.py - Historical correlations
python/research/analyze_historical.py - Pair analysis
python/research/analyze_pairs.py - Research outputs
results
Python trading components
- Data loader
python/src/data/loader.py - Strategy interface
python/src/strategies/base.py - SMA crossover
python/src/strategies/sma_cross.py - Performance metrics
python/src/metrics/performance.py
C++ backtester
- C++ executable
cpp/src/main.cpp
Other components
- Researcher
- Yahoo Finance
- NSE data
Connections 18
- Researcher → Intraday downloader: runs
README.md - Researcher → Historical downloader: runs
README.md - Yahoo Finance → Intraday downloader: provides bars
README.md - NSE data → Historical downloader: provides history
README.md - Intraday downloader → CSV utilities: uses
python/data/download_intraday_yfinance.py - Historical downloader → CSV utilities: uses
python/data/download_historical_jugaad.py - Intraday downloader → Market CSVs: writes CSVs
README.md - Historical downloader → Market CSVs: writes CSVs
README.md - Researcher → Intraday correlations: runs
README.md - Researcher → Historical correlations: runs
README.md - Researcher → Pair analysis: runs
README.md - Market CSVs → Intraday correlations: reads prices
README.md - Market CSVs → Historical correlations: reads prices
README.md - Market CSVs → Pair analysis: reads pair data
python/research/analyze_pairs.py - Intraday correlations → Research outputs: writes correlations
README.md - Historical correlations → Research outputs: writes correlations
README.md - Pair analysis → Research outputs: writes stats and plot
README.md - SMA crossover → Strategy interface: implements
python/src/strategies/sma_cross.py