Backtester
A backtester written in python with NumPy and Pandas, showcasing Dollar-Cost-Averaging (DCA) and DCA with portfolio rebalancing.
Install / Use
npx skills add timvvvht/BacktesterInstalls into whichever agent you are using.
README
Backtester
A backtester written in python with NumPy and Pandas, showcasing Dollar-Cost-Averaging (DCA) and DCA with portfolio rebalancing.
Strategies tested
- DCA on SPY
- DCA on SPY and GLD with a 80-20 weighting
- DCA on SPY and GLD with a 80-20 weighting, rebalancing once every 2 months
- DCA on SPY and GLD with a 80-20 weighting, rebalancing once every 6 months
- DCA on SPY and GLD with a 50-50 weighting
- DCA on SPY and GLD with a 50-50 weighting, rebalancing once every 2 months
- DCA on SPY and GLD with a 50-50 weighting, rebalancing once every 6 months

This shows that using a dollar-cost-averaging strategy in the timeframe Jan 2005 to Nov 2020 on only the SPY yields the highest returns out of all other strategies, beating the baseline strategy of no investments by a large margin.
Related Skills
valuecell
11.0kValueCell is a community-driven, multi-agent platform for financial applications.
QuantDinger
10.4kAI quantitative trading platform for crypto, stocks, and forex with backtesting, live trading, market data, and multi-agent research.vibe-trading ,trading-agents,ai-trader,ai-trading
beanquery-mcp
50Beancount MCP Server is an experimental implementation that utilizes the Model Context Protocol (MCP) to enable AI assistants to query and analyze Beancount ledger files using Beancount Query Language (BQL) and the beanquery tool.
finance-skills
3.1kA collection of skills for AI financial analysis.
