How parthuu/quant_sandbox works
Project type and purpose
• This is a sandbox backtesting tool for financial trading strategies, _not_ a full-fledged technical analysis suite.
• It provides modular components for loading data, running strategies over historical data, tracking trades, computing metrics, and visualizing results.
File structure
• Top level:
• main.py (orchestrator/CLI entry point)
• requirements.txt (dependency list)
• experiments/ (Jupyter notebooks for ad-hoc analysis & visuals)
• src/ (core Python modules)
• src/ modules:
• data_loader.py – fetches and preprocesses market data
• strategy.py – defines the interface and default implementations of trading strategies
• backtester.py – drives the simulation loop, calling strategy methods at each time step
• tracker.py – records orders/trades/events generated by backtester
• metrics.py – computes performance statistics (returns, drawdowns, Sharpe, etc.)
• visualizer.py – generates charts and plots from tracked data and metrics
README for additional context
• Emphasizes sandbox status, TODOs around modular indicators, caching, shorting.