A backtester written in python with NumPy and Pandas, showcasing Dollar-Cost-Averaging (DCA) and DCA with portfolio rebalancing.
- 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.